@0xsquid/ui 2.6.3 → 2.6.5-animate-number-beta.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 (105) hide show
  1. package/dist/cjs/index.js +18403 -18349
  2. package/dist/cjs/types/components/badges/PriceChange.d.ts +3 -1
  3. package/dist/cjs/types/components/badges/index.d.ts +1 -1
  4. package/dist/cjs/types/components/buttons/Button.d.ts +5 -1
  5. package/dist/cjs/types/components/buttons/Chip.d.ts +1 -1
  6. package/dist/cjs/types/components/controls/LargeNumericInput.d.ts +2 -0
  7. package/dist/cjs/types/components/controls/NumericInput.d.ts +22 -13
  8. package/dist/cjs/types/components/controls/Switch.d.ts +1 -1
  9. package/dist/cjs/types/components/controls/index.d.ts +2 -1
  10. package/dist/cjs/types/components/feedback/AnimateNumber.d.ts +8 -0
  11. package/dist/cjs/types/components/feedback/LoadingText.d.ts +7 -0
  12. package/dist/cjs/types/components/icons/Generic.d.ts +8 -0
  13. package/dist/cjs/types/components/icons/Loader.d.ts +1 -1
  14. package/dist/cjs/types/components/icons/PaymentIcons.d.ts +12 -0
  15. package/dist/cjs/types/components/icons/SwapInputs.d.ts +4 -1
  16. package/dist/cjs/types/components/icons/index.d.ts +1 -0
  17. package/dist/cjs/types/components/layout/AnimationWrapper.d.ts +3 -0
  18. package/dist/cjs/types/components/layout/ModalTitle.d.ts +5 -0
  19. package/dist/cjs/types/components/layout/SwapConfiguration.d.ts +17 -1
  20. package/dist/cjs/types/components/layout/index.d.ts +1 -0
  21. package/dist/cjs/types/components/lists/HistoryItem.d.ts +2 -1
  22. package/dist/cjs/types/components/lists/ListItem.d.ts +4 -1
  23. package/dist/cjs/types/components/navigation/Tabs.d.ts +5 -2
  24. package/dist/cjs/types/components/views/SwapProgressView.d.ts +2 -1
  25. package/dist/cjs/types/core/design-system.d.ts +1 -0
  26. package/dist/cjs/types/core/index.d.ts +1 -1
  27. package/dist/cjs/types/core/utils.d.ts +23 -0
  28. package/dist/cjs/types/hooks/index.d.ts +3 -2
  29. package/dist/cjs/types/hooks/useColorFromSeed.d.ts +1 -0
  30. package/dist/cjs/types/hooks/useMeasure.d.ts +36 -0
  31. package/dist/cjs/types/hooks/useNumericInput.d.ts +35 -0
  32. package/dist/cjs/types/services/internal/colorService.d.ts +0 -2
  33. package/dist/cjs/types/stories/buttons/AssetsButton.stories.d.ts +1 -0
  34. package/dist/cjs/types/stories/buttons/Button.stories.d.ts +33 -15
  35. package/dist/cjs/types/stories/buttons/Chip.stories.d.ts +2 -1
  36. package/dist/cjs/types/stories/controls/Input.stories.d.ts +1 -1
  37. package/dist/cjs/types/stories/controls/LargeNumericInput.stories.d.ts +6 -0
  38. package/dist/cjs/types/stories/controls/NumericInput.stories.d.ts +17 -0
  39. package/dist/cjs/types/stories/controls/Switch.stories.d.ts +5 -3
  40. package/dist/cjs/types/stories/feedback/AnimateNumber.stories.d.ts +6 -0
  41. package/dist/{esm/types/stories/badges → cjs/types/stories/feedback}/Loader.stories.d.ts +1 -1
  42. package/dist/cjs/types/stories/{badges → feedback}/LoadingSkeleton.stories.d.ts +2 -2
  43. package/dist/cjs/types/stories/feedback/LoadingText.stories.d.ts +6 -0
  44. package/dist/cjs/types/stories/layout/SwapConfiguration.stories.d.ts +2 -0
  45. package/dist/cjs/types/stories/lists/ListItem.stories.d.ts +3 -0
  46. package/dist/cjs/types/stories/navigation/Tabs.stories.d.ts +1 -0
  47. package/dist/cjs/types/stories/views/SwapProgressView.stories.d.ts +1 -0
  48. package/dist/cjs/types/types/components.d.ts +1 -1
  49. package/dist/cjs/types/types/config.d.ts +3 -3
  50. package/dist/cjs/types/types/index.d.ts +1 -1
  51. package/dist/esm/index.js +18387 -18344
  52. package/dist/esm/types/components/badges/PriceChange.d.ts +3 -1
  53. package/dist/esm/types/components/badges/index.d.ts +1 -1
  54. package/dist/esm/types/components/buttons/Button.d.ts +5 -1
  55. package/dist/esm/types/components/buttons/Chip.d.ts +1 -1
  56. package/dist/esm/types/components/controls/LargeNumericInput.d.ts +2 -0
  57. package/dist/esm/types/components/controls/NumericInput.d.ts +22 -13
  58. package/dist/esm/types/components/controls/Switch.d.ts +1 -1
  59. package/dist/esm/types/components/controls/index.d.ts +2 -1
  60. package/dist/esm/types/components/feedback/AnimateNumber.d.ts +8 -0
  61. package/dist/esm/types/components/feedback/LoadingText.d.ts +7 -0
  62. package/dist/esm/types/components/icons/Generic.d.ts +8 -0
  63. package/dist/esm/types/components/icons/Loader.d.ts +1 -1
  64. package/dist/esm/types/components/icons/PaymentIcons.d.ts +12 -0
  65. package/dist/esm/types/components/icons/SwapInputs.d.ts +4 -1
  66. package/dist/esm/types/components/icons/index.d.ts +1 -0
  67. package/dist/esm/types/components/layout/AnimationWrapper.d.ts +3 -0
  68. package/dist/esm/types/components/layout/ModalTitle.d.ts +5 -0
  69. package/dist/esm/types/components/layout/SwapConfiguration.d.ts +17 -1
  70. package/dist/esm/types/components/layout/index.d.ts +1 -0
  71. package/dist/esm/types/components/lists/HistoryItem.d.ts +2 -1
  72. package/dist/esm/types/components/lists/ListItem.d.ts +4 -1
  73. package/dist/esm/types/components/navigation/Tabs.d.ts +5 -2
  74. package/dist/esm/types/components/views/SwapProgressView.d.ts +2 -1
  75. package/dist/esm/types/core/design-system.d.ts +1 -0
  76. package/dist/esm/types/core/index.d.ts +1 -1
  77. package/dist/esm/types/core/utils.d.ts +23 -0
  78. package/dist/esm/types/hooks/index.d.ts +3 -2
  79. package/dist/esm/types/hooks/useColorFromSeed.d.ts +1 -0
  80. package/dist/esm/types/hooks/useMeasure.d.ts +36 -0
  81. package/dist/esm/types/hooks/useNumericInput.d.ts +35 -0
  82. package/dist/esm/types/services/internal/colorService.d.ts +0 -2
  83. package/dist/esm/types/stories/buttons/AssetsButton.stories.d.ts +1 -0
  84. package/dist/esm/types/stories/buttons/Button.stories.d.ts +33 -15
  85. package/dist/esm/types/stories/buttons/Chip.stories.d.ts +2 -1
  86. package/dist/esm/types/stories/controls/Input.stories.d.ts +1 -1
  87. package/dist/esm/types/stories/controls/LargeNumericInput.stories.d.ts +6 -0
  88. package/dist/esm/types/stories/controls/NumericInput.stories.d.ts +17 -0
  89. package/dist/esm/types/stories/controls/Switch.stories.d.ts +5 -3
  90. package/dist/esm/types/stories/feedback/AnimateNumber.stories.d.ts +6 -0
  91. package/dist/{cjs/types/stories/badges → esm/types/stories/feedback}/Loader.stories.d.ts +1 -1
  92. package/dist/esm/types/stories/{badges → feedback}/LoadingSkeleton.stories.d.ts +2 -2
  93. package/dist/esm/types/stories/feedback/LoadingText.stories.d.ts +6 -0
  94. package/dist/esm/types/stories/layout/SwapConfiguration.stories.d.ts +2 -0
  95. package/dist/esm/types/stories/lists/ListItem.stories.d.ts +3 -0
  96. package/dist/esm/types/stories/navigation/Tabs.stories.d.ts +1 -0
  97. package/dist/esm/types/stories/views/SwapProgressView.stories.d.ts +1 -0
  98. package/dist/esm/types/types/components.d.ts +1 -1
  99. package/dist/esm/types/types/config.d.ts +3 -3
  100. package/dist/esm/types/types/index.d.ts +1 -1
  101. package/dist/index.css +1 -1
  102. package/dist/index.d.ts +154 -47
  103. package/package.json +1 -1
  104. /package/dist/cjs/types/components/{badges → feedback}/LoadingSkeleton.d.ts +0 -0
  105. /package/dist/esm/types/components/{badges → feedback}/LoadingSkeleton.d.ts +0 -0
