@0xsquid/ui 0.9.4 → 0.10.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.
Files changed (43) hide show
  1. package/dist/cjs/index.js +156 -111
  2. package/dist/cjs/types/components/buttons/BoostButton.d.ts +2 -1
  3. package/dist/cjs/types/components/buttons/Button.d.ts +2 -1
  4. package/dist/cjs/types/components/controls/Tooltip.d.ts +2 -1
  5. package/dist/cjs/types/components/icons/Social.d.ts +4 -0
  6. package/dist/cjs/types/components/layout/Boost.d.ts +2 -1
  7. package/dist/cjs/types/components/layout/DetailsToolbar.d.ts +2 -1
  8. package/dist/cjs/types/components/lists/ListItem.d.ts +1 -1
  9. package/dist/cjs/types/core/constants.d.ts +4 -0
  10. package/dist/cjs/types/core/themes.d.ts +1 -0
  11. package/dist/cjs/types/providers/SquidConfigProvider.d.ts +2 -2
  12. package/dist/cjs/types/services/internal/colorService.d.ts +16 -1
  13. package/dist/cjs/types/stories/buttons/BoostButton.stories.d.ts +1 -0
  14. package/dist/cjs/types/stories/buttons/Button.stories.d.ts +2 -0
  15. package/dist/cjs/types/stories/layout/Boost.stories.d.ts +1 -0
  16. package/dist/cjs/types/stories/layout/DetailsToolbar.stories.d.ts +1 -0
  17. package/dist/cjs/types/stories/lists/ListItem.stories.d.ts +1 -0
  18. package/dist/cjs/types/types/config.d.ts +23 -16
  19. package/dist/esm/index.js +156 -111
  20. package/dist/esm/types/components/buttons/BoostButton.d.ts +2 -1
  21. package/dist/esm/types/components/buttons/Button.d.ts +2 -1
  22. package/dist/esm/types/components/controls/Tooltip.d.ts +2 -1
  23. package/dist/esm/types/components/icons/Social.d.ts +4 -0
  24. package/dist/esm/types/components/layout/Boost.d.ts +2 -1
  25. package/dist/esm/types/components/layout/DetailsToolbar.d.ts +2 -1
  26. package/dist/esm/types/components/lists/ListItem.d.ts +1 -1
  27. package/dist/esm/types/core/constants.d.ts +4 -0
  28. package/dist/esm/types/core/themes.d.ts +1 -0
  29. package/dist/esm/types/providers/SquidConfigProvider.d.ts +2 -2
  30. package/dist/esm/types/services/internal/colorService.d.ts +16 -1
  31. package/dist/esm/types/stories/buttons/BoostButton.stories.d.ts +1 -0
  32. package/dist/esm/types/stories/buttons/Button.stories.d.ts +2 -0
  33. package/dist/esm/types/stories/layout/Boost.stories.d.ts +1 -0
  34. package/dist/esm/types/stories/layout/DetailsToolbar.stories.d.ts +1 -0
  35. package/dist/esm/types/stories/lists/ListItem.stories.d.ts +1 -0
  36. package/dist/esm/types/types/config.d.ts +23 -16
  37. package/dist/index.css +84 -40
  38. package/dist/index.d.ts +31 -40
  39. package/package.json +1 -1
  40. package/dist/cjs/types/components/views/ProfileView.d.ts +0 -1
  41. package/dist/cjs/types/stories/views/ProfileView.stories.d.ts +0 -6
  42. package/dist/esm/types/components/views/ProfileView.d.ts +0 -1
  43. package/dist/esm/types/stories/views/ProfileView.stories.d.ts +0 -6
@@ -1,9 +1,24 @@
1
1
  import { SquidTheme } from '../../types/config';
