@justfixnyc/component-library 0.58.0 → 0.60.1

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.
@@ -542,8 +542,8 @@
542
542
  color: #676565;
543
543
  }
544
544
  .jfcl-link .jfcl-link__icon {
545
- margin-left: 2px;
546
- height: 0.9em;
545
+ margin-left: 0.125em;
546
+ height: 0.85em;
547
547
  }
548
548
  @keyframes spin {
549
549
  from {
@@ -657,16 +657,18 @@
657
657
  padding: 0.75rem;
658
658
  cursor: pointer;
659
659
  }
660
- .jfcl-select-button__label:hover, .jfcl-select-button__label:active {
660
+ .jfcl-select-button__label:active {
661
661
  border: 2px solid #242323;
662
662
  padding: 0.6875rem;
663
- }
664
- .jfcl-select-button__label:hover {
665
- background-color: #efe9dc;
666
- }
667
- .jfcl-select-button__label:active {
668
663
  background-color: #edf3ff;
669
664
  }
665
+ @media (hover: hover) and (pointer: fine) {
666
+ .jfcl-select-button__label:hover {
667
+ border: 2px solid #242323;
668
+ padding: 0.6875rem;
669
+ background-color: #efe9dc;
670
+ }
671
+ }
670
672
 
671
673
  .jfcl-select-button__input:checked + .jfcl-select-button__label {
672
674
  background-color: #c6d8ff;
@@ -542,8 +542,8 @@
542
542
  color: #676565;
543
543
  }
544
544
  .jfcl-link .jfcl-link__icon {
545
- margin-left: 2px;
546
- height: 0.9em;
545
+ margin-left: 0.125em;
546
+ height: 0.85em;
547
547
  }
548
548
  @keyframes spin {
549
549
  from {
@@ -657,16 +657,18 @@
657
657
  padding: 0.75rem;
658
658
  cursor: pointer;
659
659
  }
660
- .jfcl-select-button__label:hover, .jfcl-select-button__label:active {
660
+ .jfcl-select-button__label:active {
661
661
  border: 2px solid #242323;
662
662
  padding: 0.6875rem;
663
- }
664
- .jfcl-select-button__label:hover {
665
- background-color: #efe9dc;
666
- }
667
- .jfcl-select-button__label:active {
668
663
  background-color: #edf3ff;
669
664
  }
665
+ @media (hover: hover) and (pointer: fine) {
666
+ .jfcl-select-button__label:hover {
667
+ border: 2px solid #242323;
668
+ padding: 0.6875rem;
669
+ background-color: #efe9dc;
670
+ }
671
+ }
670
672
 
671
673
  .jfcl-select-button__input:checked + .jfcl-select-button__label {
672
674
  background-color: #c6d8ff;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@justfixnyc/component-library",
3
3
  "description": "JustFix Component Library",
4
4
  "license": "MIT",
5
- "version": "0.58.0",
5
+ "version": "0.60.1",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.es.js",
8
8
  "files": [
@@ -1,28 +0,0 @@
1
- import './button.css';
2
- interface ButtonProps {
3
- /**
4
- * Is this the principal call to action on the page?
5
- */
6
- primary?: boolean;
7
- /**
8
- * What background color to use
9
- */
10
- backgroundColor?: string;
11
- /**
12
- * How large should the button be?
13
- */
14
- size?: 'small' | 'medium' | 'large';
15
- /**
16
- * Button contents
17
- */
18
- label: string;
19
- /**
20
- * Optional click handler
21
- */
22
- onClick?: () => void;
23
- }
24
- /**
25
- * Primary UI component for user interaction
26
- */
27
- export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
28
- export {};
@@ -1,12 +0,0 @@
1
- import './header.css';
2
- type User = {
3
- name: string;
4
- };
5
- interface HeaderProps {
6
- user?: User;
7
- onLogin: () => void;
8
- onLogout: () => void;
9
- onCreateAccount: () => void;
10
- }
11
- export declare const Header: ({ user, onLogin, onLogout, onCreateAccount, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import './page.css';
3
- export declare const Page: React.FC;