@@ -1,5 +1,5 @@
1
- import { Meta, StoryObj } from "@storybook/react";
2
- import { LoadingSkeleton } from "../../components/badges/LoadingSkeleton";
1
+ import { type Meta, type StoryObj } from "@storybook/react";
2
+ import { LoadingSkeleton } from "../../components/feedback/LoadingSkeleton";
3
3
  declare const meta: Meta<typeof LoadingSkeleton>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
@@ -0,0 +1,6 @@
1
+ import { type Meta, type StoryObj } from "@storybook/react";
2
+ import { LoadingText } from "../../components/feedback/LoadingText";
3
+ declare const meta: Meta<typeof LoadingText>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -4,7 +4,9 @@ declare const meta: Meta<typeof SwapConfiguration>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const EmptyVariantPrimary: Story;
7
+ export declare const EmptyVariantPrimaryLoading: Story;
7
8
  export declare const EmptyVariantWithoutNumericInputDetails: Story;
9
+ export declare const WithoutNumericInputDetailsLoading: Story;
8
10
  export declare const EmptyVariantAccent: Story;
9
11
  export declare const Loading: Story;
10
12
  export declare const LoadingWithAllProps: Story;
@@ -33,3 +33,6 @@ export declare const SmallWithoutExtraPadding: Story;
33
33
  export declare const LargeWithoutExtraPadding: Story;
