@selectwin/kit 0.1.2

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 (171) hide show
  1. package/README.md +29 -0
  2. package/dist/SelectAccordion.d.ts +14 -0
  3. package/dist/SelectActionCard.d.ts +12 -0
  4. package/dist/SelectActionList.d.ts +22 -0
  5. package/dist/SelectActionMenu.d.ts +6 -0
  6. package/dist/SelectAddButton.d.ts +10 -0
  7. package/dist/SelectAlert.d.ts +10 -0
  8. package/dist/SelectAuthFx.d.ts +8 -0
  9. package/dist/SelectAvatar.d.ts +13 -0
  10. package/dist/SelectBackLink.d.ts +6 -0
  11. package/dist/SelectBadge.d.ts +9 -0
  12. package/dist/SelectBalanceCard.d.ts +21 -0
  13. package/dist/SelectBankAccountField.d.ts +22 -0
  14. package/dist/SelectBarChart.d.ts +11 -0
  15. package/dist/SelectBoxPlot.d.ts +18 -0
  16. package/dist/SelectBuilderLayout.d.ts +18 -0
  17. package/dist/SelectBullet.d.ts +16 -0
  18. package/dist/SelectBump.d.ts +11 -0
  19. package/dist/SelectButton.d.ts +17 -0
  20. package/dist/SelectCalendarHeatmap.d.ts +16 -0
  21. package/dist/SelectCandlestick.d.ts +18 -0
  22. package/dist/SelectCard.d.ts +12 -0
  23. package/dist/SelectChartCard.d.ts +22 -0
  24. package/dist/SelectChord.d.ts +12 -0
  25. package/dist/SelectCirclePack.d.ts +14 -0
  26. package/dist/SelectCollapsible.d.ts +10 -0
  27. package/dist/SelectColorField.d.ts +9 -0
  28. package/dist/SelectColumnChart.d.ts +13 -0
  29. package/dist/SelectComboChart.d.ts +20 -0
  30. package/dist/SelectCombobox.d.ts +32 -0
  31. package/dist/SelectConfirmModal.d.ts +13 -0
  32. package/dist/SelectCopyRow.d.ts +11 -0
  33. package/dist/SelectCopyableId.d.ts +16 -0
  34. package/dist/SelectDataTable.d.ts +100 -0
  35. package/dist/SelectDateField.d.ts +19 -0
  36. package/dist/SelectDatePicker.d.ts +34 -0
  37. package/dist/SelectDateRangeField.d.ts +20 -0
  38. package/dist/SelectDetail.d.ts +19 -0
  39. package/dist/SelectDisclosureButton.d.ts +12 -0
  40. package/dist/SelectDivider.d.ts +7 -0
  41. package/dist/SelectDocumentField.d.ts +11 -0
  42. package/dist/SelectDonut.d.ts +17 -0
  43. package/dist/SelectDotField.d.ts +5 -0
  44. package/dist/SelectDumbbell.d.ts +17 -0
  45. package/dist/SelectFeeBreakdown.d.ts +14 -0
  46. package/dist/SelectField.d.ts +66 -0
  47. package/dist/SelectFieldGrid.d.ts +8 -0
  48. package/dist/SelectFileDropzone.d.ts +13 -0
  49. package/dist/SelectFileTile.d.ts +15 -0
  50. package/dist/SelectFilterBar.d.ts +28 -0
  51. package/dist/SelectFilterChip.d.ts +9 -0
  52. package/dist/SelectFormLayout.d.ts +12 -0
  53. package/dist/SelectFormModal.d.ts +18 -0
  54. package/dist/SelectFunnel.d.ts +9 -0
  55. package/dist/SelectGauge.d.ts +18 -0
  56. package/dist/SelectGaugeBands.d.ts +18 -0
  57. package/dist/SelectGlobe.d.ts +47 -0
  58. package/dist/SelectHeatmap.d.ts +26 -0
  59. package/dist/SelectHexbin.d.ts +18 -0
  60. package/dist/SelectHorizontalBar.d.ts +23 -0
  61. package/dist/SelectIcicle.d.ts +15 -0
  62. package/dist/SelectIcon.d.ts +8 -0
  63. package/dist/SelectIconButton.d.ts +14 -0
  64. package/dist/SelectIdentityFooter.d.ts +12 -0
  65. package/dist/SelectImageField.d.ts +20 -0
  66. package/dist/SelectImageUploadField.d.ts +23 -0
  67. package/dist/SelectImageUrlsField.d.ts +12 -0
  68. package/dist/SelectImageZoomModal.d.ts +7 -0
  69. package/dist/SelectJsonViewer.d.ts +16 -0
  70. package/dist/SelectKeyValueEditor.d.ts +19 -0
  71. package/dist/SelectKpiCard.d.ts +15 -0
  72. package/dist/SelectLayout.d.ts +73 -0
  73. package/dist/SelectLineChart.d.ts +12 -0
  74. package/dist/SelectLinkButton.d.ts +11 -0
  75. package/dist/SelectListCard.d.ts +25 -0
  76. package/dist/SelectLoader.d.ts +10 -0
  77. package/dist/SelectMarimekko.d.ts +18 -0
  78. package/dist/SelectMediaCell.d.ts +11 -0
  79. package/dist/SelectMenu.d.ts +27 -0
  80. package/dist/SelectModal.d.ts +17 -0
  81. package/dist/SelectMoney.d.ts +32 -0
  82. package/dist/SelectMoneyField.d.ts +19 -0
  83. package/dist/SelectNetwork.d.ts +22 -0
  84. package/dist/SelectNote.d.ts +9 -0
  85. package/dist/SelectNumberField.d.ts +18 -0
  86. package/dist/SelectOfflineModal.d.ts +1 -0
  87. package/dist/SelectOptionList.d.ts +17 -0
  88. package/dist/SelectOtpInput.d.ts +13 -0
  89. package/dist/SelectPage.d.ts +25 -0
  90. package/dist/SelectPagination.d.ts +23 -0
  91. package/dist/SelectPanel.d.ts +13 -0
  92. package/dist/SelectParallel.d.ts +19 -0
  93. package/dist/SelectPareto.d.ts +10 -0
  94. package/dist/SelectPasswordStrength.d.ts +9 -0
  95. package/dist/SelectPaymentBrand.d.ts +17 -0
  96. package/dist/SelectPhoneField.d.ts +28 -0
  97. package/dist/SelectPlanCard.d.ts +21 -0
  98. package/dist/SelectPolarArea.d.ts +13 -0
  99. package/dist/SelectPopover.d.ts +17 -0
  100. package/dist/SelectPreviewFrame.d.ts +12 -0
  101. package/dist/SelectProgressList.d.ts +24 -0
  102. package/dist/SelectPyramid.d.ts +20 -0
  103. package/dist/SelectRadar.d.ts +19 -0
  104. package/dist/SelectRadialBar.d.ts +20 -0
  105. package/dist/SelectRadioGroup.d.ts +20 -0
  106. package/dist/SelectRangeBar.d.ts +18 -0
  107. package/dist/SelectRating.d.ts +11 -0
  108. package/dist/SelectRepeatingFieldArray.d.ts +31 -0
  109. package/dist/SelectResendButton.d.ts +9 -0
  110. package/dist/SelectRowActions.d.ts +12 -0
  111. package/dist/SelectSankey.d.ts +16 -0
  112. package/dist/SelectScatter.d.ts +26 -0
  113. package/dist/SelectSearchInput.d.ts +11 -0
  114. package/dist/SelectSection.d.ts +14 -0
  115. package/dist/SelectSegmented.d.ts +16 -0
  116. package/dist/SelectSelect.d.ts +26 -0
  117. package/dist/SelectSetting.d.ts +21 -0
  118. package/dist/SelectSideNav.d.ts +20 -0
  119. package/dist/SelectSkeleton.d.ts +17 -0
  120. package/dist/SelectSlope.d.ts +17 -0
  121. package/dist/SelectSparkline.d.ts +9 -0
  122. package/dist/SelectStackedArea.d.ts +11 -0
  123. package/dist/SelectStatusBadge.d.ts +14 -0
  124. package/dist/SelectSteps.d.ts +11 -0
  125. package/dist/SelectStreamGraph.d.ts +11 -0
  126. package/dist/SelectSunburst.d.ts +20 -0
  127. package/dist/SelectSurface.d.ts +14 -0
  128. package/dist/SelectSwitch.d.ts +13 -0
  129. package/dist/SelectSwitchField.d.ts +9 -0
  130. package/dist/SelectTable.d.ts +56 -0
  131. package/dist/SelectTabs.d.ts +15 -0
  132. package/dist/SelectTagSelect.d.ts +23 -0
  133. package/dist/SelectText.d.ts +22 -0
  134. package/dist/SelectTextarea.d.ts +26 -0
  135. package/dist/SelectThemeSwitcher.d.ts +11 -0
  136. package/dist/SelectThumbnail.d.ts +9 -0
  137. package/dist/SelectTicker.d.ts +9 -0
  138. package/dist/SelectTile.d.ts +20 -0
  139. package/dist/SelectTimeline.d.ts +15 -0
  140. package/dist/SelectToast.d.ts +15 -0
  141. package/dist/SelectToggle.d.ts +17 -0
  142. package/dist/SelectTogglePanel.d.ts +13 -0
  143. package/dist/SelectTooltip.d.ts +8 -0
  144. package/dist/SelectTree.d.ts +13 -0
  145. package/dist/SelectTreemap.d.ts +14 -0
  146. package/dist/SelectUnitInput.d.ts +17 -0
  147. package/dist/SelectVenn.d.ts +13 -0
  148. package/dist/SelectViolin.d.ts +18 -0
  149. package/dist/SelectWaffle.d.ts +11 -0
  150. package/dist/SelectWaterfall.d.ts +16 -0
  151. package/dist/SelectWordCloud.d.ts +14 -0
  152. package/dist/SelectWorkspaceSwitcher.d.ts +10 -0
  153. package/dist/SelectZoomThumbnail.d.ts +7 -0
  154. package/dist/chartTip.d.ts +26 -0
  155. package/dist/chartUtils.d.ts +76 -0
  156. package/dist/detectSelectTheme.d.ts +8 -0
  157. package/dist/icons.d.ts +85 -0
  158. package/dist/index.d.ts +234 -0
  159. package/dist/index.js +8329 -0
  160. package/dist/internal/document.d.ts +9 -0
  161. package/dist/internal/money.d.ts +8 -0
  162. package/dist/internal/phone.d.ts +22 -0
  163. package/dist/internal/useFocusTrap.d.ts +2 -0
  164. package/dist/internal/useSelectReveal.d.ts +75 -0
  165. package/dist/jsonTree.d.ts +87 -0
  166. package/dist/positioning.d.ts +17 -0
  167. package/dist/spacing.d.ts +10 -0
  168. package/dist/style.css +1 -0
  169. package/dist/uploadUtils.d.ts +16 -0
  170. package/dist/worldLand.d.ts +6 -0
  171. package/package.json +61 -0
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # @selectwin/kit
2
+
3
+ Design system da Selectwin — primitivos React, charts SVG (sem dependência de biblioteca de
4
+ gráficos) e tokens CSS, theme-aware (light/dark).
5
+
6
+ Uso interno da Selectwin. Publicado no npm para facilitar a distribuição entre os apps da casa;
7
+ não há suporte, documentação pública nem garantia de estabilidade de API para terceiros.
8
+
9
+ ## Uso
10
+
11
+ ```bash
12
+ npm i @selectwin/kit
13
+ ```
14
+
15
+ ```tsx
16
+ import '@selectwin/kit/styles.css'; // tokens + estilos (uma vez, no root)
17
+ import { SelectButton, SelectSection } from '@selectwin/kit';
18
+ ```
19
+
20
+ Peer deps: **react**, **react-dom** (obrigatórios); **gsap** (opcional — só componentes animados),
21
+ **react-router-dom** (opcional). Tematização = sobrescrever os tokens CSS `--select-*` / `--sw-*`.
22
+
23
+ ## Build
24
+
25
+ ```bash
26
+ npm run build # → dist/index.js (ESM) + dist/style.css + dist/index.d.ts
27
+ ```
28
+
29
+ `npm publish` roda `prepublishOnly` (= build) e publica só `dist/` (sem sourcemaps).
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ export interface SelectAccordionItem {
3
+ id: string;
4
+ title: ReactNode;
5
+ content: ReactNode;
6
+ disabled?: boolean;
7
+ }
8
+ export interface SelectAccordionProps {
9
+ items: SelectAccordionItem[];
10
+ /** Allow several sections open at once. Default false (one at a time). */
11
+ multiple?: boolean;
12
+ defaultOpenIds?: string[];
13
+ }
14
+ export declare const SelectAccordion: import('react').ForwardRefExoticComponent<SelectAccordionProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectAccordionProps> & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,12 @@
1
+ import { ReactNode, ComponentPropsWithoutRef } from 'react';
2
+ type SelectActionCardOwnProps = {
3
+ icon?: ReactNode;
4
+ title: ReactNode;
5
+ description?: ReactNode;
6
+ /** The CTA — typically a SelectButton. */
7
+ action?: ReactNode;
8
+ onDismiss?: () => void;
9
+ };
10
+ export type SelectActionCardProps = SelectActionCardOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectActionCardOwnProps>;
11
+ export declare const SelectActionCard: import('react').ForwardRefExoticComponent<SelectActionCardOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectActionCardOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
12
+ export {};
@@ -0,0 +1,22 @@
1
+ import { ReactNode, ComponentPropsWithoutRef } from 'react';
2
+ export interface SelectAction {
3
+ content: string;
4
+ onAction?: () => void;
5
+ icon?: ReactNode;
6
+ destructive?: boolean;
7
+ disabled?: boolean;
8
+ }
9
+ export interface SelectActionSection {
10
+ title?: string;
11
+ items: SelectAction[];
12
+ }
13
+ type SelectActionListOwnProps = {
14
+ items?: SelectAction[];
15
+ sections?: SelectActionSection[];
16
+ /** Fired after any item's action (e.g. to close the surrounding popover). */
17
+ onAction?: () => void;
18
+ autoFocus?: boolean;
19
+ };
20
+ export type SelectActionListProps = SelectActionListOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectActionListOwnProps>;
21
+ export declare function SelectActionList({ items, sections, onAction, autoFocus, className, ...rest }: SelectActionListProps): import("react").JSX.Element;
22
+ export {};
@@ -0,0 +1,6 @@
1
+ import { SelectAction } from './SelectActionList';
2
+ export declare function SelectActionMenu({ items, label, disabled, }: {
3
+ items: SelectAction[];
4
+ label?: string;
5
+ disabled?: boolean;
6
+ }): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { ReactNode, ComponentPropsWithoutRef } from 'react';
2
+ type SelectAddButtonOwnProps = {
3
+ children: ReactNode;
4
+ onClick?: () => void;
5
+ /** Override the leading icon (defaults to a plus). */
6
+ icon?: ReactNode;
7
+ };
8
+ export type SelectAddButtonProps = SelectAddButtonOwnProps & Omit<ComponentPropsWithoutRef<'button'>, keyof SelectAddButtonOwnProps>;
9
+ export declare const SelectAddButton: import('react').ForwardRefExoticComponent<SelectAddButtonOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, keyof SelectAddButtonOwnProps> & import('react').RefAttributes<HTMLButtonElement>>;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ReactNode, ComponentPropsWithoutRef } from 'react';
2
+ type SelectAlertOwnProps = {
3
+ children?: ReactNode;
4
+ tone?: 'critical' | 'success' | 'info' | 'warning';
5
+ /** Bold heading above the body (e.g. "Motivo da falha"). */
6
+ title?: ReactNode;
7
+ };
8
+ export type SelectAlertProps = SelectAlertOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectAlertOwnProps>;
9
+ export declare const SelectAlert: import('react').ForwardRefExoticComponent<SelectAlertOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectAlertOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ export type AuthFxVariant = 'dots' | 'plexus' | 'grid' | 'flow' | 'circuit';
2
+ export declare const AUTH_FX_VARIANTS: readonly AuthFxVariant[];
3
+ export declare function SelectAuthFx({ className, theme, glowTarget, variant, }: {
4
+ className?: string;
5
+ theme?: 'light' | 'dark';
6
+ glowTarget?: string;
7
+ variant: AuthFxVariant;
8
+ }): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { ReactNode, ComponentPropsWithoutRef } from 'react';
2
+ type SelectAvatarOwnProps = {
3
+ name?: string;
4
+ src?: string;
5
+ icon?: ReactNode;
6
+ /** Dashed outline + no fill — the "create new" affordance. */
7
+ dashed?: boolean;
8
+ /** Circular (with a hairline) — app/logo tiles. */
9
+ round?: boolean;
10
+ };
11
+ export type SelectAvatarProps = SelectAvatarOwnProps & Omit<ComponentPropsWithoutRef<'span'>, keyof SelectAvatarOwnProps>;
12
+ export declare const SelectAvatar: import('react').ForwardRefExoticComponent<SelectAvatarOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, keyof SelectAvatarOwnProps> & import('react').RefAttributes<HTMLSpanElement>>;
13
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export declare function SelectBackLink({ children, onClick, href, }: {
3
+ children?: ReactNode;
4
+ onClick?: () => void;
5
+ href?: string;
6
+ }): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { ReactNode, ComponentPropsWithoutRef } from 'react';
2
+ type SelectBadgeOwnProps = {
3
+ children: ReactNode;
4
+ tone?: 'neutral' | 'brand' | 'pro' | 'success' | 'info' | 'warning' | 'critical' | 'outline';
5
+ icon?: ReactNode;
6
+ };
7
+ export type SelectBadgeProps = SelectBadgeOwnProps & Omit<ComponentPropsWithoutRef<'span'>, keyof SelectBadgeOwnProps>;
8
+ export declare const SelectBadge: import('react').ForwardRefExoticComponent<SelectBadgeOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, keyof SelectBadgeOwnProps> & import('react').RefAttributes<HTMLSpanElement>>;
9
+ export {};
@@ -0,0 +1,21 @@
1
+ import { ReactNode } from 'react';
2
+ export interface SelectBalanceBucket {
3
+ label: string;
4
+ cents: number | string | null | undefined;
5
+ /** Optional icon embedded in the bucket's mini-card. */
6
+ icon?: ReactNode;
7
+ }
8
+ export interface SelectBalanceCardProps {
9
+ availableCents: number | string | null | undefined;
10
+ availableLabel?: string;
11
+ /** Period-over-period variation of the available balance (percentage). */
12
+ delta?: number | null;
13
+ buckets?: SelectBalanceBucket[];
14
+ action?: {
15
+ content: string;
16
+ onAction: () => void;
17
+ disabled?: boolean;
18
+ loading?: boolean;
19
+ };
20
+ }
21
+ export declare const SelectBalanceCard: import('react').ForwardRefExoticComponent<SelectBalanceCardProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectBalanceCardProps> & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,22 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ export interface SelectBankAccount {
3
+ bankCode: string;
4
+ agency: string;
5
+ account: string;
6
+ accountDigit: string;
7
+ type?: 'checking' | 'savings';
8
+ }
9
+ export interface SelectBankOption {
10
+ code: string;
11
+ name: string;
12
+ }
13
+ type SelectBankAccountFieldOwnProps = {
14
+ value: SelectBankAccount;
15
+ onChange: (value: SelectBankAccount) => void;
16
+ banks?: SelectBankOption[];
17
+ showType?: boolean;
18
+ error?: string;
19
+ };
20
+ export type SelectBankAccountFieldProps = SelectBankAccountFieldOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectBankAccountFieldOwnProps>;
21
+ export declare const SelectBankAccountField: import('react').ForwardRefExoticComponent<SelectBankAccountFieldOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectBankAccountFieldOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
22
+ export {};
@@ -0,0 +1,11 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { SelectBarDatum } from './chartUtils';
3
+ type SelectBarChartOwnProps = {
4
+ data: SelectBarDatum[];
5
+ height?: number;
6
+ color?: string;
7
+ format?: (n: number) => string;
8
+ };
9
+ export type SelectBarChartProps = SelectBarChartOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectBarChartOwnProps>;
10
+ export declare function SelectBarChart({ data, height, color, format, className, ...rest }: SelectBarChartProps): import("react").JSX.Element;
11
+ export {};
@@ -0,0 +1,18 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ export interface SelectBoxDatum {
3
+ label: string;
4
+ min: number;
5
+ q1: number;
6
+ median: number;
7
+ q3: number;
8
+ max: number;
9
+ color?: string;
10
+ }
11
+ type SelectBoxPlotOwnProps = {
12
+ data: SelectBoxDatum[];
13
+ height?: number;
14
+ format?: (n: number) => string;
15
+ };
16
+ export type SelectBoxPlotProps = SelectBoxPlotOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectBoxPlotOwnProps>;
17
+ export declare function SelectBoxPlot({ data, height, format, className, ...rest }: SelectBoxPlotProps): import("react").JSX.Element;
18
+ export {};
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ export interface SelectBuilderLayoutProps {
3
+ title: string;
4
+ subtitle?: string;
5
+ /** Back target; defaults to history back. */
6
+ backTo?: string;
7
+ onSave: () => void;
8
+ saving?: boolean;
9
+ saveLabel?: string;
10
+ saveDisabled?: boolean;
11
+ cancelTo?: string;
12
+ /** Error banner shown above the body. String or node. */
13
+ error?: ReactNode;
14
+ /** When provided, the body becomes a 2-column form + sticky preview split. */
15
+ preview?: ReactNode;
16
+ children: ReactNode;
17
+ }
18
+ export declare function SelectBuilderLayout({ title, subtitle, backTo, onSave, saving, saveLabel, saveDisabled, cancelTo, error, preview, children, }: SelectBuilderLayoutProps): import("react").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ export interface SelectBulletItem {
3
+ label: string;
4
+ value: number;
5
+ target: number;
6
+ /** Scale max (else max(value, target) × 1.25). */
7
+ max?: number;
8
+ color?: string;
9
+ }
10
+ type SelectBulletOwnProps = {
11
+ items: SelectBulletItem[];
12
+ format?: (n: number) => string;
13
+ };
14
+ export type SelectBulletProps = SelectBulletOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectBulletOwnProps>;
15
+ export declare const SelectBullet: import('react').ForwardRefExoticComponent<SelectBulletOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectBulletOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
16
+ export {};
@@ -0,0 +1,11 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { SelectChartSeries } from './chartUtils';
3
+ type SelectBumpOwnProps = {
4
+ series: SelectChartSeries[];
5
+ labels: string[];
6
+ height?: number;
7
+ format?: (n: number) => string;
8
+ };
9
+ export type SelectBumpProps = SelectBumpOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectBumpOwnProps>;
10
+ export declare function SelectBump({ series, labels, height, format, className, ...rest }: SelectBumpProps): import("react").JSX.Element;
11
+ export {};
@@ -0,0 +1,17 @@
1
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
2
+ export interface SelectButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {
3
+ variant?: 'primary' | 'secondary' | 'danger';
4
+ type?: 'button' | 'submit';
5
+ /** Control height/padding/text. `md` (default) is the compact normal button; `lg` is
6
+ * the larger form/CTA size (the old normal); `sm` is the small control for
7
+ * toolbars/filters/inline actions (shares the small height with the filter facets). */
8
+ size?: 'sm' | 'md' | 'lg';
9
+ loading?: boolean;
10
+ icon?: ReactNode;
11
+ /** Icon rendered AFTER the label (e.g. the "Continue ›" arrow). */
12
+ trailingIcon?: ReactNode;
13
+ /** Size to content instead of filling the width (toolbars, inline actions). */
14
+ inline?: boolean;
15
+ children: ReactNode;
16
+ }
17
+ export declare const SelectButton: import('react').ForwardRefExoticComponent<SelectButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,16 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ type SelectCalendarHeatmapOwnProps = {
3
+ weeks: (number | null)[][];
4
+ color?: string;
5
+ dayLabels?: string[];
6
+ /** Optional label per week column (e.g. month starts). */
7
+ columnLabels?: (string | undefined)[];
8
+ format?: (n: number) => string;
9
+ cell?: number;
10
+ gap?: number;
11
+ min?: number;
12
+ max?: number;
13
+ };
14
+ export type SelectCalendarHeatmapProps = SelectCalendarHeatmapOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectCalendarHeatmapOwnProps>;
15
+ export declare const SelectCalendarHeatmap: import('react').ForwardRefExoticComponent<SelectCalendarHeatmapOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectCalendarHeatmapOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
16
+ export {};
@@ -0,0 +1,18 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ export interface SelectCandle {
3
+ label: string;
4
+ open: number;
5
+ high: number;
6
+ low: number;
7
+ close: number;
8
+ }
9
+ type SelectCandlestickOwnProps = {
10
+ data: SelectCandle[];
11
+ height?: number;
12
+ format?: (n: number) => string;
13
+ upColor?: string;
14
+ downColor?: string;
15
+ };
16
+ export type SelectCandlestickProps = SelectCandlestickOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectCandlestickOwnProps>;
17
+ export declare function SelectCandlestick({ data, height, format, upColor, downColor, className, ...rest }: SelectCandlestickProps): import("react").JSX.Element;
18
+ export {};
@@ -0,0 +1,12 @@
1
+ import { ReactNode, ComponentPropsWithoutRef } from 'react';
2
+ type SelectCardOwnProps = {
3
+ title: ReactNode;
4
+ subtitle?: ReactNode;
5
+ logo?: ReactNode;
6
+ mark?: ReactNode;
7
+ children: ReactNode;
8
+ footer?: ReactNode;
9
+ };
10
+ export type SelectCardProps = SelectCardOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectCardOwnProps>;
11
+ export declare const SelectCard: import('react').ForwardRefExoticComponent<SelectCardOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectCardOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
12
+ export {};
@@ -0,0 +1,22 @@
1
+ import { ReactNode, ComponentPropsWithoutRef } from 'react';
2
+ type SelectChartCardOwnProps = {
3
+ title?: ReactNode;
4
+ caption?: ReactNode;
5
+ action?: ReactNode;
6
+ loading?: boolean;
7
+ /** Blur the chart body (sensitive amounts) — wire to the hide-values toggle. */
8
+ hideValues?: boolean;
9
+ /**
10
+ * Body min-height in px, or `'auto'` for an intrinsically-sized chart.
11
+ *
12
+ * Use `'auto'` whenever the chart's own height is driven by how much DATA there is (a heatmap
13
+ * = rows × cell, a bar list = bars × row) — a fixed min-height there just pads the card with
14
+ * dead space: a 2-row cohort is 80px of chart inside a 260px box. SVG charts that scale to
15
+ * their container (line/area/donut) DO need a number; that's why it stays the default.
16
+ */
17
+ height?: number | 'auto';
18
+ children: ReactNode;
19
+ };
20
+ export type SelectChartCardProps = SelectChartCardOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectChartCardOwnProps>;
21
+ export declare const SelectChartCard: import('react').ForwardRefExoticComponent<SelectChartCardOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectChartCardOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
22
+ export {};
@@ -0,0 +1,12 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ type SelectChordOwnProps = {
3
+ matrix: number[][];
4
+ labels: string[];
5
+ size?: number;
6
+ format?: (n: number) => string;
7
+ /** Gap between node arcs, in radians. */
8
+ padAngle?: number;
9
+ };
10
+ export type SelectChordProps = SelectChordOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectChordOwnProps>;
11
+ export declare const SelectChord: import('react').ForwardRefExoticComponent<SelectChordOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectChordOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
12
+ export {};
@@ -0,0 +1,14 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ export interface SelectPackDatum {
3
+ label: string;
4
+ value: number;
5
+ color?: string;
6
+ }
7
+ type SelectCirclePackOwnProps = {
8
+ data: SelectPackDatum[];
9
+ size?: number;
10
+ format?: (n: number) => string;
11
+ };
12
+ export type SelectCirclePackProps = SelectCirclePackOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectCirclePackOwnProps>;
13
+ export declare const SelectCirclePack: import('react').ForwardRefExoticComponent<SelectCirclePackOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectCirclePackOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
14
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ReactNode, ComponentPropsWithoutRef } from 'react';
2
+ type SelectCollapsibleOwnProps = {
3
+ title: ReactNode;
4
+ children: ReactNode;
5
+ defaultOpen?: boolean;
6
+ plain?: boolean;
7
+ };
8
+ export type SelectCollapsibleProps = SelectCollapsibleOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectCollapsibleOwnProps>;
9
+ export declare const SelectCollapsible: import('react').ForwardRefExoticComponent<SelectCollapsibleOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectCollapsibleOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ export interface SelectColorFieldProps {
2
+ label?: string;
3
+ value: string;
4
+ onChange: (hex: string) => void;
5
+ disabled?: boolean;
6
+ hint?: string;
7
+ error?: string;
8
+ }
9
+ export declare function SelectColorField({ label, value, onChange, disabled, hint, error }: SelectColorFieldProps): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { SelectChartSeries } from './chartUtils';
3
+ type SelectColumnChartOwnProps = {
4
+ series: SelectChartSeries[];
5
+ labels: string[];
6
+ height?: number;
7
+ format?: (n: number) => string;
8
+ /** Stack the series into one bar per label instead of grouping side by side. */
9
+ stacked?: boolean;
10
+ };
11
+ export type SelectColumnChartProps = SelectColumnChartOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectColumnChartOwnProps>;
12
+ export declare function SelectColumnChart({ series, labels, height, format, stacked, className, ...rest }: SelectColumnChartProps): import("react").JSX.Element;
13
+ export {};
@@ -0,0 +1,20 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ type SelectComboChartOwnProps = {
3
+ labels: string[];
4
+ bars: {
5
+ name: string;
6
+ data: number[];
7
+ color?: string;
8
+ };
9
+ line: {
10
+ name: string;
11
+ data: number[];
12
+ color?: string;
13
+ };
14
+ height?: number;
15
+ formatBar?: (n: number) => string;
16
+ formatLine?: (n: number) => string;
17
+ };
18
+ export type SelectComboChartProps = SelectComboChartOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectComboChartOwnProps>;
19
+ export declare function SelectComboChart({ labels, bars, line, height, formatBar, formatLine, className, ...rest }: SelectComboChartProps): import("react").JSX.Element;
20
+ export {};
@@ -0,0 +1,32 @@
1
+ import { ReactNode, ComponentPropsWithoutRef } from 'react';
2
+ export interface ComboboxOption {
3
+ value: string;
4
+ label: string;
5
+ /** Optional secondary text shown under the label. */
6
+ secondary?: string;
7
+ disabled?: boolean;
8
+ }
9
+ type SelectComboboxOwnProps = {
10
+ label?: string;
11
+ value: string;
12
+ onChange: (value: string) => void;
13
+ options: ComboboxOption[];
14
+ placeholder?: string;
15
+ searchPlaceholder?: string;
16
+ labelAction?: ReactNode;
17
+ hint?: string;
18
+ error?: string;
19
+ emptyText?: string;
20
+ /** Disables the trigger (e.g. a field that's immutable on edit). */
21
+ disabled?: boolean;
22
+ /** Accepted for API parity with SelectSelect; sets aria-required (no native form control). */
23
+ required?: boolean;
24
+ /** Control density. Default `md`; use `sm` in dense surfaces and modal/card forms. */
25
+ size?: 'sm' | 'md';
26
+ /** Show the in-list search box (default true). Set false for a plain styled picker — the
27
+ * portal dropdown of SelectSelect without a search field (short option lists). */
28
+ searchable?: boolean;
29
+ };
30
+ export type SelectComboboxProps = SelectComboboxOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectComboboxOwnProps>;
31
+ export declare const SelectCombobox: import('react').ForwardRefExoticComponent<SelectComboboxOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectComboboxOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
32
+ export {};
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ export declare function SelectConfirmModal({ open, onClose, onConfirm, title, children, confirmLabel, cancelLabel, destructive, loading, theme, }: {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ onConfirm: () => void;
6
+ title: ReactNode;
7
+ children?: ReactNode;
8
+ confirmLabel?: string;
9
+ cancelLabel?: string;
10
+ destructive?: boolean;
11
+ loading?: boolean;
12
+ theme?: 'light' | 'dark';
13
+ }): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ type SelectCopyRowOwnProps = {
3
+ label?: string;
4
+ value: string;
5
+ /** When set, shows an "open" action linking here. */
6
+ href?: string;
7
+ onCopy?: (value: string) => void;
8
+ };
9
+ export type SelectCopyRowProps = SelectCopyRowOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectCopyRowOwnProps>;
10
+ export declare const SelectCopyRow: import('react').ForwardRefExoticComponent<SelectCopyRowOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectCopyRowOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
11
+ export {};
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ export interface SelectCopyableIdProps {
3
+ /** The full value copied to the clipboard. */
4
+ value: string | null | undefined;
5
+ /** Display content (defaults to `value`, optionally truncated by `truncate`). */
6
+ children?: ReactNode;
7
+ /** Cap the displayed text to N characters (the full value is still copied). */
8
+ truncate?: number;
9
+ /** Accessible label / tooltip for the copy button. */
10
+ label?: string;
11
+ /** Placeholder shown when there is no value. */
12
+ fallback?: ReactNode;
13
+ /** When set, the displayed text becomes a router link to this path (still copyable). */
14
+ to?: string;
15
+ }
16
+ export declare function SelectCopyableId({ value, children, truncate, label, fallback, to, }: SelectCopyableIdProps): import("react").JSX.Element;