playbook_ui 13.19.0.pre.alpha.play1174fixconfimationtoastmobilebug2306 → 13.19.0.pre.alpha.play1186collapsiblenaviconcolorbug2321

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10050594b83a89e2dd77aa948fb31cd71c1bc292dc5ccbda469728d89ede9747
4
- data.tar.gz: e74efd0e2d006ef868d070109c3f099ecf86068e59bd8d9fb55c2b9db8bc91ff
3
+ metadata.gz: d4a0c9535e1e8a18819885ccf9f8a0cb1f99d043dfe98b8139e1c5eb25538a07
4
+ data.tar.gz: 8d1b59b1dba9d078a97621ad906f6e73ec52e18104b6b1b286188cd4041f64fd
5
5
  SHA512:
6
- metadata.gz: 412c6be317738582dec9a87b3c16a1278292c71f23e23441f8f81f9857ffae29ccd30ade66ddc910e4d5f8d4ba99bbde5946e822bbf35280aff771d229ed4530
7
- data.tar.gz: 214b373b93c39b439ba7a335b8928daecb56a6c377d7f9ea0f7ac92c0082cdb5b8fde80287ad43015f21b9e40b690f60cb1bec2fbaeae3fa03bcdef629e832cc
6
+ metadata.gz: 7e8d6d9fbf50224808ef954c507edddd5a6960ae123af18130915008ab45bd8992c1443259ab04cb70f5f48930c889de87dfacbbf7b2296c4a84545240762a18
7
+ data.tar.gz: 2d1d0a1c3dcef04a3fb90b667aa6bbbf3410a36c5b8a2ce12dc08d24c340608656573bf3f5188569ac44658affc245f81afb6cb3440a4f1f4f4f5d9400b4a7bb
@@ -56,14 +56,6 @@ $confirmation_toast_colors: (
56
56
  transform: translateX(-50%);
57
57
  }
58
58
 
59
- @media only screen and (max-width: 600px) {
60
- &.center {
61
- left: 5%;
62
- right: 5%;
63
- transform: translateX(-0%);
64
- }
65
- }
66
-
67
59
  &.right {
68
60
  left: auto;
69
61
  right: $space_md;
@@ -91,11 +83,8 @@ $confirmation_toast_colors: (
91
83
  &[class*=_multi_line] .pb_fixed_confirmation_toast_text {
92
84
  color: $white;
93
85
  margin: 0 $space_md 0 $space_md;
94
- overflow: hidden;
95
- display: -webkit-box;
96
- -webkit-line-clamp: 2;
97
- -webkit-box-orient: vertical;
98
- white-space: normal;
86
+ max-width: 100%;
87
+ white-space: break-spaces;
99
88
  }
100
89
  }
101
90
  }
@@ -1,36 +1,5 @@
1
- <%= pb_rails("button", props: { text: "Multiline Example", variant: "primary", data: { toast: "#toast-top-center-multi" } }) %>
2
-
3
1
  <%= pb_rails("fixed_confirmation_toast", props: {
4
- classname: "toast-to-hide",
5
- closeable: true,
6
- id: "toast-top-center-multi",
7
2
  multi_line: true,
8
- text: "Multi-line is used when the given text will not fit on one line. Using Multi Line allows the height of the confirmation toast to grow. Simply resize the screen to see the fixed confirmation toast wrap the text.",
3
+ text: "Scan to Assign Selected Items. Click here to generate report",
9
4
  status: "tip",
10
- vertical: "top",
11
- horizontal: "center"
12
5
  }) %>
13
-
14
- <script type="text/javascript">
15
- const alltoasts = document.queryselectorall(".toast-to-hide")
16
- const allbuttons = document.queryselectorall("button[data-toast]")
17
-
18
- const hidealltoasts = () => {
19
- alltoasts.foreach((toast) => {
20
- toast.style.display = "none"
21
- })
22
- }
23
-
24
- hidealltoasts()
25
-
26
- allbuttons.foreach((button) => {
27
- button.onclick = () => {
28
- hidealltoasts()
29
- let toast = document.queryselector(button.getattribute("data-toast"))
30
-
31
- if (toast) {
32
- toast.style.display = "flex"
33
- }
34
- }
35
- })
36
- </script>
@@ -1,52 +1,18 @@
1
+ import React from 'react'
1
2
 
2
- import React, { useState } from 'react'
3
-
4
- import Button from '../../pb_button/_button'
5
3
  import FixedConfirmationToast from '../_fixed_confirmation_toast'
6
4
 
7
- const FixedConfirmationToastPositions = (props) => {
8
- const [state, setState] = useState({
9
- open: false,
10
- vertical: 'top',
11
- horizontal: 'center',
12
- })
13
-
14
- const { vertical, horizontal, open } = state
15
-
16
- const handleClick = (newState) => () => {
17
- setState({ open: true, ...newState })
18
- }
19
-
20
- const handleClose = () => {
21
- setState({ ...state, open: false })
22
- }
23
-
5
+ const FixedConfirmationToastMultiLine = (props) => {
24
6
  return (
25
7
  <div>
26
- <Button
27
- onClick={handleClick({
28
- horizontal: 'center',
29
- open: true,
30
- vertical: 'top',
31
- })}
32
- text="Multiline Example"
33
- variant="primary"
34
- {...props}
35
- />
36
- {' '}
37
8
  <FixedConfirmationToast
38
- closeable
39
- horizontal={horizontal}
40
9
  multiLine
41
- onClose={handleClose}
42
- open={open}
43
10
  status="tip"
44
- text={`Multi-line is used when the given text will not fit on one line. Using Multi Line allows the height of the confirmation toast to grow. Simply resize the screen to see the fixed confirmation toast wrap the text.`}
45
- vertical={vertical}
11
+ text="Scan to Assign Selected Items. Click here to generate report"
46
12
  {...props}
47
13
  />
48
14
  </div>
49
15
  )
50
16
  }
51
17
 
52
- export default FixedConfirmationToastPositions
18
+ export default FixedConfirmationToastMultiLine
@@ -40,6 +40,10 @@
40
40
  &[class*="_active"] {
41
41
  color: $primary;
42
42
  letter-spacing: normal;
43
+
44
+ [class*="_icon_right"] {
45
+ color: $white;
46
+ }
43
47
  }
44
48
  &[class*="dark"] {
45
49
  [class*="_item_text"],
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.19.0"
5
- VERSION = "13.19.0.pre.alpha.play1174fixconfimationtoastmobilebug2306"
5
+ VERSION = "13.19.0.pre.alpha.play1186collapsiblenaviconcolorbug2321"
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: 13.19.0.pre.alpha.play1174fixconfimationtoastmobilebug2306
4
+ version: 13.19.0.pre.alpha.play1186collapsiblenaviconcolorbug2321
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: 2024-03-06 00:00:00.000000000 Z
12
+ date: 2024-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack