@luxfi/ui 7.4.0 → 7.4.3

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 (131) hide show
  1. package/dist/avatar.cjs +7 -6
  2. package/dist/avatar.js +7 -5
  3. package/dist/badge.cjs +33 -35
  4. package/dist/badge.js +33 -35
  5. package/dist/bank.d.cts +3 -3
  6. package/dist/bank.d.ts +3 -3
  7. package/dist/checkbox.cjs +4 -4
  8. package/dist/checkbox.d.cts +3 -2
  9. package/dist/checkbox.d.ts +3 -2
  10. package/dist/checkbox.js +5 -4
  11. package/dist/chrome.cjs +960 -0
  12. package/dist/chrome.d.cts +93 -0
  13. package/dist/chrome.d.ts +93 -0
  14. package/dist/chrome.js +931 -0
  15. package/dist/drawer.cjs +86 -20
  16. package/dist/drawer.js +85 -19
  17. package/dist/expiration-selector.cjs +3 -2
  18. package/dist/expiration-selector.js +3 -2
  19. package/dist/greeks-display.cjs +6 -6
  20. package/dist/greeks-display.js +6 -6
  21. package/dist/gui.cjs +13 -0
  22. package/dist/gui.d.cts +2 -0
  23. package/dist/gui.d.ts +2 -0
  24. package/dist/gui.js +2 -0
  25. package/dist/heading.cjs +4 -2
  26. package/dist/heading.js +4 -2
  27. package/dist/iam.cjs +216 -0
  28. package/dist/iam.d.cts +65 -0
  29. package/dist/iam.d.ts +65 -0
  30. package/dist/iam.js +211 -0
  31. package/dist/icons.cjs +13 -0
  32. package/dist/icons.d.cts +1 -0
  33. package/dist/icons.d.ts +1 -0
  34. package/dist/icons.js +2 -0
  35. package/dist/identity.cjs +430 -0
  36. package/dist/identity.d.cts +64 -0
  37. package/dist/identity.d.ts +64 -0
  38. package/dist/identity.js +408 -0
  39. package/dist/index.cjs +1610 -836
  40. package/dist/index.d.cts +7 -3
  41. package/dist/index.d.ts +7 -3
  42. package/dist/index.js +1587 -831
  43. package/dist/input.cjs +3 -1
  44. package/dist/input.d.cts +3 -5
  45. package/dist/input.d.ts +3 -5
  46. package/dist/input.js +3 -1
  47. package/dist/lux.config.cjs +23 -2
  48. package/dist/lux.config.d.cts +28 -10
  49. package/dist/lux.config.d.ts +28 -10
  50. package/dist/lux.config.js +23 -2
  51. package/dist/menu.cjs +4 -4
  52. package/dist/menu.js +4 -4
  53. package/dist/next.cjs +132 -0
  54. package/dist/next.d.cts +32 -0
  55. package/dist/next.d.ts +32 -0
  56. package/dist/next.js +129 -0
  57. package/dist/option-chain.cjs +1 -1
  58. package/dist/option-chain.js +1 -1
  59. package/dist/option-position.cjs +2 -1
  60. package/dist/option-position.js +2 -1
  61. package/dist/pnl-diagram.cjs +8 -6
  62. package/dist/pnl-diagram.js +8 -6
  63. package/dist/progress.cjs +7 -6
  64. package/dist/progress.js +7 -5
  65. package/dist/provider.cjs +146 -4
  66. package/dist/provider.d.cts +15 -3
  67. package/dist/provider.d.ts +15 -3
  68. package/dist/provider.js +146 -5
  69. package/dist/radio.cjs +9 -7
  70. package/dist/radio.js +10 -7
  71. package/dist/separator.cjs +3 -1
  72. package/dist/separator.js +3 -1
  73. package/dist/slider.cjs +28 -16
  74. package/dist/slider.js +28 -15
  75. package/dist/strategy-builder.cjs +2 -1
  76. package/dist/strategy-builder.js +2 -1
  77. package/dist/switch.cjs +11 -12
  78. package/dist/switch.js +12 -12
  79. package/dist/tag.cjs +34 -36
  80. package/dist/tag.js +33 -35
  81. package/dist/textarea.cjs +3 -1
  82. package/dist/textarea.js +3 -1
  83. package/dist/tooltip.cjs +28 -30
  84. package/dist/tooltip.js +27 -29
  85. package/dist/use-narrow.cjs +46 -0
  86. package/dist/use-narrow.d.cts +12 -0
  87. package/dist/use-narrow.d.ts +12 -0
  88. package/dist/use-narrow.js +20 -0
  89. package/dist/vite.cjs +109 -0
  90. package/dist/vite.d.cts +29 -0
  91. package/dist/vite.d.ts +29 -0
  92. package/dist/vite.js +107 -0
  93. package/dist/white-label.cjs +142 -0
  94. package/dist/white-label.d.cts +59 -0
  95. package/dist/white-label.d.ts +59 -0
  96. package/dist/white-label.js +134 -0
  97. package/package.json +85 -19
  98. package/src/avatar.tsx +22 -16
  99. package/src/checkbox.tsx +15 -10
  100. package/src/chrome.tsx +459 -0
  101. package/src/drawer.tsx +83 -10
  102. package/src/engine.ts +130 -0
  103. package/src/expiration-selector.tsx +3 -2
  104. package/src/greeks-display.tsx +9 -6
  105. package/src/gui.ts +17 -0
  106. package/src/heading.tsx +12 -8
  107. package/src/iam.ts +170 -0
  108. package/src/icons.ts +18 -0
  109. package/src/identity.tsx +318 -0
  110. package/src/index.ts +44 -1
  111. package/src/input.tsx +13 -9
  112. package/src/lux.config.ts +16 -15
  113. package/src/menu.tsx +4 -4
  114. package/src/next.ts +89 -0
  115. package/src/option-chain.tsx +1 -1
  116. package/src/option-position.tsx +2 -1
  117. package/src/pnl-diagram.tsx +11 -6
  118. package/src/progress.tsx +15 -8
  119. package/src/provider.tsx +48 -7
  120. package/src/radio.tsx +15 -11
  121. package/src/separator.tsx +8 -3
  122. package/src/slider.tsx +35 -19
  123. package/src/strategy-builder.tsx +3 -2
  124. package/src/switch.tsx +17 -16
  125. package/src/textarea.tsx +8 -4
  126. package/src/tooltip.tsx +15 -24
  127. package/src/use-narrow.ts +40 -0
  128. package/src/vite.ts +80 -0
  129. package/src/white-label.ts +254 -0
  130. package/tokens.css +613 -319
  131. package/src/tokens.css +0 -438