2
2
  /**
3
3
  * Parsing the user readable config to css variables
4
+ * Also maps the public theme variables to the internal theme variables
5
+ * example user theme:
6
+ * {
7
+ * 'content-100': '#000',
8
+ * 'content-200': '#000',
9
+ * 'accent-400': '#000',
10
+ * 'transparent-light-thin': '#000'
11
+ * }
12
+ * Resulting in:
13
+ * {
14
+ * 'grey-100': '#000',
15
+ * 'grey-200': '#000',
16
+ * 'royal-400': '#000',
17
+ * 'material-light-thin': '#000'
18
+ * }
4
19
  * @param style
5
20
  */
6
- export declare const getParsedStyle: (style?: SquidTheme) => {
21
+ export declare const parseSquidTheme: (userTheme?: SquidTheme) => {
7
22
  [key: string]: string | undefined;
8
23
  } | undefined;
9
24
  export declare function getContrastColor({ r, g, b, }: {
@@ -6,3 +6,4 @@ type Story = StoryObj<typeof meta>;
6
6
  export declare const Normal: Story;
7
7
  export declare const Boost: Story;
8
8
  export declare const Disabled: Story;
9
+ export declare const DisabledWithDelayedTooltip: Story;
@@ -19,3 +19,5 @@ export declare const LargePrimary: Story;
19
19
  export declare const LargeSecondary: Story;
20
20
  export declare const LargeTertiary: Story;
21
21
  export declare const LargeDisabled: Story;
22
+ export declare const LargeAndLink: Story;
23
+ export declare const LargeAndLinkDisabled: Story;
@@ -6,3 +6,4 @@ type Story = StoryObj<typeof meta>;
6
6
  export declare const Default: Story;
7
7
  export declare const Boosted: Story;
8
8
  export declare const Disabled: Story;
9
+ export declare const DisabledWithDelayedTooltip: Story;
@@ -9,3 +9,4 @@ export declare const Empty: Story;
9
9
  export declare const Error: Story;
10
10
  export declare const ErrorHelpButton: Story;
11
11
  export declare const BoostDisabled: Story;
12
+ export declare const BoostDisabledWithDelayedTooltip: Story;
@@ -5,6 +5,7 @@ export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const Large: Story;
7
7
  export declare const LargeWithLongTitle: Story;
8
+ export declare const LargeWithLongTitleAndSubtitle: Story;
8
9
  export declare const LargeRoundedFull: Story;
9
10
  export declare const LargeWithSubtitle: Story;
10
11
  export declare const LargeWithDetail: Story;
@@ -2,7 +2,7 @@
2
2
  * The color format must be of type #FFFFFF
3
3
  */
4
4
  export type ColorType = `#${string}${string}${string}${string}${string}${string}`;
5
- export interface SquidTheme {
5
+ export interface InternalSquidTheme {
6
6
  'grey-100': string;
7
7
  'grey-200': string;
8
8
  'grey-300': string;
@@ -12,14 +12,8 @@ export interface SquidTheme {
12
12
  'grey-700': string;
13
13
  'grey-800': string;
14
14
  'grey-900': string;
15
- 'royal-100': string;
16
- 'royal-200': string;
17
- 'royal-300': string;
18
15
  'royal-400': string;
19
16
  'royal-500': string;
20
- 'royal-600': string;
21
- 'royal-700': string;
22
- 'royal-800': string;
23
17
  'status-positive': string;
24
18
  'status-negative': string;
25
19
  'material-light-thin': string;
@@ -28,19 +22,32 @@ export interface SquidTheme {
28
22
  'material-dark-thin': string;
29
23
  'material-dark-average': string;
30
24
  'material-dark-thick': string;
31
- 'volt-300': string;
32
- 'volt-400': string;
33
- 'volt-600': string;
34
- 'volt-700': string;
35
- 'volt-800': string;
36
- 'volt-900': string;
37
- 'accent-salmon': string;
38
- 'accent-gold': string;
39
25
  }
26
+ export type SquidTheme = {
27
+ 'content-100': string;
28
+ 'content-200': string;
29
+ 'content-300': string;
30
+ 'content-400': string;
31
+ 'content-500': string;
32
+ 'content-600': string;
33
+ 'content-700': string;
34
+ 'content-800': string;
35
+ 'content-900': string;
36
+ 'accent-400': string;
37
+ 'accent-500': string;
38
+ 'status-positive': string;
39
+ 'status-negative': string;
40
+ 'transparent-light-thin': string;
41
+ 'transparent-light-average': string;
42
+ 'transparent-light-thick': string;
43
+ 'transparent-dark-thin': string;
44
+ 'transparent-dark-average': string;
45
+ 'transparent-dark-thick': string;
46
+ };
40
47
  export declare const SQUID_THEME_CSS_VARIABLE_PREFIX = "--squid-theme-";
41
48
  /**
42
49
  * Mapping between readable variables name and css variables used TailwindCSS config
43
50
  */
44
- export declare const themeTypesKeys: Record<keyof SquidTheme, {
51
+ export declare const themeTypesKeys: Record<keyof InternalSquidTheme, {
45
52
  cssVariable: string;
46
53
  }>;
package/dist/index.css CHANGED
@@ -788,10 +788,6 @@ video {
788
788
  margin-left: -0.25rem;
789
789
  }
790
790
 
791
- .-tw-ml-\[5px\] {
792
- margin-left: -5px;
793
- }
794
-
795
791
  .-tw-ml-squid-xs {
796
792
  margin-left: -0.625rem;
797
793
  }
@@ -888,10 +884,6 @@ video {
888
884
  height: 195px;
889
885
  }
890
886
 
891
- .tw-h-\[200px\] {
892
- height: 200px;
893
- }
894
-
895
887
  .tw-h-\[205px\] {
896
888
  height: 205px;
897
889
  }
@@ -900,10 +892,6 @@ video {
900
892
  height: 21px;
901
893
  }
902
894
 
903
- .tw-h-\[22px\] {
904
- height: 22px;
905
- }
906
-
907
895
  .tw-h-\[240px\] {
908
896
  height: 240px;
909
897
  }
@@ -948,10 +936,6 @@ video {
948
936
  height: 60px;
949
937
  }
950
938
 
951
- .tw-h-\[90px\] {
952
- height: 90px;
953
- }
954
-
955
939
  .tw-h-\[95px\] {
956
940
  height: 95px;
957
941
  }
@@ -1760,10 +1744,6 @@ video {
1760
1744
  border-width: 1px;
1761
1745
  }
1762
1746
 
1763
- .tw-border-\[5px\] {
1764
- border-width: 5px;
1765
- }
1766
-
1767
1747
  .tw-border-b {
1768
1748
  border-bottom-width: 1px;
1769
1749
  }
@@ -1792,10 +1772,6 @@ video {
1792
1772
  border-color: var(--squid-theme-grey-900);
1793
1773
  }
1794
1774
 
1795
- .tw-border-material-dark-average {
1796
- border-color: var(--squid-theme-material-dark-average);
1797
- }
1798
-
1799
1775
  .tw-border-material-light-thick {
1800
1776
  border-color: var(--squid-theme-material-light-thick);
1801
1777
  }
@@ -1989,10 +1965,6 @@ video {
1989
1965
  padding: 0.625rem;
1990
1966
  }
1991
1967
 
1992
- .tw-p-squid-xxs {
1993
- padding: 0.3125rem;
1994
- }
1995
-
1996
1968
  .\!tw-px-squid-m {
1997
1969
  padding-left: 1.25rem !important;
1998
1970
  padding-right: 1.25rem !important;
@@ -2296,10 +2268,18 @@ video {
2296
2268
  line-height: 10px !important;
2297
2269
  }
2298
2270
 
2271
+ .\!tw-leading-\[11px\] {
2272
+ line-height: 11px !important;
2273
+ }
2274
+
2299
2275
  .\!tw-leading-\[13px\] {
2300
2276
  line-height: 13px !important;
2301
2277
  }
2302
2278
 
2279
+ .\!tw-leading-\[14px\] {
2280
+ line-height: 14px !important;
2281
+ }
2282
+
2303
2283
  .\!tw-leading-\[18px\] {
2304
2284
  line-height: 18px !important;
2305
2285
  }
@@ -2542,6 +2522,10 @@ video {
2542
2522
  transition-duration: 150ms;
2543
2523
  }
2544
2524
 
2525
+ .tw-duration-100 {
2526
+ transition-duration: 100ms;
2527
+ }
2528
+
2545
2529
  .tw-duration-200 {
2546
2530
  transition-duration: 200ms;
2547
2531
  }
@@ -2550,6 +2534,10 @@ video {
2550
2534
  transition-duration: 300ms;
2551
2535
  }
2552
2536
 
2537
+ .tw-duration-\[50ms\] {
2538
+ transition-duration: 50ms;
2539
+ }
2540
+
2553
2541
  .tw-ease-in-out {
2554
2542
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
2555
2543
  }
@@ -2603,13 +2591,15 @@ li {
2603
2591
  }
2604
2592
 
2605
2593
  button,
2606
- input {
2594
+ input,
2595
+ a {
2607
2596
  outline: 2px solid transparent;
2608
2597
  outline-offset: -1px;
2609
2598
  }
2610
2599
 
2611
2600
  button:focus,
2612
- input:focus {
2601
+ input:focus,
2602
+ a:focus {
2613
2603
  outline-width: 2px;
2614
2604
  outline-color: var(--squid-theme-royal-500);
2615
2605
  }
@@ -2648,8 +2638,26 @@ input[type='number'] {
2648
2638
  outline-color: var(--squid-theme-status-negative);
2649
2639
  }
2650
2640
 
2651
- .hover\:tw-block:hover {
2652
- display: block;
2641
+ @keyframes tw-display-delayed {
2642
+ 0%, 90% {
2643
+ display: none;
2644
+ visibility: hidden;
2645
+ opacity: 0;
2646
+ }
2647
+
2648
+ 100% {
2649
+ display: block;
2650
+ visibility: visible;
2651
+ opacity: 1;
2652
+ }
2653
+ }
2654
+
2655
+ .hover\:tw-animate-display-delayed:hover {
2656
+ animation: tw-display-delayed var(--squid-animation-display-delayed-duration) ease-out forwards;
2657
+ }
2658
+
2659
+ .hover\:tw-bg-grey-700:hover {
2660
+ background-color: var(--squid-theme-grey-700);
2653
2661
  }
2654
2662
 
2655
2663
  .hover\:tw-bg-material-light-thin:hover {
@@ -2660,6 +2668,10 @@ input[type='number'] {
2660
2668
  color: var(--squid-theme-grey-400);
2661
2669
  }
2662
2670
 
2671
+ .hover\:tw-opacity-100:hover {
2672
+ opacity: 1;
2673
+ }
2674
+
2663
2675
  .focus\:tw-bg-material-light-thin:focus {
2664
2676
  background-color: var(--squid-theme-material-light-thin);
2665
2677
  }
@@ -2693,14 +2705,16 @@ input[type='number'] {
2693
2705
  display: block;
2694
2706
  }
2695
2707
 
2696
- .tw-group\/list-item:hover .group-hover\/list-item\:tw-flex {
2697
- display: flex;
2698
- }
2699
-
2700
2708
  .tw-group\/history-item:hover .group-hover\/history-item\:tw-hidden {
2701
2709
  display: none;
2702
2710
  }
2703
2711
 
2712
+ .tw-group\/swap-step-item-button:hover .group-hover\/swap-step-item-button\:tw-from-grey-700 {
2713
+ --tw-gradient-from: var(--squid-theme-grey-700) var(--tw-gradient-from-position);
2714
+ --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
2715
+ --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
2716
+ }
2717
+
2704
2718
  .tw-group\/history-item:hover .group-hover\/history-item\:tw-opacity-0 {
2705
2719
  opacity: 0;
2706
2720
  }
@@ -2709,13 +2723,35 @@ input[type='number'] {
2709
2723
  opacity: 1;
2710
2724
  }
2711
2725
 
2726
+ .tw-group\/list-item:hover .group-hover\/list-item\:tw-opacity-100 {
2727
+ opacity: 1;
2728
+ }
2729
+
2730
+ .tw-group\/list-item:focus .group-focus\/list-item\:tw-opacity-100 {
2731
+ opacity: 1;
2732
+ }
2733
+
2712
2734
  .tw-group:disabled .group-disabled\:tw-grayscale {
2713
2735
  --tw-grayscale: grayscale(100%);
2714
2736
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2715
2737
  }
2716
2738
 
2717
- .tw-peer:hover ~ .peer-hover\:tw-block {
2718
- display: block;
2739
+ @keyframes tw-display-delayed {
2740
+ 0%, 90% {
2741
+ display: none;
2742
+ visibility: hidden;
2743
+ opacity: 0;
2744
+ }
2745
+
2746
+ 100% {
2747
+ display: block;
2748
+ visibility: visible;
2749
+ opacity: 1;
2750
+ }
2751
+ }
2752
+
2753
+ .tw-peer:hover ~ .peer-hover\:tw-animate-display-delayed {
2754
+ animation: tw-display-delayed var(--squid-animation-display-delayed-duration) ease-out forwards;
2719
2755
  }
2720
2756
 
2721
2757
  .tw-peer:focus ~ .peer-focus\:tw-hidden {
@@ -2753,7 +2789,7 @@ input[type='number'] {
2753
2789
  }
2754
2790
 
2755
2791
  .data-\[boost-mode\=boost\]\:tw-animate-move-to-left-with-spring-bounce[data-boost-mode=boost] {
2756
- animation: tw-move-to-left-with-spring-bounce var(--boost-animation-duration, 0s) ease-out both;
2792
+ animation: tw-move-to-left-with-spring-bounce var(--squid-animation-move-with-spring-bounce-duration, 0s) ease-out both;
2757
2793
  }
2758
2794
 
2759
2795
  @keyframes tw-move-to-right-with-spring-bounce {
@@ -2775,7 +2811,7 @@ input[type='number'] {
2775
2811
  }
2776
2812
 
2777
2813
  .data-\[boost-mode\=normal\]\:tw-animate-move-to-right-with-spring-bounce[data-boost-mode=normal] {
2778
- animation: tw-move-to-right-with-spring-bounce var(--boost-animation-duration, 0s) ease-out both;
2814
+ animation: tw-move-to-right-with-spring-bounce var(--squid-animation-move-with-spring-bounce-duration, 0s) ease-out both;
2779
2815
  }
2780
2816
 
2781
2817
  .tw-group[data-boost-mode=boost] .group-data-\[boost-mode\=boost\]\:tw-left-\[calc\(50\%-2px\)\] {
@@ -2794,6 +2830,14 @@ input[type='number'] {
2794
2830
  background-image: linear-gradient(180deg, #A577D8 0%, #BF91F2 100%);
2795
2831
  }
2796
2832
 
2833
+ .tw-group[data-squid-theme-type=dark] .group-data-\[squid-theme-type\=dark\]\:tw-text-grey-100 {
2834
+ color: var(--squid-theme-grey-100);
2835
+ }
2836
+
2837
+ .tw-group[data-squid-theme-type=light] .group-data-\[squid-theme-type\=light\]\:tw-text-grey-900 {
2838
+ color: var(--squid-theme-grey-900);
2839
+ }
2840
+
2797
2841
  .tw-group[data-squid-theme-type=dark] .group-data-\[squid-theme-type\=dark\]\:tw-shadow-elevation-dark-2 {
2798
2842
  --tw-shadow: 0px 2px 5px 1px rgba(0, 0, 0, 0.20), 0px 5px 20px -1px rgba(0, 0, 0, 0.33);
2799
2843
  --tw-shadow-colored: 0px 2px 5px 1px var(--tw-shadow-color), 0px 5px 20px -1px var(--tw-shadow-color);
package/dist/index.d.ts CHANGED
@@ -72,8 +72,9 @@ interface BoostButtonProps {
72
72
  boostMode: BoostMode;
73
73
  }) => void;
74
74
  boostDisabledMessage?: string;
75
+ tooltipDisplayDelayMs?: number;
75
76
  }
76
- declare function BoostButton({ boostMode, onToggleBoostMode, canToggleBoostMode, boostDisabledMessage, }: BoostButtonProps): react_jsx_runtime.JSX.Element;
77
+ declare function BoostButton({ boostMode, onToggleBoostMode, canToggleBoostMode, boostDisabledMessage, tooltipDisplayDelayMs, }: BoostButtonProps): react_jsx_runtime.JSX.Element;
77
78
 
78
79
  interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
79
80
  label?: string;
@@ -81,8 +82,9 @@ interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
81
82
  variant: ButtonVariant;
82
83
  size: ButtonSize;
83
84
  disabled?: boolean;
85
+ link?: string;
84
86
  }
85
- declare function Button({ label, disabled, size, variant, icon, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
87
+ declare function Button({ label, disabled, size, variant, icon, link, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
86
88
 
87
89
  interface ChipProps extends React.HTMLAttributes<HTMLDivElement> {
88
90
  label?: string;
@@ -147,8 +149,9 @@ interface TooltipProps {
147
149
  containerClassName?: string;
148
150
  childrenClassName?: string;
149
151
  tooltipClassName?: string;
152
+ displayDelayMs?: number;
150
153
  }
151
- declare function Tooltip({ children, tooltipContent, tooltipWidth, threshold, containerClassName, childrenClassName, tooltipClassName, }: TooltipProps): react_jsx_runtime.JSX.Element;
154
+ declare function Tooltip({ children, tooltipContent, tooltipWidth, threshold, containerClassName, childrenClassName, tooltipClassName, displayDelayMs, }: TooltipProps): react_jsx_runtime.JSX.Element;
152
155
 
153
156
  interface BoostProps {
154
157
  boostMode: BoostMode;
@@ -158,8 +161,9 @@ interface BoostProps {
158
161
  estimatedTime: string;
159
162
  boostDisabledMessage?: string;
160
163
  canToggleBoostMode?: boolean;
164
+ boostTooltipDisplayDelayMs?: number;
161
165
  }
162
- declare function Boost({ boostMode, onToggleBoostMode, estimatedTime, boostDisabledMessage, canToggleBoostMode, }: BoostProps): react_jsx_runtime.JSX.Element;
166
+ declare function Boost({ boostMode, onToggleBoostMode, estimatedTime, boostDisabledMessage, canToggleBoostMode, boostTooltipDisplayDelayMs, }: BoostProps): react_jsx_runtime.JSX.Element;
163
167
 
164
168
  interface DetailsToolbarProps {
165
169
  errorMessage?: string;
@@ -179,8 +183,9 @@ interface DetailsToolbarProps {
179
183
  label: string;
180
184
  onClick: () => void;
181
185
  };
186
+ boostTooltipDisplayDelayMs?: number;
182
187
  }
183
- declare function DetailsToolbar({ errorMessage, boostMode, onToggleBoostMode, onInvertSwapButtonClick, onFeeButtonClick, feeInUsd, estimatedTime, canToggleBoostMode, boostDisabledMessage, helpButton, isLoading, isEmpty, }: DetailsToolbarProps): react_jsx_runtime.JSX.Element;
188
+ declare function DetailsToolbar({ errorMessage, boostMode, onToggleBoostMode, onInvertSwapButtonClick, onFeeButtonClick, feeInUsd, estimatedTime, canToggleBoostMode, boostDisabledMessage, helpButton, isLoading, isEmpty, boostTooltipDisplayDelayMs, }: DetailsToolbarProps): react_jsx_runtime.JSX.Element;
184
189
 
185
190
  interface DropdownMenuItemProps {
186
191
  label: string;
@@ -206,7 +211,7 @@ interface HistoryItemProps {
206
211
  }
207
212
  declare function HistoryItem({ firstImageUrl, secondImageUrl, isPending, dateCompleted, fromAmount, fromLabel, toAmount, toLabel, pendingLabel, dropdownMenuItems, itemsContainerRef, }: HistoryItemProps): react_jsx_runtime.JSX.Element;
208
213
 
209
- interface ListItemProps extends React.HTMLAttributes<HTMLLIElement> {
214
+ interface ListItemProps extends React.HTMLAttributes<HTMLButtonElement> {
210
215
  itemTitle: string | React.ReactNode;
211
216
  mainImageUrl?: string;
212
217
  secondaryImageUrl?: string;
@@ -443,44 +448,30 @@ interface HeadingTextProps {
443
448
  }
444
449
  declare function HeadingText({ children, bold, size }: HeadingTextProps): react_jsx_runtime.JSX.Element;
445
450
 
446
- interface SquidTheme {
447
- 'grey-100': string;
448
- 'grey-200': string;
449
- 'grey-300': string;
450
- 'grey-400': string;
451
- 'grey-500': string;
452
- 'grey-600': string;
453
- 'grey-700': string;
454
- 'grey-800': string;
455
- 'grey-900': string;
456
- 'royal-100': string;
457
- 'royal-200': string;
458
- 'royal-300': string;
459
- 'royal-400': string;
460
- 'royal-500': string;
461
- 'royal-600': string;
462
- 'royal-700': string;
463
- 'royal-800': string;
451
+ type SquidTheme = {
452
+ 'content-100': string;
453
+ 'content-200': string;
454
+ 'content-300': string;
455
+ 'content-400': string;
456
+ 'content-500': string;
457
+ 'content-600': string;
458
+ 'content-700': string;
459
+ 'content-800': string;
460
+ 'content-900': string;
461
+ 'accent-400': string;
462
+ 'accent-500': string;
464
463
  'status-positive': string;
465
464
  'status-negative': string;
466
- 'material-light-thin': string;
467
- 'material-light-average': string;
468
- 'material-light-thick': string;
469
- 'material-dark-thin': string;
470
- 'material-dark-average': string;
471
- 'material-dark-thick': string;
472
- 'volt-300': string;
473
- 'volt-400': string;
474
- 'volt-600': string;
475
- 'volt-700': string;
476
- 'volt-800': string;
477
- 'volt-900': string;
478
- 'accent-salmon': string;
479
- 'accent-gold': string;
480
- }
465
+ 'transparent-light-thin': string;
466
+ 'transparent-light-average': string;
467
+ 'transparent-light-thick': string;
468
+ 'transparent-dark-thin': string;
469
+ 'transparent-dark-average': string;
470
+ 'transparent-dark-thick': string;
471
+ };
481
472
 
482
473
  declare function SquidConfigProvider({ theme, children, themeType, }: {
483
- theme: SquidTheme;
474
+ theme?: SquidTheme;
484
475
  children?: React.ReactNode;
485
476
  themeType?: ThemeType;
486
477
  }): react_jsx_runtime.JSX.Element;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+https://github.com/0xsquid/squid-ui.git"
6
6
  },
7
7
  "description": "Squid's UI components",
8
- "version": "0.9.4",
8
+ "version": "0.10.0",
9
9
  "author": "",
10
10
  "license": "MIT",
11
11
  "scripts": {
@@ -1 +0,0 @@
1
- export declare function ProfileView(): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { ProfileView } from '../../components/views/ProfileView';
3
- declare const meta: Meta<typeof ProfileView>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Default: Story;
@@ -1 +0,0 @@
1
- export declare function ProfileView(): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { ProfileView } from '../../components/views/ProfileView';
3
- declare const meta: Meta<typeof ProfileView>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Default: Story;