@akira-io/ui 1.1.0 → 1.2.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 (68) hide show
  1. package/dist/blocks.d.ts +27 -27
  2. package/dist/blocks.js +79 -66
  3. package/dist/blocks.js.map +1 -1
  4. package/dist/{chunk-SA5LM2GD.js → chunk-2HLBBU3O.js} +44 -20
  5. package/dist/chunk-2HLBBU3O.js.map +1 -0
  6. package/dist/{chunk-MNGNBEYN.js → chunk-3HKIYFWI.js} +263 -166
  7. package/dist/chunk-3HKIYFWI.js.map +1 -0
  8. package/dist/{chunk-UUTXPPRN.js → chunk-DW42Z75X.js} +147 -90
  9. package/dist/chunk-DW42Z75X.js.map +1 -0
  10. package/dist/{chunk-DSD7MVLL.js → chunk-I5UZAJB4.js} +13 -9
  11. package/dist/chunk-I5UZAJB4.js.map +1 -0
  12. package/dist/{chunk-JAHTUAQL.js → chunk-MCMBS2SB.js} +6 -5
  13. package/dist/chunk-MCMBS2SB.js.map +1 -0
  14. package/dist/{chunk-YOVY3KT6.js → chunk-NGMG2UWX.js} +3 -3
  15. package/dist/{chunk-YOVY3KT6.js.map → chunk-NGMG2UWX.js.map} +1 -1
  16. package/dist/{chunk-6QM5BA7B.js → chunk-O5DZTX7D.js} +40 -23
  17. package/dist/chunk-O5DZTX7D.js.map +1 -0
  18. package/dist/{chunk-5AJFQ6C4.js → chunk-QNF4LJVT.js} +2 -2
  19. package/dist/chunk-QNF4LJVT.js.map +1 -0
  20. package/dist/{chunk-LKSM3WLK.js → chunk-SBLZ6T3D.js} +6 -5
  21. package/dist/chunk-SBLZ6T3D.js.map +1 -0
  22. package/dist/{chunk-KYWA5UYN.js → chunk-SH5QZCOW.js} +46 -28
  23. package/dist/chunk-SH5QZCOW.js.map +1 -0
  24. package/dist/chunk-UTSTTTH5.js +48 -0
  25. package/dist/chunk-UTSTTTH5.js.map +1 -0
  26. package/dist/code.d.ts +5 -2
  27. package/dist/code.js +52 -53
  28. package/dist/code.js.map +1 -1
  29. package/dist/{context-VgHq4U98.d.ts → context-OwSoVEri.d.ts} +55 -27
  30. package/dist/editor.d.ts +8 -6
  31. package/dist/editor.js +31 -18
  32. package/dist/editor.js.map +1 -1
  33. package/dist/field-DWm5NXeV.d.ts +39 -0
  34. package/dist/index.d.ts +230 -238
  35. package/dist/index.js +451 -337
  36. package/dist/index.js.map +1 -1
  37. package/dist/inertia.d.ts +1 -1
  38. package/dist/inertia.js +6 -7
  39. package/dist/inertia.js.map +1 -1
  40. package/dist/{button-B6wQRe7p.d.ts → input-Dxnsxi-f.d.ts} +6 -2
  41. package/dist/{json-viewer-BTHBACj9.d.ts → json-viewer-BARA2RCW.d.ts} +3 -2
  42. package/dist/{language-Dgjr9bm3.d.ts → language-Cv_N_53L.d.ts} +5 -2
  43. package/dist/locales/pt.d.ts +9 -9
  44. package/dist/locales/pt.js +7 -1
  45. package/dist/locales/pt.js.map +1 -1
  46. package/dist/shells.d.ts +6 -7
  47. package/dist/shells.js +9 -9
  48. package/dist/shells.js.map +1 -1
  49. package/dist/sidebar-Bp6Q46j-.d.ts +80 -0
  50. package/dist/{types-CT0rBsFc.d.ts → types-B-eGPoFD.d.ts} +3 -2
  51. package/dist/{types-B4QS3h5p.d.ts → types-cmBL8zOc.d.ts} +4 -1
  52. package/package.json +3 -3
  53. package/dist/chunk-5AJFQ6C4.js.map +0 -1
  54. package/dist/chunk-6QM5BA7B.js.map +0 -1
  55. package/dist/chunk-6X4TKSF6.js +0 -21
  56. package/dist/chunk-6X4TKSF6.js.map +0 -1
  57. package/dist/chunk-DSD7MVLL.js.map +0 -1
  58. package/dist/chunk-JAHTUAQL.js.map +0 -1
  59. package/dist/chunk-KYWA5UYN.js.map +0 -1
  60. package/dist/chunk-LKSM3WLK.js.map +0 -1
  61. package/dist/chunk-MNGNBEYN.js.map +0 -1
  62. package/dist/chunk-SA5LM2GD.js.map +0 -1
  63. package/dist/chunk-UUEWFCKT.js +0 -28
  64. package/dist/chunk-UUEWFCKT.js.map +0 -1
  65. package/dist/chunk-UUTXPPRN.js.map +0 -1
  66. package/dist/input-4uxAHW6y.d.ts +0 -5
  67. package/dist/password-input-r39y2pCT.d.ts +0 -50
  68. package/dist/sidebar-BhOIlSjt.d.ts +0 -80
