From 4f6649eb1351adc6b0c592757cbdcb3d46ae66ec Mon Sep 17 00:00:00 2001 From: "nida.ghuman" Date: Wed, 26 Apr 2023 15:59:44 -0400 Subject: [PATCH 1/3] Fix for broken datepicker page --- .../playbook/pb_docs/kit_example.html.erb | 17 ----------------- .../app/pb_kits/playbook/pb_docs/kit_example.rb | 2 +- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/playbook/app/pb_kits/playbook/pb_docs/kit_example.html.erb b/playbook/app/pb_kits/playbook/pb_docs/kit_example.html.erb index 00ab836014..da92ac661f 100644 --- a/playbook/app/pb_kits/playbook/pb_docs/kit_example.html.erb +++ b/playbook/app/pb_kits/playbook/pb_docs/kit_example.html.erb @@ -20,16 +20,6 @@ Copy HTML - <%= pb_rails("popover", props: { - classname: "popover-copy", - close_on_click: "any", - trigger_element_id: "copy-#{example_key}-trigger", - tooltip_id: "copy-#{example_key}", - position: "top", - padding: "xs" - }) do %> - HTML Copied - <% end %> <% end %>
  • @@ -49,13 +39,6 @@ \ No newline at end of file diff --git a/playbook/app/pb_kits/playbook/pb_docs/kit_example.rb b/playbook/app/pb_kits/playbook/pb_docs/kit_example.rb index 7e53c6085c..0a677f5549 100644 --- a/playbook/app/pb_kits/playbook/pb_docs/kit_example.rb +++ b/playbook/app/pb_kits/playbook/pb_docs/kit_example.rb @@ -45,7 +45,7 @@ def sanitize_code(stringified_code) .gsub('"../../"', '"playbook-ui"') .gsub("'../../'", "'playbook-ui'") .gsub("'../..'", "'playbook-ui'") - .gsub(%r{"../.*}, '"playbook-ui"') + .gsub(%r{from "../.*}, "from 'playbook-ui'") .gsub(%r{from '../.*}, "from 'playbook-ui'") stringified_code = dark ? stringified_code.gsub("{...props}", "dark") : stringified_code.gsub(/\s*{...props}\s*\n/, "\n") if stringified_code.include?("props: { ") From a48f52059a20fd716db3de92c60c5ae5fcf25dd9 Mon Sep 17 00:00:00 2001 From: "nida.ghuman" Date: Wed, 26 Apr 2023 17:02:15 -0400 Subject: [PATCH 2/3] Fixed wrong file tyle for image default doc example --- .../pb_image/docs/{_default_image.tsx => _default_image.jsx} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename playbook/app/pb_kits/playbook/pb_image/docs/{_default_image.tsx => _default_image.jsx} (97%) diff --git a/playbook/app/pb_kits/playbook/pb_image/docs/_default_image.tsx b/playbook/app/pb_kits/playbook/pb_image/docs/_default_image.jsx similarity index 97% rename from playbook/app/pb_kits/playbook/pb_image/docs/_default_image.tsx rename to playbook/app/pb_kits/playbook/pb_image/docs/_default_image.jsx index c140534c07..b70464336d 100755 --- a/playbook/app/pb_kits/playbook/pb_image/docs/_default_image.tsx +++ b/playbook/app/pb_kits/playbook/pb_image/docs/_default_image.jsx @@ -2,7 +2,7 @@ import React from 'react' import Image from '../_image' -const DefaultImage = (props: any) => { +const DefaultImage = (props) => { return ( <>
    From 0d25ce3703a1be0217971c58dc3f183a4aad9580 Mon Sep 17 00:00:00 2001 From: "nida.ghuman" Date: Wed, 26 Apr 2023 17:11:49 -0400 Subject: [PATCH 3/3] testing --- playbook/app/pb_kits/playbook/pb_docs/kit_example.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/playbook/app/pb_kits/playbook/pb_docs/kit_example.html.erb b/playbook/app/pb_kits/playbook/pb_docs/kit_example.html.erb index da92ac661f..e03ac5f734 100644 --- a/playbook/app/pb_kits/playbook/pb_docs/kit_example.html.erb +++ b/playbook/app/pb_kits/playbook/pb_docs/kit_example.html.erb @@ -40,5 +40,6 @@ function copyOnClick(content, elementID) { copyContent(content) } + \ No newline at end of file