playbook_ui 14.4.0.pre.alpha.stephenagreerpatch13910 → 14.4.0.pre.rc.0
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 +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/Components/SortIconButton.tsx +4 -23
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/_button.tsx +2 -6
- data/app/pb_kits/playbook/pb_collapsible/_helper_functions.ts +0 -4
- data/app/pb_kits/playbook/pb_contact/_contact.tsx +5 -17
- data/app/pb_kits/playbook/pb_contact/contact.html.erb +6 -14
- data/app/pb_kits/playbook/pb_contact/contact.rb +0 -4
- data/app/pb_kits/playbook/pb_contact/contact.test.js +1 -1
- data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +6 -2
- data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +7 -2
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +3 -4
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +1 -1
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +0 -4
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +3 -6
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.html.erb +1 -1
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_flatpickr_styles.scss +3 -2
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_header_styles.scss +2 -6
- data/app/pb_kits/playbook/pb_dialog/_dialog.scss +0 -2
- data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +1 -1
- data/app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb +2 -10
- data/app/pb_kits/playbook/pb_filter/docs/_filter_max_height.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_max_width.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_no_background.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb +1 -5
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +23 -245
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +1 -1
- data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_form_pill/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +1 -1
- data/app/pb_kits/playbook/pb_gantt_chart/_gantt_chart.tsx +0 -3
- data/app/pb_kits/playbook/pb_icon/icon.rb +1 -1
- data/app/pb_kits/playbook/pb_map/_map_controls.tsx +1 -7
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +5 -20
- data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb +0 -4
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.scss +21 -97
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.test.js +0 -166
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.tsx +6 -45
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb +2 -6
- data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.rb +1 -21
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change.jsx +1 -12
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change_react.md +1 -3
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.tsx +2 -10
- data/app/pb_kits/playbook/pb_popover/docs/_popover_list.html.erb +13 -14
- data/app/pb_kits/playbook/pb_popover/docs/_popover_list.jsx +4 -4
- data/app/pb_kits/playbook/pb_radio/_radio.tsx +32 -41
- data/app/pb_kits/playbook/pb_radio/docs/{_radio_custom_children.jsx → _radio_children.jsx} +2 -5
- data/app/pb_kits/playbook/pb_radio/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_radio/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_radio/radio.html.erb +13 -35
- data/app/pb_kits/playbook/pb_radio/radio.rb +1 -3
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.tsx +5 -12
- data/app/pb_kits/playbook/pb_select/_select.tsx +2 -5
- data/app/pb_kits/playbook/pb_select/select.html.erb +1 -1
- data/app/pb_kits/playbook/pb_select/select.rb +0 -4
- data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +1 -0
- data/app/pb_kits/playbook/pb_textarea/textarea.html.erb +1 -0
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +13 -17
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +1 -0
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +1 -18
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +6 -6
- data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +23 -17
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +18 -26
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.html.erb +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.jsx +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +3 -7
- data/app/pb_kits/playbook/tokens/_colors.scss +0 -2
- data/app/pb_kits/playbook/utilities/icons/allicons.tsx +13 -136
- data/dist/chunks/_typeahead-es44Ih6G.js +22 -0
- data/dist/chunks/_weekday_stacked-DWJJPUPQ.js +45 -0
- data/dist/chunks/lib-D9uVVKnh.js +16 -0
- data/dist/chunks/{pb_form_validation-D9zkwt2b.js → pb_form_validation-u2wnZ3oe.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/menu.yml +1 -3
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/pagination_renderer.rb +2 -10
- data/lib/playbook/version.rb +2 -2
- metadata +7 -40
- data/app/pb_kits/playbook/pb_drawer/_close_icon.tsx +0 -25
- data/app/pb_kits/playbook/pb_drawer/_drawer.scss +0 -465
- data/app/pb_kits/playbook/pb_drawer/_drawer.tsx +0 -195
- data/app/pb_kits/playbook/pb_drawer/_drawer_context.tsx +0 -3
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +0 -117
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +0 -43
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +0 -63
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +0 -55
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +0 -113
- data/app/pb_kits/playbook/pb_drawer/docs/example.yml +0 -12
- data/app/pb_kits/playbook/pb_drawer/docs/index.js +0 -5
- data/app/pb_kits/playbook/pb_drawer/drawer.html.erb +0 -12
- data/app/pb_kits/playbook/pb_drawer/drawer.rb +0 -8
- data/app/pb_kits/playbook/pb_drawer/drawer.test.jsx +0 -77
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.html.erb +0 -117
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.jsx +0 -227
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.md +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.html.erb +0 -72
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.jsx +0 -91
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_rails.md +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_react.md +0 -1
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_bubble.html.erb +0 -73
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_bubble.jsx +0 -86
- data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.html.erb +0 -50
- data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.md +0 -1
- data/app/pb_kits/playbook/pb_radio/index.js +0 -17
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.html.erb +0 -31
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.jsx +0 -26
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color_rails.md +0 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color_react.md +0 -1
- data/app/pb_kits/playbook/utilities/icons/angle-down.svg +0 -3
- data/app/pb_kits/playbook/utilities/icons/envelope.svg +0 -3
- data/dist/chunks/_typeahead-BYw0HEgO.js +0 -22
- data/dist/chunks/_weekday_stacked-DY64Tj7E.js +0 -45
- data/dist/chunks/lib-CEpcaI8y.js +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c48ab9d1f77a86bcff96b7d0c83dbe51ddd8cfc8c93ecd4731882cb510e6548a
|
4
|
+
data.tar.gz: 7d2d42ecac45e98e9246c483b493af1495a8e1e3931b87b4367f2c55afaa4285
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17c4db04ead953c8f19138f208ec11d0a7496fc69515587d9ff64b04c0de556373cc8d5de7ff6b1bf6ae72fb7e0926700b28fc741a582679c8e8c7f466176290
|
7
|
+
data.tar.gz: f4eeb6eb7c9b4771747492651ae6281f6f4afd2831a11f06b7c4d7c4ef19c04bb3caf2dc9cb463da80219cc0363ffb9c6da9f07cd8e9314b995be13d7c54dd63
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
@import 'pb_advanced_table/advanced_table';
|
3
2
|
@import 'pb_avatar/avatar';
|
4
3
|
@import 'pb_avatar_action_button/avatar_action_button';
|
@@ -106,7 +105,6 @@
|
|
106
105
|
@import 'pb_user_badge/user_badge';
|
107
106
|
@import 'pb_walkthrough/walkthrough';
|
108
107
|
@import 'pb_weekday_stacked/weekday_stacked';
|
109
|
-
@import 'pb_drawer/drawer';
|
110
108
|
@import 'utilities/mixins';
|
111
109
|
@import 'utilities/spacing';
|
112
110
|
@import 'utilities/cursor';
|
@@ -4,7 +4,6 @@ import { Header } from "@tanstack/react-table"
|
|
4
4
|
import { GenericObject } from "../../types"
|
5
5
|
|
6
6
|
import Icon from "../../pb_icon/_icon"
|
7
|
-
import { getAllIcons } from "../../utilities/icons/allicons"
|
8
7
|
|
9
8
|
import { displayIcon } from "../Utilities/IconHelpers"
|
10
9
|
|
@@ -12,39 +11,21 @@ type SortIconButtonProps = {
|
|
12
11
|
header: Header<GenericObject, unknown>
|
13
12
|
sortIcon?: string | string[]
|
14
13
|
}
|
15
|
-
|
16
14
|
export const SortIconButton = ({ header, sortIcon }: SortIconButtonProps) => {
|
17
15
|
|
18
|
-
const firstIcon = displayIcon(sortIcon)[0]
|
19
|
-
const secondIcon = displayIcon(sortIcon)[1]
|
20
|
-
const upIcon = getAllIcons()["arrowUpShortWide"].icon as unknown as { [key: string]: SVGElement }
|
21
|
-
const downIcon = getAllIcons()["arrowDownShortWide"].icon as unknown as { [key: string]: SVGElement }
|
22
|
-
|
23
16
|
return (
|
24
17
|
<>
|
25
18
|
{header.column.getIsSorted() === "desc" ? (
|
26
19
|
<div className="sort-button-icon"
|
27
|
-
key={
|
20
|
+
key={displayIcon(sortIcon)[0]}
|
28
21
|
>
|
29
|
-
|
30
|
-
<Icon
|
31
|
-
className="svg-inline--fa"
|
32
|
-
customIcon={upIcon}
|
33
|
-
/> ) : (
|
34
|
-
<Icon icon={firstIcon} />
|
35
|
-
)}
|
22
|
+
<Icon icon={displayIcon(sortIcon)[0]} />
|
36
23
|
</div>
|
37
24
|
) : (
|
38
25
|
<div className="sort-button-icon"
|
39
|
-
key={
|
26
|
+
key={displayIcon(sortIcon)[1]}
|
40
27
|
>
|
41
|
-
|
42
|
-
<Icon
|
43
|
-
className="svg-inline--fa"
|
44
|
-
customIcon={downIcon}
|
45
|
-
/> ) : (
|
46
|
-
<Icon icon={secondIcon} />
|
47
|
-
)}
|
28
|
+
<Icon icon={displayIcon(sortIcon)[1]} />
|
48
29
|
</div>
|
49
30
|
)}
|
50
31
|
</>
|
@@ -116,15 +116,11 @@ const Button = (props: ButtonPropTypes): React.ReactElement => {
|
|
116
116
|
const content = (
|
117
117
|
<span className="pb_button_content">
|
118
118
|
{icon && !iconRight && (
|
119
|
-
<
|
120
|
-
icon={icon}
|
121
|
-
/>
|
119
|
+
<i className={`pb_icon_kit far fa-${icon} fa-fw button_with_icon`} />
|
122
120
|
)}
|
123
121
|
<span>{text || children}</span>
|
124
122
|
{icon && iconRight && (
|
125
|
-
<
|
126
|
-
icon={icon}
|
127
|
-
/>
|
123
|
+
<i className={`pb_icon_kit far fa-${icon} fa-fw button_with_icon_right`} />
|
128
124
|
)}
|
129
125
|
</span>
|
130
126
|
)
|
@@ -6,10 +6,6 @@ export const showElement = (elem: HTMLElement) => {
|
|
6
6
|
elem.style.overflow = "hidden"
|
7
7
|
// Once the transition is complete, remove the inline max-height so the content can scale responsively
|
8
8
|
window.setTimeout(() => {
|
9
|
-
// If a user toggles multiple times quickly in a row, 'is-visible' can be removed by hideElement's timeout
|
10
|
-
if (!elem.classList.contains('is-visible')) {
|
11
|
-
elem.classList.add('is-visible')
|
12
|
-
}
|
13
9
|
elem.style.height = '';
|
14
10
|
elem.style.overflow = "visible"
|
15
11
|
}, 300);
|
@@ -7,7 +7,6 @@ import { globalProps } from '../utilities/globalProps'
|
|
7
7
|
import Body from '../pb_body/_body'
|
8
8
|
import Caption from '../pb_caption/_caption'
|
9
9
|
import Icon from '../pb_icon/_icon'
|
10
|
-
import { getAllIcons } from "../utilities/icons/allicons"
|
11
10
|
|
12
11
|
const contactTypeMap: { [key: string]: string } = {
|
13
12
|
'cell': 'mobile',
|
@@ -19,8 +18,6 @@ const contactTypeMap: { [key: string]: string } = {
|
|
19
18
|
'wrong-phone': 'phone-slash',
|
20
19
|
}
|
21
20
|
|
22
|
-
const envelopeIcon = getAllIcons()["envelope"].icon as unknown as { [key: string]: SVGElement }
|
23
|
-
|
24
21
|
const formatContact = (contactString: string, contactType: string) => {
|
25
22
|
if (contactType === 'email') return contactString
|
26
23
|
|
@@ -94,20 +91,11 @@ const Contact = (props: ContactProps): React.ReactElement => {
|
|
94
91
|
dark={dark}
|
95
92
|
tag="span"
|
96
93
|
>
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
fixedWidth
|
103
|
-
/>
|
104
|
-
) : (
|
105
|
-
<Icon
|
106
|
-
dark={dark}
|
107
|
-
fixedWidth
|
108
|
-
icon={contactTypeMap[contactType] || 'phone'}
|
109
|
-
/>
|
110
|
-
)}
|
94
|
+
<Icon
|
95
|
+
dark={dark}
|
96
|
+
fixedWidth
|
97
|
+
icon={contactTypeMap[contactType] || 'phone'}
|
98
|
+
/>
|
111
99
|
{` ${formatContact(contactValue, contactType)} `}
|
112
100
|
{contactDetail && (
|
113
101
|
<Caption
|
@@ -4,20 +4,12 @@
|
|
4
4
|
classname: "pb_contact_kit",
|
5
5
|
color: "light",
|
6
6
|
dark: object.dark
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}) %>
|
14
|
-
<% else %>
|
15
|
-
<%= pb_rails("icon", props: {
|
16
|
-
icon: object.contact_icon,
|
17
|
-
fixed_width: true,
|
18
|
-
dark: object.dark
|
19
|
-
}) %>
|
20
|
-
<% end %>
|
7
|
+
}) do %>
|
8
|
+
<%= pb_rails("icon", props: {
|
9
|
+
icon: object.contact_icon,
|
10
|
+
fixed_width: true,
|
11
|
+
dark: object.dark
|
12
|
+
}) %>
|
21
13
|
<%= object.formatted_contact_value if object.contact_value %>
|
22
14
|
|
23
15
|
<%= pb_rails("caption", props: {
|
@@ -79,7 +79,7 @@ test('returns correct icon', () => {
|
|
79
79
|
expect(screen.getByTestId('test-home').querySelector('.pb_icon_kit')).toHaveClass('fa-phone')
|
80
80
|
expect(screen.getByTestId('test-work').querySelector('.pb_icon_kit')).toHaveClass('fa-phone-office')
|
81
81
|
expect(screen.getByTestId('test-work-cell').querySelector('.pb_icon_kit')).toHaveClass('fa-phone-laptop')
|
82
|
-
expect(screen.getByTestId('test-email').querySelector('.
|
82
|
+
expect(screen.getByTestId('test-email').querySelector('.pb_icon_kit')).toHaveClass('fa-envelope')
|
83
83
|
expect(screen.getByTestId('test-wrong-phone').querySelector('.pb_icon_kit')).toHaveClass('fa-phone-slash')
|
84
84
|
expect(screen.getByTestId('test-wrong-type').querySelector('.pb_icon_kit')).toHaveClass('fa-phone')
|
85
85
|
expect(screen.getByTestId('test-extension').querySelector('.pb_icon_kit')).toHaveClass('fa-phone-plus')
|
@@ -3,7 +3,11 @@ import typography from '../tokens/exports/_typography.module.scss'
|
|
3
3
|
|
4
4
|
import { ThemeProps } from './themeTypes'
|
5
5
|
|
6
|
-
|
6
|
+
interface CustomTreemapOptions extends Highcharts.SeriesTreemapOptions {
|
7
|
+
traverseUpButton?: {
|
8
|
+
position: { y: number };
|
9
|
+
};
|
10
|
+
}
|
7
11
|
|
8
12
|
const highchartsDarkTheme: ThemeProps = {
|
9
13
|
lang: {
|
@@ -202,7 +206,7 @@ const highchartsDarkTheme: ThemeProps = {
|
|
202
206
|
traverseUpButton: {
|
203
207
|
position: { y: -50 },
|
204
208
|
},
|
205
|
-
} as
|
209
|
+
} as CustomTreemapOptions,
|
206
210
|
},
|
207
211
|
credits: {
|
208
212
|
enabled: false
|
@@ -3,7 +3,12 @@ import typography from '../tokens/exports/_typography.module.scss'
|
|
3
3
|
|
4
4
|
import { ThemeProps } from './themeTypes'
|
5
5
|
|
6
|
-
|
6
|
+
interface CustomTreemapOptions extends Highcharts.SeriesTreemapOptions {
|
7
|
+
traverseUpButton?: {
|
8
|
+
position: { y: number };
|
9
|
+
};
|
10
|
+
}
|
11
|
+
|
7
12
|
|
8
13
|
const highchartsTheme: ThemeProps = {
|
9
14
|
lang: {
|
@@ -201,7 +206,7 @@ const highchartsTheme: ThemeProps = {
|
|
201
206
|
traverseUpButton: {
|
202
207
|
position: { y: -50 },
|
203
208
|
},
|
204
|
-
} as
|
209
|
+
} as CustomTreemapOptions,
|
205
210
|
},
|
206
211
|
credits: {
|
207
212
|
enabled: false
|
@@ -3,7 +3,6 @@ import classnames from 'classnames'
|
|
3
3
|
|
4
4
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
5
5
|
import { deprecatedProps, globalProps, GlobalProps } from '../utilities/globalProps'
|
6
|
-
import { getAllIcons } from "../utilities/icons/allicons"
|
7
6
|
|
8
7
|
import datePickerHelper from './date_picker_helper'
|
9
8
|
import Icon from '../pb_icon/_icon'
|
@@ -162,7 +161,7 @@ useEffect(() => {
|
|
162
161
|
}
|
163
162
|
return base
|
164
163
|
}
|
165
|
-
|
164
|
+
|
166
165
|
|
167
166
|
return (
|
168
167
|
<div
|
@@ -232,8 +231,8 @@ useEffect(() => {
|
|
232
231
|
id={`${pickerId}-angle-down`}
|
233
232
|
>
|
234
233
|
<Icon
|
235
|
-
className="angle_down_icon
|
236
|
-
|
234
|
+
className="angle_down_icon"
|
235
|
+
icon="angle-down"
|
237
236
|
/>
|
238
237
|
</div>
|
239
238
|
</div>
|
@@ -5,9 +5,6 @@ import monthSelectPlugin from 'flatpickr/dist/plugins/monthSelect'
|
|
5
5
|
import weekSelect from "flatpickr/dist/plugins/weekSelect/weekSelect"
|
6
6
|
import timeSelectPlugin from './plugins/timeSelect'
|
7
7
|
import quickPickPlugin from './plugins/quickPick'
|
8
|
-
import { getAllIcons } from '../utilities/icons/allicons';
|
9
|
-
|
10
|
-
const angleDown = getAllIcons().angleDown.string
|
11
8
|
|
12
9
|
const getPositionElement = (element: string | Element) => {
|
13
10
|
return (typeof element === 'string') ? document.querySelectorAll(element)[0] : element
|
@@ -259,10 +256,10 @@ const datePickerHelper = (config: DatePickerConfig, scrollContainer: string | HT
|
|
259
256
|
})
|
260
257
|
}
|
261
258
|
|
262
|
-
// Adding dropdown icons to year and month
|
263
|
-
dropdown.insertAdjacentHTML('afterend',
|
259
|
+
// Adding dropdown icons to year and month selects
|
260
|
+
dropdown.insertAdjacentHTML('afterend', '<i class="far fa-angle-down year-dropdown-icon" id="test-id"></i>')
|
264
261
|
if (picker.monthElements[0].parentElement) {
|
265
|
-
return picker.monthElements[0].insertAdjacentHTML('afterend',
|
262
|
+
return picker.monthElements[0].insertAdjacentHTML('afterend', '<i class="far fa-angle-down month-dropdown-icon"></i>')}
|
266
263
|
// if (picker.weekElements[0].parentElement){
|
267
264
|
// return picker.weekElements[0].insertAdjacentHTML('afterend', '<i class="far fa-angle-down year-dropdown-icon" id="test-id"></i>')
|
268
265
|
// }
|
@@ -322,7 +322,8 @@
|
|
322
322
|
background: rgba(0,0,0,0.05);
|
323
323
|
}
|
324
324
|
.flatpickr-current-month .numInputWrapper {
|
325
|
-
width:
|
325
|
+
width: 6ch;
|
326
|
+
width: 7ch\0;
|
326
327
|
display: inline-block;
|
327
328
|
}
|
328
329
|
.flatpickr-current-month .numInputWrapper span.arrowUp:after {
|
@@ -773,4 +774,4 @@ span.flatpickr-weekday {
|
|
773
774
|
-webkit-transform: translate3d(0, 0, 0);
|
774
775
|
transform: translate3d(0, 0, 0);
|
775
776
|
}
|
776
|
-
}
|
777
|
+
}
|
@@ -76,11 +76,7 @@
|
|
76
76
|
pointer-events: none;
|
77
77
|
color: $text_lt_light;
|
78
78
|
}
|
79
|
-
|
80
|
-
width: 16px;
|
81
|
-
margin-top: 6px;
|
82
|
-
margin-left: -2px;
|
83
|
-
}
|
79
|
+
|
84
80
|
// Left - Right Arrow Styling
|
85
81
|
.flatpickr-prev-month {
|
86
82
|
display: flex;
|
@@ -117,4 +113,4 @@
|
|
117
113
|
}
|
118
114
|
}
|
119
115
|
}
|
120
|
-
}
|
116
|
+
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<%= pb_rails("flex", props: {classname:object.classname, spacing:"between", padding:"sm", align:"center"}) do %>
|
3
3
|
<%= content.presence || object.title %>
|
4
4
|
|
5
|
-
<button class="dialog-button-class
|
5
|
+
<button class="dialog-button-class" type="button" data-close-dialog= <%= object.id %> >
|
6
6
|
<%= pb_rails("icon", props: { custom_icon: Playbook::Engine::root.join(times_icon) }) %>
|
7
7
|
</button>
|
8
8
|
<% end %>
|
@@ -30,11 +30,7 @@
|
|
30
30
|
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
|
31
31
|
|
32
32
|
<%= form.actions do |action| %>
|
33
|
-
<%= action.submit props: {
|
34
|
-
text: "Apply",
|
35
|
-
data: {
|
36
|
-
disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
|
37
|
-
},}%>
|
33
|
+
<%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
|
38
34
|
<%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
|
39
35
|
<% end %>
|
40
36
|
<% end %>
|
@@ -68,11 +64,7 @@
|
|
68
64
|
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
|
69
65
|
|
70
66
|
<%= form.actions do |action| %>
|
71
|
-
<%= action.submit props: {
|
72
|
-
text: "Apply",
|
73
|
-
data: {
|
74
|
-
disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
|
75
|
-
},}%>
|
67
|
+
<%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
|
76
68
|
<%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
|
77
69
|
<% end %>
|
78
70
|
<% end %>
|
@@ -35,11 +35,7 @@
|
|
35
35
|
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: {max_width: "sm", label: true } %>
|
36
36
|
|
37
37
|
<%= form.actions do |action| %>
|
38
|
-
<%= action.submit props: {
|
39
|
-
text: "Apply",
|
40
|
-
data: {
|
41
|
-
disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
|
42
|
-
},}%>
|
38
|
+
<%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
|
43
39
|
<%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
|
44
40
|
<% end %>
|
45
41
|
<% end %>
|
@@ -30,11 +30,7 @@
|
|
30
30
|
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: {max_width: "sm", label: true } %>
|
31
31
|
|
32
32
|
<%= form.actions do |action| %>
|
33
|
-
<%= action.submit props: {
|
34
|
-
text: "Apply",
|
35
|
-
data: {
|
36
|
-
disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
|
37
|
-
},}%>
|
33
|
+
<%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
|
38
34
|
<%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
|
39
35
|
<% end %>
|
40
36
|
<% end %>
|
@@ -69,11 +69,7 @@
|
|
69
69
|
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
|
70
70
|
|
71
71
|
<%= form.actions do |action| %>
|
72
|
-
<%= action.submit props: {
|
73
|
-
text: "Apply",
|
74
|
-
data: {
|
75
|
-
disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
|
76
|
-
},}%>
|
72
|
+
<%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
|
77
73
|
<%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
|
78
74
|
<% end %>
|
79
75
|
<% end %>
|
@@ -24,11 +24,7 @@
|
|
24
24
|
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
|
25
25
|
|
26
26
|
<%= form.actions do |action| %>
|
27
|
-
<%= action.submit props: {
|
28
|
-
text: "Apply",
|
29
|
-
data: {
|
30
|
-
disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
|
31
|
-
},}%>
|
27
|
+
<%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
|
32
28
|
<%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
|
33
29
|
<% end %>
|
34
30
|
<% end %>
|
@@ -22,11 +22,7 @@
|
|
22
22
|
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
|
23
23
|
|
24
24
|
<%= form.actions do |action| %>
|
25
|
-
<%= action.submit props: {
|
26
|
-
text: "Apply",
|
27
|
-
data: {
|
28
|
-
disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
|
29
|
-
},}%>
|
25
|
+
<%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
|
30
26
|
<%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
|
31
27
|
<% end %>
|
32
28
|
<% end %>
|
@@ -23,11 +23,7 @@
|
|
23
23
|
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
|
24
24
|
|
25
25
|
<%= form.actions do |action| %>
|
26
|
-
<%= action.submit props: {
|
27
|
-
text: "Apply",
|
28
|
-
data: {
|
29
|
-
disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
|
30
|
-
},}%>
|
26
|
+
<%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
|
31
27
|
<%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
|
32
28
|
<% end %>
|
33
29
|
<% end %>
|
@@ -29,11 +29,7 @@
|
|
29
29
|
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
|
30
30
|
|
31
31
|
<%= form.actions do |action| %>
|
32
|
-
<%= action.submit props: {
|
33
|
-
text: "Apply",
|
34
|
-
data: {
|
35
|
-
disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
|
36
|
-
},}%>
|
32
|
+
<%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
|
37
33
|
<%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
|
38
34
|
<% end %>
|
39
35
|
<% end %>
|