package/dist/index.d.cts CHANGED
@@ -1,6 +1,11 @@
1
- export { AppProvider } from './provider.cjs';
1
+ export { AppProvider, useWhiteLabel } from './provider.cjs';
2
2
  export { cn } from './utils.cjs';
3
- export { Conf, LUX_BRAND, LuxBrand, PARS_GOLD, default as config, default as guiConfig, luxThemes } from './lux.config.cjs';
3
+ export { NARROW_PX, TOUCH_PX, useBelow, useIsNarrow, useIsTouch } from './use-narrow.cjs';
4
+ export { IAM_PAGE_SIZE, IamAccount, IamCall, IamError, IamOrg, IamProject, iam, iamBase } from './iam.cjs';
5
+ export { Identity, IdentityAuth, IdentityProvider, IdentityProviderProps, IdentityStatus, useIdentity } from './identity.cjs';
6
+ export { AppNav, AppNavProps, ChromeItem, NavLink, OrgSwitcher, ProjectSwitcher, SettingsMenu, SettingsMenuProps, Switcher, SwitcherProps, UserMenu, UserMenuProps, initials } from './chrome.cjs';
7
+ export { DEFAULT_ORG, LUX_BRAND, LuxBrand, Org, OrgIdentity, PARS_GOLD, WhiteLabel, currentHost, orgIdentity, orgs, resolveWhiteLabel } from './white-label.cjs';
8
+ export { Conf, default as config, default as guiConfig, luxThemes } from './lux.config.cjs';
4
9
  export { AccordionItem, AccordionItemContent, AccordionItemTrigger, AccordionRoot, useAccordion } from './accordion.cjs';
5
10
  export { Alert, AlertProps } from './alert.cjs';
6
11
  export { Avatar, AvatarGroup, AvatarProps } from './avatar.cjs';
@@ -51,7 +56,6 @@ import 'clsx';
51
56
  import '@hanzogui/web';
52
57
  import '@hanzogui/themes/v5';
53
58
  import '@radix-ui/react-accordion';
54
- import '@radix-ui/react-checkbox';
55
59
  import 'react/jsx-runtime';
56
60
  import '@hanzo/gui';
57
61
  import '@hanzogui/core';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,11 @@
1
- export { AppProvider } from './provider.js';
1
+ export { AppProvider, useWhiteLabel } from './provider.js';
2
2
  export { cn } from './utils.js';
3
- export { Conf, LUX_BRAND, LuxBrand, PARS_GOLD, default as config, default as guiConfig, luxThemes } from './lux.config.js';
3
+ export { NARROW_PX, TOUCH_PX, useBelow, useIsNarrow, useIsTouch } from './use-narrow.js';
4
+ export { IAM_PAGE_SIZE, IamAccount, IamCall, IamError, IamOrg, IamProject, iam, iamBase } from './iam.js';
5
+ export { Identity, IdentityAuth, IdentityProvider, IdentityProviderProps, IdentityStatus, useIdentity } from './identity.js';
6
+ export { AppNav, AppNavProps, ChromeItem, NavLink, OrgSwitcher, ProjectSwitcher, SettingsMenu, SettingsMenuProps, Switcher, SwitcherProps, UserMenu, UserMenuProps, initials } from './chrome.js';
7
+ export { DEFAULT_ORG, LUX_BRAND, LuxBrand, Org, OrgIdentity, PARS_GOLD, WhiteLabel, currentHost, orgIdentity, orgs, resolveWhiteLabel } from './white-label.js';
8
+ export { Conf, default as config, default as guiConfig, luxThemes } from './lux.config.js';
4
9
  export { AccordionItem, AccordionItemContent, AccordionItemTrigger, AccordionRoot, useAccordion } from './accordion.js';
5
10
  export { Alert, AlertProps } from './alert.js';
6
11
  export { Avatar, AvatarGroup, AvatarProps } from './avatar.js';
@@ -51,7 +56,6 @@ import 'clsx';
51
56
  import '@hanzogui/web';
52
57
  import '@hanzogui/themes/v5';
53
58
  import '@radix-ui/react-accordion';
54
- import '@radix-ui/react-checkbox';
55
59
  import 'react/jsx-runtime';
56
60
  import '@hanzo/gui';
57
61
  import '@hanzogui/core';