package/dist/blocks.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- import { D as DateFilterValue, a as DateFilterLabels, b as DateFilterOption, c as DateFilterUnit, C as CopyButtonLabels } from './context-VgHq4U98.js';
2
- export { d as CommandPalette, e as CommandPaletteGroup, f as CommandPaletteItem, g as CommandPaletteProps, h as DATE_FILTER_LABELS, i as DATE_FILTER_OPERATORS, j as DATE_FILTER_PRESETS, k as DATE_FILTER_UNITS, l as DateFilterMode, m as DateFilterOperator, S as SettingsEntry, n as SettingsEntryProps, o as SettingsGroup, p as SettingsGroupProps, q as SettingsLabels, r as SettingsPage, s as SettingsPageProps, t as SettingsSection, u as SettingsSectionProps, U as UiLabelSections, v as UiLabels, w as UiLocaleProvider, x as settingsLabels, y as useCommandPalette, z as useUiLabels, A as useUiLocale } from './context-VgHq4U98.js';
3
- import { F as FormOverlayIntent, a as FormOverlayLabels, T as TwoFactorLabelProps, b as TwoFactorCodeMode, c as TwoFactorQrProps } from './types-CT0rBsFc.js';
4
- export { D as DangerZone, d as DangerZoneAction, e as DangerZoneLabels, f as DangerZoneProps, g as FormOverlayActions, h as FormOverlayActionsProps, i as TwoFactorLabels, j as TwoFactorSetupStep, k as dangerZoneLabels, l as formOverlayDefaultLabels, t as twoFactorLabels } from './types-CT0rBsFc.js';
1
+ import { D as DateFilterValue, a as DateFilterLabels, b as DateFilterOption, c as DateFilterUnit, C as CopyButtonLabels } from './context-OwSoVEri.js';
2
+ export { d as CommandPalette, e as CommandPaletteGroup, f as CommandPaletteItem, g as CommandPaletteProps, h as DATE_FILTER_LABELS, i as DATE_FILTER_OPERATORS, j as DATE_FILTER_PRESETS, k as DATE_FILTER_UNITS, l as DateFilterMode, m as DateFilterOperator, S as SettingsEntry, n as SettingsEntryProps, o as SettingsGroup, p as SettingsGroupProps, q as SettingsLabels, r as SettingsPage, s as SettingsPageProps, t as SettingsSection, u as SettingsSectionProps, U as UiLabelSections, v as UiLabels, w as UiLocaleProvider, x as settingsLabels, y as useCommandPalette, z as useUiLabels, A as useUiLocale } from './context-OwSoVEri.js';
3
+ import { F as FormOverlayIntent, a as FormOverlayLabels, T as TwoFactorLabelProps, b as TwoFactorCodeMode, c as TwoFactorQrProps } from './types-B-eGPoFD.js';
4
+ export { D as DangerZone, d as DangerZoneAction, e as DangerZoneLabels, f as DangerZoneProps, g as FormOverlayActions, h as FormOverlayActionsProps, i as TwoFactorLabels, j as TwoFactorSetupStep, k as dangerZoneLabels, l as formOverlayDefaultLabels, t as twoFactorLabels } from './types-B-eGPoFD.js';
5
5
  import * as React from 'react';
6
6
  import { ReactNode, PropsWithChildren, ReactElement, ComponentProps } from 'react';
7
+ import { S as SlotNameProps } from './types-cmBL8zOc.js';
7
8
  import { LucideIcon } from 'lucide-react';
8
- import { S as SurfaceProps } from './language-Dgjr9bm3.js';
9
+ import { S as SurfaceProps } from './language-Cv_N_53L.js';
9
10
  import { T as TourStep, a as TourDefinition, b as TourBreakpoint, c as TourProgress, d as TourLabels } from './types-u1qfmJQi.js';
