@ably/ui 15.3.1-dev.ba000bc → 15.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/Accordion.js +1 -1
- package/core/DropdownMenu.js +1 -1
- package/core/FeaturedLink.js +1 -1
- package/core/Flash.js +1 -1
- package/core/Footer.js +1 -1
- package/core/Header/HeaderLinks.js +1 -0
- package/core/Header.js +1 -0
- package/core/Icon/computed-icons.js +1 -1
- package/core/Icon/utils.js +1 -1
- package/core/Icon.js +1 -1
- package/core/Meganav.js +1 -1
- package/core/MeganavControl.js +1 -1
- package/core/MeganavControlMobileDropdown.js +1 -1
- package/core/MeganavControlMobilePanelClose.js +1 -1
- package/core/MeganavControlMobilePanelOpen.js +1 -1
- package/core/MeganavItemsMobile.js +1 -1
- package/core/MeganavSearch.js +1 -1
- package/core/MeganavSearchPanel.js +1 -1
- package/core/Notice.js +1 -1
- package/core/Pricing/PricingCards.js +1 -1
- package/core/Slider.js +1 -1
- package/core/Status.js +1 -1
- package/core/Table/data.js +1 -1
- package/core/Tooltip.js +1 -1
- package/core/icons/gui/icon-gui-check-circled-fill.svg +4 -0
- package/core/icons/gui/icon-gui-check-lotus-circled.svg +3 -0
- package/core/sprites.svg +1 -1
- package/core/styles/buttons.css +6 -6
- package/core/styles/forms/story-components.js +1 -1
- package/core/utils/heights.js +1 -0
- package/index.d.ts +80 -24
- package/package.json +3 -3
- package/tailwind.config.js +4 -0
- package/core/hooks/use-rails-ujs-hooks.js +0 -1
- package/core/styles/colors/computed-colors.json +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ably/ui",
|
|
3
|
-
"version": "15.3.
|
|
3
|
+
"version": "15.3.2",
|
|
4
4
|
"description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@whitespace/storybook-addon-html": "^6.1.1",
|
|
42
42
|
"autoprefixer": "^10.0.2",
|
|
43
43
|
"eslint": "^8.57.0",
|
|
44
|
-
"eslint-config-prettier": "^
|
|
44
|
+
"eslint-config-prettier": "^10.0.1",
|
|
45
45
|
"eslint-plugin-react": "^7.34.3",
|
|
46
46
|
"eslint-plugin-storybook": "^0.11.2",
|
|
47
47
|
"heroicons": "^2.2.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"svg-sprite": "^2.0.4",
|
|
57
57
|
"tailwindcss": "^3.3.6",
|
|
58
58
|
"ts-node": "^10.9.2",
|
|
59
|
-
"typescript": "5.7.
|
|
59
|
+
"typescript": "5.7.3",
|
|
60
60
|
"vite": "^6.0.0"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
package/tailwind.config.js
CHANGED
|
@@ -328,6 +328,10 @@ module.exports = {
|
|
|
328
328
|
from: { height: "var(--radix-accordion-content-height)" },
|
|
329
329
|
to: { height: "0" },
|
|
330
330
|
},
|
|
331
|
+
fadeInTenPercent: {
|
|
332
|
+
from: { opacity: 0 },
|
|
333
|
+
to: { opacity: 0.1 },
|
|
334
|
+
},
|
|
331
335
|
},
|
|
332
336
|
animation: {
|
|
333
337
|
"accordion-down": "accordion-down 0.2s ease-out",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useEffect,useRef}from"react";const useRailsUjsLinks=()=>{const containerRef=useRef(null);useEffect(()=>{const container=containerRef.current;if(!container)return;const handleClick=event=>{const target=event.target;const link=target.closest("a[data-method]");if(!link)return;if(!container.contains(link))return;event.preventDefault();const method=link.dataset.method?.toLowerCase()??"get";const href=link.getAttribute("href");if(!href){console.warn("Rails UJS link has no href attribute");return}if(method!=="post"&&method!=="delete")return;const csrfParam=document.querySelector('meta[name="csrf-param"]')?.content;const csrfToken=document.querySelector('meta[name="csrf-token"]')?.content;const form=document.createElement("form");form.method="POST";form.action=href;form.style.display="none";if(csrfParam&&csrfToken){const csrfInput=document.createElement("input");csrfInput.type="hidden";csrfInput.name=csrfParam;csrfInput.value=csrfToken;form.appendChild(csrfInput)}else{console.warn("No CSRF token found in document")}if(method!=="post"){const methodInput=document.createElement("input");methodInput.type="hidden";methodInput.name="_method";methodInput.value=method;form.appendChild(methodInput)}document.body.appendChild(form);form.submit()};container.addEventListener("click",handleClick);return()=>container.removeEventListener("click",handleClick)},[]);return containerRef};export default useRailsUjsLinks;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
["bg-blue-400","bg-blue-100","bg-neutral-1300","bg-neutral-300","bg-neutral-200","bg-neutral-100","bg-neutral-000","bg-neutral-600","bg-orange-900","bg-orange-600","border-blue-400","border-neutral-200","border-neutral-600","border-neutral-500","border-orange-600","from-neutral-400","group-hover:bg-neutral-100","text-blue-600","text-blue-200","text-neutral-1300","text-neutral-300","text-neutral-000","text-neutral-1100","text-neutral-1000","text-neutral-800","text-neutral-700","text-neutral-600","text-neutral-500","text-orange-200","text-orange-600"]
|