playbook_ui 13.8.0.pre.alpha.play845allkitsbytypes1258 → 13.9.0.pre.alpha.play845allkitsbytypes1260

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: e5c8dbe877503d2a312add43c4ee5319192494aef32945e9a7c2f32dc254ad9d
4
- data.tar.gz: 62a00cbb99b842e8a348dd33da90bedaac35ecc5fff1afc167f882014ef8d76c
3
+ metadata.gz: e47bda24af6edbc23255faea9e74418ea82ec02ecafbcce245aca51ead067eb8
4
+ data.tar.gz: 7a6417c7fded6d9f5117ed28bcb7207a7d9d286611140aa9d82db0879f91cec6
5
5
  SHA512:
6
- metadata.gz: 291bc413c5067b82944b7559d216f42a14aba1eb7a750db833c26fc0de76ea8dba1945e71022bc80c104eef3dfc391af8c82de6c0e31673b338625b1b495cbcf
7
- data.tar.gz: 1a4abac14b519af6c39bbcb1a769ff6c7bfc41d6eee534d319fa7716fa2666d7dcc19df39749994853da9a0ac15704dc4ab52500f484f1b1c96622d2d13de846
6
+ metadata.gz: 0a40703a2cbcc0e1fc98ee91a0ba73d219ce1f8172975022c722c3ca425d005a8a05bd3f7290c3bf558a036a53b82a32ea89bad388e5338af9424c66c4ff07ce
7
+ data.tar.gz: f0275c462194c5c2db72f027a0e7347cf423e72e50e1004b6e65fe2b10962b993c3cc88e534e87a4ebeee7778f20abace8b3c2ec42e8dcfbdabd1e5512f0ce24
@@ -2,6 +2,7 @@ import React from 'react'
2
2
  import classnames from 'classnames'
3
3
  import { buildAriaProps, buildDataProps } from '../utilities/props'
4
4
  import { GlobalProps, globalProps } from '../utilities/globalProps'
5
+ import { isValidEmoji } from '../utilities/validEmojiChecker'
5
6
 
6
7
  import Icon from '../pb_icon/_icon'
7
8
  import Caption from "../pb_caption/_caption"
@@ -38,12 +39,6 @@ type ButtonPropTypes = {
38
39
  wrapperClass?: string,
39
40
  } & GlobalProps
40
41
 
41
- const isValidEmoji = (emoji: string) => {
42
- // Using regular expression to check if the string is a valid emoji/emoji Unicode
43
- const emojiRegex = /^(\p{Emoji}|\uFE0F)+$/u;
44
- return emojiRegex.test(emoji);
45
- };
46
-
47
42
  const buttonClassName = (props: ButtonPropTypes) => {
48
43
  const {
49
44
  disabled = false,
@@ -1,5 +1,5 @@
1
1
  <%= pb_rails("button", props: { count: 153, highlight: false, icon: "&#127881;", classname: "count", id: "reaction-button-highlight", variant: "reaction" }) %>
2
- <%= pb_rails("button", props: { count: 5, icon: "😍", variant: "reaction", margin_left: "lg" }) %>
2
+ <%= pb_rails("button", props: { count: 5, icon: "1️⃣", variant: "reaction", margin_left: "lg" }) %>
3
3
  <%= pb_rails("button", props: { variant: "reaction", margin_left: "lg" }) %>
4
4
  <%= pb_rails("button", props: { icon: "user", variant: "reaction", margin_left: "lg" }) %>
5
5
 
@@ -19,7 +19,7 @@ return (
19
19
  />
20
20
  <Button
21
21
  count={5}
22
- icon="😍"
22
+ icon="1️⃣"
23
23
  marginLeft='lg'
24
24
  tabIndex={0}
25
25
  variant="reaction"
@@ -2,6 +2,7 @@ import React from 'react'
2
2
  import classnames from 'classnames'
3
3
  import { buildAriaProps, buildDataProps } from '../utilities/props'
4
4
  import { GlobalProps, globalProps } from '../utilities/globalProps'
5
+ import { isValidEmoji } from '../utilities/validEmojiChecker'
5
6
 
6
7
  export type IconSizes = "lg"
7
8
  | "xs"
@@ -104,13 +105,6 @@ const Icon = (props: IconProps) => {
104
105
  const ariaProps: {[key: string]: any} = buildAriaProps(aria)
105
106
  const dataProps: {[key: string]: any} = buildDataProps(data)
106
107
 
107
- const isValidEmoji = (emoji: string) => {
108
- // Using regular expression to check if the string is a valid emoji/emoji Unicode
109
- const emojiRegex = /^(\p{Emoji}|\uFE0F)+$/u;
110
- return emojiRegex.test(emoji);
111
- };
112
-
113
-
114
108
  // Add a conditional here to show only the SVG if custom
115
109
  const displaySVG = (customIcon: any) => {
116
110
  if (customIcon)
@@ -6,6 +6,7 @@
6
6
 
7
7
  .content_wrapper {
8
8
  width: 100%;
9
+ font-size: $font_base - 1;
9
10
 
10
11
  .pull-left {
11
12
  margin-left: $space-xs;
@@ -0,0 +1,6 @@
1
+ export const isValidEmoji = (emoji: string) => {
2
+ // Using regular expression to check if the string is a valid emoji/emoji Unicode
3
+ const emojiRegex = /^(\p{Emoji}|\uFE0F|\u200D|\u20E3)+$/u;
4
+ return emojiRegex.test(emoji);
5
+ };
6
+