@greghowe79/the-lib 2.2.5 → 2.2.6

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.
@@ -21,9 +21,19 @@ function generateCustomCSS(id, colors) {
21
21
  hoverText && `color: ${hoverText} !important;`,
22
22
  hoverBorder && `border: 2px solid ${hoverBorder} !important;`
23
23
  ].filter(Boolean).join("\n");
24
+ const disabledStyles = `
25
+ background-color: #cccccc !important;
26
+ background-image: none !important;
27
+ color: #000000 !important;
28
+ border: 2px solid transparent !important;
29
+ cursor: default !important;
30
+ opacity: 0.6 !important;
31
+ `;
24
32
  return `
25
33
  #${id} { ${baseStyles} }
26
34
  #${id}:not(:disabled):hover { ${hoverStyles} }
35
+ #${id}:disabled, #${id}.button-disabled { ${disabledStyles} }
36
+ #${id}:disabled:hover, #${id}.button-disabled:hover { ${disabledStyles} }
27
37
  `;
28
38
  }
29
39
  exports.generateCustomCSS = generateCustomCSS;
@@ -19,9 +19,19 @@ function generateCustomCSS(id, colors) {
19
19
  hoverText && `color: ${hoverText} !important;`,
20
20
  hoverBorder && `border: 2px solid ${hoverBorder} !important;`
21
21
  ].filter(Boolean).join("\n");
22
+ const disabledStyles = `
23
+ background-color: #cccccc !important;
24
+ background-image: none !important;
25
+ color: #000000 !important;
26
+ border: 2px solid transparent !important;
27
+ cursor: default !important;
28
+ opacity: 0.6 !important;
29
+ `;
22
30
  return `
23
31
  #${id} { ${baseStyles} }
24
32
  #${id}:not(:disabled):hover { ${hoverStyles} }
33
+ #${id}:disabled, #${id}.button-disabled { ${disabledStyles} }
34
+ #${id}:disabled:hover, #${id}.button-disabled:hover { ${disabledStyles} }
25
35
  `;
26
36
  }
27
37
  export {
@@ -13,3 +13,4 @@ export declare const CustomSuccess: Story;
13
13
  export declare const CustomWarning: Story;
14
14
  export declare const CustomWithIcon: Story;
15
15
  export declare const CustomWithBorder: Story;
16
+ export declare const CustomDisabled: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",