@muraldevkit/ui-toolkit 2.40.0 → 2.41.0

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.
@@ -9,12 +9,12 @@ $mrl-interaction-scope: ':not(#{$mrl-button-toggle-selector}):not([aria-disabled
9
9
  display: inline-flex;
10
10
  position: relative;
11
11
  visibility: inherit;
12
- &:focus-visible::after {
13
- @include mrl-focus-pseudo-element;
12
+ &:focus-visible {
13
+ @include mrl-focus;
14
14
  }
15
- &--inverse:focus-visible::after,
16
- &--ghost-inverse:focus-visible::after {
17
- @include mrl-focus-pseudo-element($color-token: '-inverse');
15
+ &--inverse:focus-visible,
16
+ &--ghost-inverse:focus-visible {
17
+ @include mrl-focus($is-inverse: 'true');
18
18
  }
19
19
  &:hover {
20
20
  cursor: pointer;
@@ -1,6 +1,8 @@
1
1
  export * from './commonProps';
2
2
  export * from './findInteractiveElement';
3
3
  export * from './getCamelCase';
4
+ export * from './isImagePath';
5
+ export * from './isImageUri';
4
6
  export * from './isObject';
5
7
  export * from './setAttributes';
6
8
  export * from './noop';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Checks if a passed image string is a valid URL
3
+ *
4
+ * @param {string} image - the image string being tested
5
+ * @returns {boolean} - if the image is an image URL
6
+ */
7
+ export declare const isImagePath: (image: string) => image is string;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Checks if a passed image string is an image URI
3
+ *
4
+ * @param {string} image - the image string being tested
5
+ * @returns {boolean} - if the image is an image URI
6
+ */
7
+ export declare const isImageUri: (image: string) => image is string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muraldevkit/ui-toolkit",
3
- "version": "2.40.0",
3
+ "version": "2.41.0",
4
4
  "description": "Mural's UI Toolkit",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -48,10 +48,10 @@
48
48
  "@muraldevkit/ds-icons": "^1.1.0",
49
49
  "@muraldevkit/ds-icons-animated": "^1.0.1",
50
50
  "@muraldevkit/ds-pictograms": "^1.1.0",
51
+ "@react-spring/web": "9.4.2",
51
52
  "lottie-web": "^5.9.6",
52
53
  "react": ">=16.9",
53
- "react-dom": ">=16.9",
54
- "@react-spring/web": "9.4.2"
54
+ "react-dom": ">=16.9"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@babel/core": "7.21.4",
@@ -60,7 +60,7 @@
60
60
  "@babel/preset-env": "7.21.4",
61
61
  "@babel/preset-react": "7.18.6",
62
62
  "@babel/preset-typescript": "7.21.4",
63
- "@muraldevkit/ds-foundation": "2.4.1",
63
+ "@muraldevkit/ds-foundation": "2.4.2",
64
64
  "@muraldevkit/ds-icons": "3.0.1",
65
65
  "@storybook/addon-a11y": "7.0.26",
66
66
  "@storybook/addon-docs": "7.0.26",
@@ -79,6 +79,7 @@
79
79
  "@types/classnames": "2.2.5",
80
80
  "@types/jest": "29.5.1",
81
81
  "@types/lodash.debounce": "4.0.7",
82
+ "@types/path-browserify": "1.0.2",
82
83
  "@types/react": "16.8.25",
83
84
  "@types/react-dom": "16.9.0",
84
85
  "@typescript-eslint/eslint-plugin": "4.33.0",
@@ -132,6 +133,7 @@
132
133
  "@react-spring/web": "9.4.2",
133
134
  "classnames": "2.2.5",
134
135
  "lodash.debounce": "4.0.8",
136
+ "path-browserify": "1.0.1",
135
137
  "react": ">=16.9",
136
138
  "react-dom": ">=16.9"
137
139
  },