34
34
  export declare const LargeWithDropdownMenu: Story;
35
35
  export declare const LargeWithMultilineSubtitle: Story;
36
+ export declare const SmallWithSwitchControl: Story;
37
+ export declare const LargeWithSwitchControl: Story;
38
+ export declare const LargeWithSwitchControlDisabled: Story;
@@ -5,3 +5,4 @@ export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const Small: Story;
7
7
  export declare const Large: Story;
8
+ export declare const Disabled: Story;
@@ -15,3 +15,4 @@ export declare const ConfirmationTooLong: Story;
15
15
  export declare const NeedsGas: Story;
16
16
  export declare const PartialSuccess: Story;
17
17
  export declare const Progress: Story;
18
+ export declare const SendTransaction: Story;
@@ -1,7 +1,7 @@
1
1
  export type TextSize = "small" | "medium" | "large";
2
2
  export type SwitchSize = "small" | "large";
3
3
  export type ButtonVariant = "primary" | "secondary" | "tertiary";
4
- export type ButtonSize = "md" | "lg";
4
+ export type ButtonSize = "sm" | "md" | "lg";
5
5
  export type SwapDirection = "from" | "to";
6
6
  export type BoostMode = "normal" | "boost";
7
7
  export type HistoryItemStatus = "completed" | "pending" | "failed" | "warning";
@@ -1,6 +1,6 @@
1
1
  import { type DeepPartial } from "./utils";