10
11
  export { D as DEFAULT_TOUR_LABELS, e as TourOutcome } from './types-u1qfmJQi.js';
11
- import { B as Button } from './button-B6wQRe7p.js';
12
- import './types-B4QS3h5p.js';
13
- import '@tanstack/react-table';
14
- import './json-viewer-BTHBACj9.js';
15
- import 'class-variance-authority';
12
+ import { B as Button } from './input-Dxnsxi-f.js';
16
13
  import 'class-variance-authority/types';
14
+ import 'class-variance-authority';
15
+ import './json-viewer-BARA2RCW.js';
16
+ import '@tanstack/react-table';
17
17
 
18
18
  type DateFilterPanel = 'root' | 'fixed' | 'relative';
19
19
  interface DateFilterContextValue {
@@ -96,7 +96,7 @@ interface DetailEditSheetProps {
96
96
  onSave: () => void;
97
97
  onCancel?: () => void;
98
98
  }
99
- declare function DetailEditSheet({ open, onOpenChange, title, description, processing, intent, labels, className, children, onSave, onCancel, }: DetailEditSheetProps): React.JSX.Element;
99
+ declare function DetailEditSheet({ open, onOpenChange, title, description, processing, intent, labels, className, children, onSave, onCancel, slotName, }: DetailEditSheetProps & SlotNameProps): React.JSX.Element;
100
100
 
101
101
  interface FormDialogProps {
102
102
  open: boolean;
@@ -111,7 +111,7 @@ interface FormDialogProps {
111
111
  onSave: () => void;
112
112
  onCancel?: () => void;
113
113
  }
114
- declare function FormDialog({ open, onOpenChange, title, description, processing, intent, labels, className, children, onSave, onCancel, }: FormDialogProps): React.JSX.Element;
114
+ declare function FormDialog({ open, onOpenChange, title, description, processing, intent, labels, className, children, onSave, onCancel, slotName, }: FormDialogProps & SlotNameProps): React.JSX.Element;
115
115
 
116
116
  interface InfoFieldProps {
117
117
  icon: LucideIcon;
@@ -124,7 +124,7 @@ interface InfoFieldProps {
124
124
  iconClassName?: string;
125
125
  className?: string;
126
126
  }
127
- declare function InfoField({ icon: Icon, label, value, copyable, copyValue, copyLabel, copiedLabel, iconClassName, className, }: InfoFieldProps): React.JSX.Element;
127
+ declare function InfoField({ icon: Icon, label, value, copyable, copyValue, copyLabel, copiedLabel, iconClassName, className, slotName, }: InfoFieldProps & SlotNameProps): React.JSX.Element;
128
128
  interface InfoFieldGroupProps {
129
129
  children: ReactNode;
130
130
  className?: string;
@@ -167,14 +167,14 @@ interface SettingsCardProps extends SurfaceProps {
167
167
  children: ReactNode;
168
168
  className?: string;
169
169
  }
170
- declare function SettingsCard({ icon: Icon, iconClassName, title, description, control, children, inset, className, }: SettingsCardProps): React.JSX.Element;
170
+ declare function SettingsCard({ icon: Icon, iconClassName, title, description, control, children, inset, className, slotName, }: SettingsCardProps & SlotNameProps): React.JSX.Element;
171
171
  interface SettingsPanelProps extends SurfaceProps {
172
172
  title?: string;
173
173
  description?: string;
174
174
  children: ReactNode;
175
175
  className?: string;
176
176
  }
177
- declare function SettingsPanel({ title, description, children, inset, className, }: SettingsPanelProps): React.JSX.Element;
177
+ declare function SettingsPanel({ title, description, children, inset, className, slotName, }: SettingsPanelProps & SlotNameProps): React.JSX.Element;
178
178
  interface ToggleRowProps {
179
179
  id: string;
180
180
  label: string;
@@ -194,7 +194,7 @@ interface SettingsFieldProps {
194
194
  className?: string;
195
195
  children: (fieldId: string) => ReactNode;
196
196
  }
197
- declare function SettingsField({ id, label, description, error, required, className, children, }: SettingsFieldProps): React.JSX.Element;
197
+ declare function SettingsField({ id, label, description, error, required, className, children, slotName, }: SettingsFieldProps & SlotNameProps): React.JSX.Element;
198
198
  interface ControlProps<T> {
199
199
  id?: string;
200
200
  label: string;
@@ -210,18 +210,18 @@ interface ControlProps<T> {
210
210
  type TextFieldProps = ControlProps<string> & {
211
211
  type?: 'text' | 'email' | 'url' | 'tel' | 'password';
212
212
  };
213
- declare function TextField({ type, value, onChange, disabled, placeholder, ...field }: TextFieldProps): React.JSX.Element;
213
+ declare function TextField({ type, value, onChange, disabled, placeholder, slotName, ...field }: TextFieldProps & SlotNameProps): React.JSX.Element;
214
214
  type NumberFieldProps = ControlProps<number | ''> & {
215
215
  min?: number;
216
216
  max?: number;
217
217
  step?: number;
218
218
  };
219
- declare function NumberField({ value, onChange, disabled, placeholder, min, max, step, ...field }: NumberFieldProps): React.JSX.Element;
219
+ declare function NumberField({ value, onChange, disabled, placeholder, min, max, step, slotName, ...field }: NumberFieldProps & SlotNameProps): React.JSX.Element;
220
220
  type DateFieldProps = ControlProps<string> & {
221
221
  min?: string;
222
222
  max?: string;
223
223
  };
224
- declare function DateField({ value, onChange, disabled, min, max, ...field }: DateFieldProps): React.JSX.Element;
224
+ declare function DateField({ value, onChange, disabled, min, max, slotName, ...field }: DateFieldProps & SlotNameProps): React.JSX.Element;
225
225
  interface SelectFieldOption {
226
226
  value: string;
227
227
  label: string;
@@ -230,7 +230,7 @@ interface SelectFieldOption {
230
230
  type SelectFieldProps = ControlProps<string> & {
231
231
  options: SelectFieldOption[];
232
232
  };
233
- declare function SelectField({ value, onChange, options, disabled, placeholder, ...field }: SelectFieldProps): React.JSX.Element;
233
+ declare function SelectField({ value, onChange, options, disabled, placeholder, slotName, ...field }: SelectFieldProps & SlotNameProps): React.JSX.Element;
234
234
 
235
235
  interface StatCardProps extends SurfaceProps {
236
236
  title: string;
@@ -241,7 +241,7 @@ interface StatCardProps extends SurfaceProps {
241
241
  comparisonLabel?: string;
242
242
  className?: string;
243
243
  }
244
- declare function StatCard({ title, value, icon: Icon, iconClassName, trend, comparisonLabel, inset, className, }: StatCardProps): React.JSX.Element;
244
+ declare function StatCard({ title, value, icon: Icon, iconClassName, trend, comparisonLabel, inset, className, slotName, }: StatCardProps & SlotNameProps): React.JSX.Element;
245
245
  interface StatsGridProps {
246
246
  children: ReactNode;
247
247
  className?: string;
@@ -283,7 +283,7 @@ interface TwoFactorChallengeProps extends TwoFactorLabelProps {
283
283
  footer?: ReactNode;
284
284
  className?: string;
285
285
  }
286
- declare function TwoFactorChallenge({ onSubmit, errors, allowRecoveryCode, title, description, footer, labels, className, }: TwoFactorChallengeProps): React.JSX.Element;
286
+ declare function TwoFactorChallenge({ onSubmit, errors, allowRecoveryCode, title, description, footer, labels, className, slotName, }: TwoFactorChallengeProps & SlotNameProps): React.JSX.Element;
287
287
 
288
288
  interface TwoFactorDisableButtonProps extends TwoFactorLabelProps {
289
289
  onDisable: () => void | Promise<void>;
@@ -292,7 +292,7 @@ interface TwoFactorDisableButtonProps extends TwoFactorLabelProps {
292
292
  size?: ComponentProps<typeof Button>['size'];
293
293
  className?: string;
294
294
  }
295
- declare function TwoFactorDisableButton({ onDisable, disabled, variant, size, labels, className, }: TwoFactorDisableButtonProps): React.JSX.Element;
295
+ declare function TwoFactorDisableButton({ onDisable, disabled, variant, size, labels, className, slotName, }: TwoFactorDisableButtonProps & SlotNameProps): React.JSX.Element;
296
296
 
297
297
  interface TwoFactorRecoveryCodesProps extends TwoFactorLabelProps {
298
298
  codes: string[];
@@ -301,13 +301,13 @@ interface TwoFactorRecoveryCodesProps extends TwoFactorLabelProps {
301
301
  showHeading?: boolean;
302
302
  className?: string;
303
303
  }
304
- declare function TwoFactorRecoveryCodes({ codes, defaultRevealed, onRegenerate, showHeading, labels, className, }: TwoFactorRecoveryCodesProps): React.JSX.Element;
304
+ declare function TwoFactorRecoveryCodes({ codes, defaultRevealed, onRegenerate, showHeading, labels, className, slotName, }: TwoFactorRecoveryCodesProps & SlotNameProps): React.JSX.Element;
305
305
 
306
306
  interface TwoFactorScanStepProps extends TwoFactorLabelProps, TwoFactorQrProps {
307
307
  manualSetupKey?: string | null;
308
308
  className?: string;
309
309
  }
310
- declare function TwoFactorScanStep({ qrCode, qrCodeSvg, manualSetupKey, labels, className, }: TwoFactorScanStepProps): React.JSX.Element;
310
+ declare function TwoFactorScanStep({ qrCode, qrCodeSvg, manualSetupKey, labels, className, slotName, }: TwoFactorScanStepProps & SlotNameProps): React.JSX.Element;
311
311
 
312
312
  interface TwoFactorSetupDialogProps extends TwoFactorLabelProps, TwoFactorQrProps {
313
313
  open: boolean;
@@ -322,7 +322,7 @@ interface TwoFactorSetupDialogProps extends TwoFactorLabelProps, TwoFactorQrProp
322
322
  onCompleted?: () => void;
323
323
  className?: string;
324
324
  }
325
- declare function TwoFactorSetupDialog({ open, onOpenChange, enabled, qrCode, qrCodeSvg, manualSetupKey, recoveryCodes, errors, onConfirm, onRequestSetupData, onRegenerateRecoveryCodes, onCompleted, labels, className, }: TwoFactorSetupDialogProps): React.JSX.Element;
325
+ declare function TwoFactorSetupDialog({ open, onOpenChange, enabled, qrCode, qrCodeSvg, manualSetupKey, recoveryCodes, errors, onConfirm, onRequestSetupData, onRegenerateRecoveryCodes, onCompleted, labels, className, slotName, }: TwoFactorSetupDialogProps & SlotNameProps): React.JSX.Element;
326
326
 
327
327
  interface TwoFactorVerifyFormProps extends TwoFactorLabelProps {
328
328
  onSubmit: (code: string, mode: TwoFactorCodeMode) => void | Promise<void>;
@@ -334,6 +334,6 @@ interface TwoFactorVerifyFormProps extends TwoFactorLabelProps {
334
334
  footer?: ReactNode;
335
335
  className?: string;
336
336
  }
337
- declare function TwoFactorVerifyForm({ onSubmit, errors, allowRecoveryCode, length, autoFocus, submitLabel, footer, labels, className, }: TwoFactorVerifyFormProps): React.JSX.Element;
337
+ declare function TwoFactorVerifyForm({ onSubmit, errors, allowRecoveryCode, length, autoFocus, submitLabel, footer, labels, className, slotName, }: TwoFactorVerifyFormProps & SlotNameProps): React.JSX.Element;
338
338
 
339
339
  export { DateField, type DateFieldProps, DateFilter, DateFilterAll, DateFilterContent, type DateFilterContextValue, DateFilterFixed, DateFilterItem, DateFilterLabels, DateFilterOption, type DateFilterPanel, DateFilterPresets, type DateFilterProps, DateFilterRelative, DateFilterSeparator, DateFilterTrigger, DateFilterUnit, DateFilterValue, DetailEditSheet, type DetailEditSheetProps, FormDialog, type FormDialogProps, FormOverlayIntent, FormOverlayLabels, InfoField, InfoFieldGroup, type InfoFieldGroupProps, type InfoFieldProps, type LocalizedField, LocalizedFields, type LocalizedFieldsProps, NumberField, type NumberFieldProps, SectionHeader, type SectionHeaderProps, SelectField, type SelectFieldOption, type SelectFieldProps, SettingsCard, type SettingsCardProps, SettingsField, type SettingsFieldProps, SettingsPanel, type SettingsPanelProps, StatCard, type StatCardProps, StatsGrid, type StatsGridProps, TextField, type TextFieldProps, ToggleRow, type ToggleRowProps, TourBreakpoint, TourDefinition, TourLabels, TourProgress, TourProvider, TourStep, TwoFactorChallenge, type TwoFactorChallengeProps, TwoFactorCodeMode, TwoFactorDisableButton, type TwoFactorDisableButtonProps, TwoFactorLabelProps, TwoFactorQrProps, TwoFactorRecoveryCodes, type TwoFactorRecoveryCodesProps, TwoFactorScanStep, type TwoFactorScanStepProps, TwoFactorSetupDialog, type TwoFactorSetupDialogProps, TwoFactorVerifyForm, type TwoFactorVerifyFormProps, decodeDateFilter, encodeDateFilter, formatRangePreview, resolveRelativeRange, resolveSteps, shouldStartTour, stepsForBreakpoint, summariseDateFilter, useDateFilter, useTour, useTourController };