2
- declare const THEME_COLOR_KEYS: readonly ["grey-100", "grey-200", "grey-300", "grey-400", "grey-500", "grey-600", "grey-700", "grey-800", "grey-900", "royal-300", "royal-400", "royal-500", "royal-600", "royal-700", "highlight-700", "status-positive", "status-negative", "status-partial", "button-lg-primary-bg", "button-lg-primary-text", "button-lg-secondary-bg", "button-lg-secondary-text", "button-lg-tertiary-bg", "button-lg-tertiary-text", "button-md-primary-bg", "button-md-primary-text", "button-md-secondary-bg", "button-md-secondary-text", "button-md-tertiary-bg", "button-md-tertiary-text", "input-placeholder", "input-text", "input-selection", "input-bg", "animation-bg", "animation-text", "modal-backdrop", "menu-bg", "menu-text", "menu-backdrop", "material-light-thin", "material-light-average", "material-light-thick", "material-dark-thin", "material-dark-average", "material-dark-thick", "grey-100-005", "material-light-blend-grey-900", "material-light-blend-grey-800"];
3
- declare const THEME_BORDER_RADIUS_KEYS: readonly ["button-lg-primary", "button-lg-secondary", "button-lg-tertiary", "button-md-primary", "button-md-secondary", "button-md-tertiary", "container", "input", "menu-sm", "menu-lg", "modal"];
2
+ declare const THEME_COLOR_KEYS: readonly ["grey-100", "grey-200", "grey-300", "grey-400", "grey-500", "grey-600", "grey-700", "grey-800", "grey-900", "royal-300", "royal-400", "royal-500", "royal-600", "royal-700", "highlight-700", "status-positive", "status-negative", "status-partial", "button-lg-primary-bg", "button-lg-primary-text", "button-lg-secondary-bg", "button-lg-secondary-text", "button-lg-tertiary-bg", "button-lg-tertiary-text", "button-md-primary-bg", "button-md-primary-text", "button-md-secondary-bg", "button-md-secondary-text", "button-md-tertiary-bg", "button-md-tertiary-text", "button-sm-primary-bg", "button-sm-primary-text", "button-sm-secondary-bg", "button-sm-secondary-text", "button-sm-tertiary-bg", "button-sm-tertiary-text", "input-placeholder", "input-text", "input-selection", "input-bg", "animation-bg", "animation-text", "modal-backdrop", "menu-bg", "menu-text", "menu-backdrop", "material-light-thin", "material-light-average", "material-light-thick", "material-dark-thin", "material-dark-average", "material-dark-thick", "grey-100-005", "material-light-blend-grey-900", "material-light-blend-grey-800"];
3
+ declare const THEME_BORDER_RADIUS_KEYS: readonly ["button-lg-primary", "button-lg-secondary", "button-lg-tertiary", "button-md-primary", "button-md-secondary", "button-md-tertiary", "button-sm-primary", "button-sm-secondary", "button-sm-tertiary", "container", "input", "menu-sm", "menu-lg", "modal"];
4
4
  declare const THEME_FONT_SIZE_KEYS: readonly ["caption", "body-large", "body-medium", "body-small", "heading-small", "heading-medium", "heading-large"];
5
5
  declare const THEME_FONT_WEIGHT_KEYS: readonly ["caption", "body-small", "body-medium", "body-large", "heading-small", "heading-medium", "heading-large"];
6
6
  declare const THEME_FONT_FAMILY_KEYS: readonly ["squid-main"];
@@ -26,7 +26,7 @@ export interface InternalTheme {
26
26
  * These colors are optional
27
27
  * and will be generated internally using the base colors if not provided
28
28
  */
29
- type OptionalColorsKeys = "button-lg-primary-bg" | "button-lg-primary-text" | "button-lg-secondary-bg" | "button-lg-secondary-text" | "button-lg-tertiary-bg" | "button-lg-tertiary-text" | "button-md-primary-bg" | "button-md-primary-text" | "button-md-secondary-bg" | "button-md-secondary-text" | "button-md-tertiary-bg" | "button-md-tertiary-text" | "input-placeholder" | "input-text" | "input-selection" | "input-bg" | "animation-bg" | "animation-text" | "modal-backdrop" | "menu-bg" | "menu-text" | "menu-backdrop";
29
+ type OptionalColorsKeys = "button-lg-primary-bg" | "button-lg-primary-text" | "button-lg-secondary-bg" | "button-lg-secondary-text" | "button-lg-tertiary-bg" | "button-lg-tertiary-text" | "button-md-primary-bg" | "button-md-primary-text" | "button-md-secondary-bg" | "button-md-secondary-text" | "button-md-tertiary-bg" | "button-md-tertiary-text" | "button-sm-primary-bg" | "button-sm-primary-text" | "button-sm-secondary-bg" | "button-sm-secondary-text" | "button-sm-tertiary-bg" | "button-sm-tertiary-text" | "input-placeholder" | "input-text" | "input-selection" | "input-bg" | "animation-bg" | "animation-text" | "modal-backdrop" | "menu-bg" | "menu-text" | "menu-backdrop";
30
30
  /**
31
31
  * These colors are generated internally using the base colors
32
32
  */
@@ -1,4 +1,4 @@
1
1
  export type { Theme, PublicTheme, Settings } from "./config";
2
2
  export * from "./utils";
3
- export type { SwapState, ThemeType, SwapStep, HistoryItemStatus, ActionStatus, AssetsButtonVariant, ButtonVariant, ButtonSize, DescriptionBlock, } from "./components";
3
+ export type { SwapState, ThemeType, SwapStep, HistoryItemStatus, ActionStatus, AssetsButtonVariant, ButtonVariant, ButtonSize, DescriptionBlock, DropdownPosition, } from "./components";
4
4
  export { themeKeysToCssVariables } from "./config";