@teja-app/ui 0.0.10 → 0.0.12
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.
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useSidebar.d.ts +32 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/index.cjs +0 -15182
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -15166
- package/dist/index.js.map +1 -1
- package/dist/theme/ThemeProvider.d.ts +23 -0
- package/dist/theme/ThemeProvider.d.ts.map +1 -0
- package/dist/theme/applyTheme.d.ts +33 -0
- package/dist/theme/applyTheme.d.ts.map +1 -0
- package/dist/theme/components/AIBadge.d.ts +20 -0
- package/dist/theme/components/AIBadge.d.ts.map +1 -0
- package/dist/theme/components/AICard.d.ts +16 -0
- package/dist/theme/components/AICard.d.ts.map +1 -0
- package/dist/theme/components/AIChip.d.ts +7 -0
- package/dist/theme/components/AIChip.d.ts.map +1 -0
- package/dist/theme/components/AIComposeButton.d.ts +14 -0
- package/dist/theme/components/AIComposeButton.d.ts.map +1 -0
- package/dist/theme/components/AIGhostText.d.ts +14 -0
- package/dist/theme/components/AIGhostText.d.ts.map +1 -0
- package/dist/theme/components/AISectionHeader.d.ts +15 -0
- package/dist/theme/components/AISectionHeader.d.ts.map +1 -0
- package/dist/theme/components/AISparkle.d.ts +12 -0
- package/dist/theme/components/AISparkle.d.ts.map +1 -0
- package/dist/theme/components/AIWorking.d.ts +12 -0
- package/dist/theme/components/AIWorking.d.ts.map +1 -0
- package/dist/theme/components/Alert.d.ts +22 -0
- package/dist/theme/components/Alert.d.ts.map +1 -0
- package/dist/theme/components/AppShell.d.ts +16 -0
- package/dist/theme/components/AppShell.d.ts.map +1 -0
- package/dist/theme/components/AskTeja.d.ts +17 -0
- package/dist/theme/components/AskTeja.d.ts.map +1 -0
- package/dist/theme/components/Avatar.d.ts +12 -0
- package/dist/theme/components/Avatar.d.ts.map +1 -0
- package/dist/theme/components/Badge.d.ts +16 -0
- package/dist/theme/components/Badge.d.ts.map +1 -0
- package/dist/theme/components/Brand.d.ts +19 -0
- package/dist/theme/components/Brand.d.ts.map +1 -0
- package/dist/theme/components/Breadcrumbs.d.ts +53 -0
- package/dist/theme/components/Breadcrumbs.d.ts.map +1 -0
- package/dist/theme/components/Button.d.ts +19 -0
- package/dist/theme/components/Button.d.ts.map +1 -0
- package/dist/theme/components/Card.d.ts +10 -0
- package/dist/theme/components/Card.d.ts.map +1 -0
- package/dist/theme/components/Checkbox.d.ts +28 -0
- package/dist/theme/components/Checkbox.d.ts.map +1 -0
- package/dist/theme/components/Chip.d.ts +19 -0
- package/dist/theme/components/Chip.d.ts.map +1 -0
- package/dist/theme/components/Combobox.d.ts +29 -0
- package/dist/theme/components/Combobox.d.ts.map +1 -0
- package/dist/theme/components/Compat.d.ts +34 -0
- package/dist/theme/components/Compat.d.ts.map +1 -0
- package/dist/theme/components/ConfirmDialog.d.ts +39 -0
- package/dist/theme/components/ConfirmDialog.d.ts.map +1 -0
- package/dist/theme/components/CountryPicker.d.ts +14 -0
- package/dist/theme/components/CountryPicker.d.ts.map +1 -0
- package/dist/theme/components/DateInput.d.ts +30 -0
- package/dist/theme/components/DateInput.d.ts.map +1 -0
- package/dist/theme/components/Divider.d.ts +13 -0
- package/dist/theme/components/Divider.d.ts.map +1 -0
- package/dist/theme/components/Drawer.d.ts +52 -0
- package/dist/theme/components/Drawer.d.ts.map +1 -0
- package/dist/theme/components/EmptyState.d.ts +28 -0
- package/dist/theme/components/EmptyState.d.ts.map +1 -0
- package/dist/theme/components/FactList.d.ts +21 -0
- package/dist/theme/components/FactList.d.ts.map +1 -0
- package/dist/theme/components/Field.d.ts +35 -0
- package/dist/theme/components/Field.d.ts.map +1 -0
- package/dist/theme/components/FieldHint.d.ts +17 -0
- package/dist/theme/components/FieldHint.d.ts.map +1 -0
- package/dist/theme/components/Icon.d.ts +19 -0
- package/dist/theme/components/Icon.d.ts.map +1 -0
- package/dist/theme/components/IconButton.d.ts +17 -0
- package/dist/theme/components/IconButton.d.ts.map +1 -0
- package/dist/theme/components/KV.d.ts +26 -0
- package/dist/theme/components/KV.d.ts.map +1 -0
- package/dist/theme/components/LabelGroup.d.ts +15 -0
- package/dist/theme/components/LabelGroup.d.ts.map +1 -0
- package/dist/theme/components/LangSwitcher.d.ts +30 -0
- package/dist/theme/components/LangSwitcher.d.ts.map +1 -0
- package/dist/theme/components/MiniStat.d.ts +20 -0
- package/dist/theme/components/MiniStat.d.ts.map +1 -0
- package/dist/theme/components/Modal.d.ts +57 -0
- package/dist/theme/components/Modal.d.ts.map +1 -0
- package/dist/theme/components/MultiSelect.d.ts +38 -0
- package/dist/theme/components/MultiSelect.d.ts.map +1 -0
- package/dist/theme/components/OTPInput.d.ts +58 -0
- package/dist/theme/components/OTPInput.d.ts.map +1 -0
- package/dist/theme/components/PageHeader.d.ts +24 -0
- package/dist/theme/components/PageHeader.d.ts.map +1 -0
- package/dist/theme/components/Pagination.d.ts +10 -0
- package/dist/theme/components/Pagination.d.ts.map +1 -0
- package/dist/theme/components/PasswordInput.d.ts +48 -0
- package/dist/theme/components/PasswordInput.d.ts.map +1 -0
- package/dist/theme/components/PersonRow.d.ts +18 -0
- package/dist/theme/components/PersonRow.d.ts.map +1 -0
- package/dist/{components/PillSelector/PillSelector.types.d.ts → theme/components/PillSelector.d.ts} +21 -2
- package/dist/theme/components/PillSelector.d.ts.map +1 -0
- package/dist/theme/components/Radio.d.ts +89 -0
- package/dist/theme/components/Radio.d.ts.map +1 -0
- package/dist/theme/components/RoleTile.d.ts +20 -0
- package/dist/theme/components/RoleTile.d.ts.map +1 -0
- package/dist/theme/components/SectionLabel.d.ts +20 -0
- package/dist/theme/components/SectionLabel.d.ts.map +1 -0
- package/dist/theme/components/SegmentedControl.d.ts +15 -0
- package/dist/theme/components/SegmentedControl.d.ts.map +1 -0
- package/dist/theme/components/Select.d.ts +24 -0
- package/dist/theme/components/Select.d.ts.map +1 -0
- package/dist/theme/components/SettingRow.d.ts +23 -0
- package/dist/theme/components/SettingRow.d.ts.map +1 -0
- package/dist/theme/components/Sidebar.d.ts +28 -0
- package/dist/theme/components/Sidebar.d.ts.map +1 -0
- package/dist/theme/components/SidebarNav/SidebarNav.d.ts +20 -0
- package/dist/theme/components/SidebarNav/SidebarNav.d.ts.map +1 -0
- package/dist/theme/components/SidebarNav/SidebarNavDivider.d.ts +8 -0
- package/dist/theme/components/SidebarNav/SidebarNavDivider.d.ts.map +1 -0
- package/dist/theme/components/SidebarNav/SidebarNavGroupRow.d.ts +8 -0
- package/dist/theme/components/SidebarNav/SidebarNavGroupRow.d.ts.map +1 -0
- package/dist/theme/components/SidebarNav/SidebarNavItemRow.d.ts +8 -0
- package/dist/theme/components/SidebarNav/SidebarNavItemRow.d.ts.map +1 -0
- package/dist/theme/components/SidebarNav/index.d.ts +12 -0
- package/dist/theme/components/SidebarNav/index.d.ts.map +1 -0
- package/dist/theme/components/SidebarNav/types.d.ts +157 -0
- package/dist/theme/components/SidebarNav/types.d.ts.map +1 -0
- package/dist/theme/components/SidebarNavItem.d.ts +31 -0
- package/dist/theme/components/SidebarNavItem.d.ts.map +1 -0
- package/dist/theme/components/Skeleton.d.ts +32 -0
- package/dist/theme/components/Skeleton.d.ts.map +1 -0
- package/dist/theme/components/Spinner.d.ts +26 -0
- package/dist/theme/components/Spinner.d.ts.map +1 -0
- package/dist/theme/components/Stat.d.ts +23 -0
- package/dist/theme/components/Stat.d.ts.map +1 -0
- package/dist/theme/components/StatePicker.d.ts +17 -0
- package/dist/theme/components/StatePicker.d.ts.map +1 -0
- package/dist/theme/components/Stepper.d.ts +23 -0
- package/dist/theme/components/Stepper.d.ts.map +1 -0
- package/dist/theme/components/Switch.d.ts +18 -0
- package/dist/theme/components/Switch.d.ts.map +1 -0
- package/dist/theme/components/TOTP6Cells.d.ts +49 -0
- package/dist/theme/components/TOTP6Cells.d.ts.map +1 -0
- package/dist/theme/components/Table.d.ts +70 -0
- package/dist/theme/components/Table.d.ts.map +1 -0
- package/dist/theme/components/Tabs.d.ts +33 -0
- package/dist/theme/components/Tabs.d.ts.map +1 -0
- package/dist/theme/components/Tag.d.ts +15 -0
- package/dist/theme/components/Tag.d.ts.map +1 -0
- package/dist/theme/components/TextInput.d.ts +24 -0
- package/dist/theme/components/TextInput.d.ts.map +1 -0
- package/dist/theme/components/Textarea.d.ts +17 -0
- package/dist/theme/components/Textarea.d.ts.map +1 -0
- package/dist/theme/components/TimeZonePicker.d.ts +14 -0
- package/dist/theme/components/TimeZonePicker.d.ts.map +1 -0
- package/dist/theme/components/TimelineRow.d.ts +27 -0
- package/dist/theme/components/TimelineRow.d.ts.map +1 -0
- package/dist/theme/components/ToolbarSearch.d.ts +8 -0
- package/dist/theme/components/ToolbarSearch.d.ts.map +1 -0
- package/dist/theme/components/TopBar.d.ts +35 -0
- package/dist/theme/components/TopBar.d.ts.map +1 -0
- package/dist/theme/components/ViewToggle.d.ts +24 -0
- package/dist/theme/components/ViewToggle.d.ts.map +1 -0
- package/dist/theme/components/aiStyles.d.ts +2 -0
- package/dist/theme/components/aiStyles.d.ts.map +1 -0
- package/dist/theme/components/fieldShell.d.ts +68 -0
- package/dist/theme/components/fieldShell.d.ts.map +1 -0
- package/dist/theme/components/index.d.ts +74 -0
- package/dist/theme/components/index.d.ts.map +1 -0
- package/dist/theme/data/countries.d.ts +8 -0
- package/dist/theme/data/countries.d.ts.map +1 -0
- package/dist/theme/data/index.d.ts +4 -0
- package/dist/theme/data/index.d.ts.map +1 -0
- package/dist/theme/data/regions.d.ts +8 -0
- package/dist/theme/data/regions.d.ts.map +1 -0
- package/dist/theme/data/timezones.d.ts +8 -0
- package/dist/theme/data/timezones.d.ts.map +1 -0
- package/dist/theme/fonts.d.ts +9 -0
- package/dist/theme/fonts.d.ts.map +1 -0
- package/dist/theme/index.cjs +18243 -0
- package/dist/theme/index.cjs.map +1 -0
- package/dist/theme/index.d.ts +18 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +18227 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/theme/presets.d.ts +370 -0
- package/dist/theme/presets.d.ts.map +1 -0
- package/dist/ui.css +159 -0
- package/dist/useSidebar-BWe09WbE.js.map +1 -1
- package/dist/useSidebar-d1VZFhxd.cjs.map +1 -1
- package/package.json +6 -1
- package/dist/components/Alert/Alert.d.ts +0 -13
- package/dist/components/Alert/Alert.d.ts.map +0 -1
- package/dist/components/Alert/Alert.types.d.ts +0 -17
- package/dist/components/Alert/Alert.types.d.ts.map +0 -1
- package/dist/components/Alert/index.d.ts +0 -3
- package/dist/components/Alert/index.d.ts.map +0 -1
- package/dist/components/Avatar/Avatar.d.ts +0 -13
- package/dist/components/Avatar/Avatar.d.ts.map +0 -1
- package/dist/components/Avatar/Avatar.types.d.ts +0 -18
- package/dist/components/Avatar/Avatar.types.d.ts.map +0 -1
- package/dist/components/Avatar/index.d.ts +0 -3
- package/dist/components/Avatar/index.d.ts.map +0 -1
- package/dist/components/Badge/Badge.d.ts +0 -13
- package/dist/components/Badge/Badge.d.ts.map +0 -1
- package/dist/components/Badge/Badge.types.d.ts +0 -14
- package/dist/components/Badge/Badge.types.d.ts.map +0 -1
- package/dist/components/Badge/index.d.ts +0 -3
- package/dist/components/Badge/index.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -18
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +0 -22
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/index.d.ts +0 -3
- package/dist/components/Breadcrumbs/index.d.ts.map +0 -1
- package/dist/components/Button/Button.d.ts +0 -13
- package/dist/components/Button/Button.d.ts.map +0 -1
- package/dist/components/Button/Button.types.d.ts +0 -18
- package/dist/components/Button/Button.types.d.ts.map +0 -1
- package/dist/components/Button/index.d.ts +0 -3
- package/dist/components/Button/index.d.ts.map +0 -1
- package/dist/components/Card/Card.d.ts +0 -18
- package/dist/components/Card/Card.d.ts.map +0 -1
- package/dist/components/Card/Card.types.d.ts +0 -16
- package/dist/components/Card/Card.types.d.ts.map +0 -1
- package/dist/components/Card/index.d.ts +0 -3
- package/dist/components/Card/index.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts +0 -13
- package/dist/components/Checkbox/Checkbox.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.types.d.ts +0 -21
- package/dist/components/Checkbox/Checkbox.types.d.ts.map +0 -1
- package/dist/components/Checkbox/index.d.ts +0 -3
- package/dist/components/Checkbox/index.d.ts.map +0 -1
- package/dist/components/Combobox/Combobox.d.ts +0 -24
- package/dist/components/Combobox/Combobox.d.ts.map +0 -1
- package/dist/components/Combobox/Combobox.types.d.ts +0 -43
- package/dist/components/Combobox/Combobox.types.d.ts.map +0 -1
- package/dist/components/Combobox/index.d.ts +0 -3
- package/dist/components/Combobox/index.d.ts.map +0 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +0 -23
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +0 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.types.d.ts +0 -24
- package/dist/components/ConfirmDialog/ConfirmDialog.types.d.ts.map +0 -1
- package/dist/components/ConfirmDialog/index.d.ts +0 -3
- package/dist/components/ConfirmDialog/index.d.ts.map +0 -1
- package/dist/components/DateInput/DateInput.d.ts +0 -14
- package/dist/components/DateInput/DateInput.d.ts.map +0 -1
- package/dist/components/DateInput/DateInput.types.d.ts +0 -39
- package/dist/components/DateInput/DateInput.types.d.ts.map +0 -1
- package/dist/components/DateInput/index.d.ts +0 -3
- package/dist/components/DateInput/index.d.ts.map +0 -1
- package/dist/components/Drawer/Drawer.d.ts +0 -27
- package/dist/components/Drawer/Drawer.d.ts.map +0 -1
- package/dist/components/Drawer/Drawer.types.d.ts +0 -25
- package/dist/components/Drawer/Drawer.types.d.ts.map +0 -1
- package/dist/components/Drawer/index.d.ts +0 -3
- package/dist/components/Drawer/index.d.ts.map +0 -1
- package/dist/components/EmptyState/EmptyState.d.ts +0 -34
- package/dist/components/EmptyState/EmptyState.d.ts.map +0 -1
- package/dist/components/EmptyState/EmptyState.types.d.ts +0 -19
- package/dist/components/EmptyState/EmptyState.types.d.ts.map +0 -1
- package/dist/components/EmptyState/index.d.ts +0 -3
- package/dist/components/EmptyState/index.d.ts.map +0 -1
- package/dist/components/Input/Input.d.ts +0 -13
- package/dist/components/Input/Input.d.ts.map +0 -1
- package/dist/components/Input/Input.types.d.ts +0 -20
- package/dist/components/Input/Input.types.d.ts.map +0 -1
- package/dist/components/Input/index.d.ts +0 -3
- package/dist/components/Input/index.d.ts.map +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -28
- package/dist/components/Modal/Modal.d.ts.map +0 -1
- package/dist/components/Modal/Modal.types.d.ts +0 -29
- package/dist/components/Modal/Modal.types.d.ts.map +0 -1
- package/dist/components/Modal/index.d.ts +0 -3
- package/dist/components/Modal/index.d.ts.map +0 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +0 -26
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +0 -1
- package/dist/components/MultiSelect/MultiSelect.types.d.ts +0 -51
- package/dist/components/MultiSelect/MultiSelect.types.d.ts.map +0 -1
- package/dist/components/MultiSelect/index.d.ts +0 -3
- package/dist/components/MultiSelect/index.d.ts.map +0 -1
- package/dist/components/OTPInput/OTPInput.d.ts +0 -22
- package/dist/components/OTPInput/OTPInput.d.ts.map +0 -1
- package/dist/components/OTPInput/OTPInput.types.d.ts +0 -19
- package/dist/components/OTPInput/OTPInput.types.d.ts.map +0 -1
- package/dist/components/OTPInput/index.d.ts +0 -3
- package/dist/components/OTPInput/index.d.ts.map +0 -1
- package/dist/components/Pagination/Pagination.d.ts +0 -35
- package/dist/components/Pagination/Pagination.d.ts.map +0 -1
- package/dist/components/Pagination/Pagination.types.d.ts +0 -31
- package/dist/components/Pagination/Pagination.types.d.ts.map +0 -1
- package/dist/components/Pagination/index.d.ts +0 -3
- package/dist/components/Pagination/index.d.ts.map +0 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +0 -12
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +0 -1
- package/dist/components/PasswordInput/PasswordInput.types.d.ts +0 -16
- package/dist/components/PasswordInput/PasswordInput.types.d.ts.map +0 -1
- package/dist/components/PasswordInput/index.d.ts +0 -3
- package/dist/components/PasswordInput/index.d.ts.map +0 -1
- package/dist/components/PillSelector/PillSelector.d.ts +0 -16
- package/dist/components/PillSelector/PillSelector.d.ts.map +0 -1
- package/dist/components/PillSelector/PillSelector.types.d.ts.map +0 -1
- package/dist/components/PillSelector/index.d.ts +0 -3
- package/dist/components/PillSelector/index.d.ts.map +0 -1
- package/dist/components/Radio/Radio.d.ts +0 -12
- package/dist/components/Radio/Radio.d.ts.map +0 -1
- package/dist/components/Radio/Radio.types.d.ts +0 -49
- package/dist/components/Radio/Radio.types.d.ts.map +0 -1
- package/dist/components/Radio/RadioGroup.d.ts +0 -23
- package/dist/components/Radio/RadioGroup.d.ts.map +0 -1
- package/dist/components/Radio/index.d.ts +0 -4
- package/dist/components/Radio/index.d.ts.map +0 -1
- package/dist/components/Select/Select.d.ts +0 -22
- package/dist/components/Select/Select.d.ts.map +0 -1
- package/dist/components/Select/Select.types.d.ts +0 -42
- package/dist/components/Select/Select.types.d.ts.map +0 -1
- package/dist/components/Select/index.d.ts +0 -3
- package/dist/components/Select/index.d.ts.map +0 -1
- package/dist/components/Sidebar/Sidebar.d.ts +0 -36
- package/dist/components/Sidebar/Sidebar.d.ts.map +0 -1
- package/dist/components/Sidebar/Sidebar.types.d.ts +0 -200
- package/dist/components/Sidebar/Sidebar.types.d.ts.map +0 -1
- package/dist/components/Sidebar/SidebarDivider.d.ts +0 -12
- package/dist/components/Sidebar/SidebarDivider.d.ts.map +0 -1
- package/dist/components/Sidebar/SidebarGroup.d.ts +0 -26
- package/dist/components/Sidebar/SidebarGroup.d.ts.map +0 -1
- package/dist/components/Sidebar/SidebarItem.d.ts +0 -23
- package/dist/components/Sidebar/SidebarItem.d.ts.map +0 -1
- package/dist/components/Sidebar/index.d.ts +0 -9
- package/dist/components/Sidebar/index.d.ts.map +0 -1
- package/dist/components/Skeleton/Skeleton.d.ts +0 -22
- package/dist/components/Skeleton/Skeleton.d.ts.map +0 -1
- package/dist/components/Skeleton/Skeleton.types.d.ts +0 -19
- package/dist/components/Skeleton/Skeleton.types.d.ts.map +0 -1
- package/dist/components/Skeleton/index.d.ts +0 -3
- package/dist/components/Skeleton/index.d.ts.map +0 -1
- package/dist/components/Spinner/Spinner.d.ts +0 -13
- package/dist/components/Spinner/Spinner.d.ts.map +0 -1
- package/dist/components/Spinner/Spinner.types.d.ts +0 -14
- package/dist/components/Spinner/Spinner.types.d.ts.map +0 -1
- package/dist/components/Spinner/index.d.ts +0 -3
- package/dist/components/Spinner/index.d.ts.map +0 -1
- package/dist/components/Table/Table.d.ts +0 -44
- package/dist/components/Table/Table.d.ts.map +0 -1
- package/dist/components/Table/Table.types.d.ts +0 -33
- package/dist/components/Table/Table.types.d.ts.map +0 -1
- package/dist/components/Table/index.d.ts +0 -3
- package/dist/components/Table/index.d.ts.map +0 -1
- package/dist/components/Tabs/Tabs.d.ts +0 -43
- package/dist/components/Tabs/Tabs.d.ts.map +0 -1
- package/dist/components/Tabs/Tabs.types.d.ts +0 -42
- package/dist/components/Tabs/Tabs.types.d.ts.map +0 -1
- package/dist/components/Tabs/index.d.ts +0 -3
- package/dist/components/Tabs/index.d.ts.map +0 -1
- package/dist/components/Textarea/Textarea.d.ts +0 -13
- package/dist/components/Textarea/Textarea.d.ts.map +0 -1
- package/dist/components/Textarea/Textarea.types.d.ts +0 -22
- package/dist/components/Textarea/Textarea.types.d.ts.map +0 -1
- package/dist/components/Textarea/index.d.ts +0 -3
- package/dist/components/Textarea/index.d.ts.map +0 -1
- package/dist/components/Toggle/Toggle.d.ts +0 -20
- package/dist/components/Toggle/Toggle.d.ts.map +0 -1
- package/dist/components/Toggle/Toggle.types.d.ts +0 -22
- package/dist/components/Toggle/Toggle.types.d.ts.map +0 -1
- package/dist/components/Toggle/index.d.ts +0 -3
- package/dist/components/Toggle/index.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -32
- package/dist/components/index.d.ts.map +0 -1
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode, ComponentType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Active state matcher type
|
|
4
|
+
* - 'exact': path === href
|
|
5
|
+
* - 'startsWith': path.startsWith(href)
|
|
6
|
+
* - function: custom matching logic
|
|
7
|
+
*/
|
|
8
|
+
export type SidebarNavActiveMatcher = 'exact' | 'startsWith' | ((currentPath: string, href: string) => boolean);
|
|
9
|
+
/**
|
|
10
|
+
* Permission check function type
|
|
11
|
+
*/
|
|
12
|
+
export type SidebarNavPermissionCheck = () => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Individual navigation item configuration (ported from legacy Sidebar)
|
|
15
|
+
*/
|
|
16
|
+
export interface SidebarNavItemConfig {
|
|
17
|
+
/** Unique identifier for the item */
|
|
18
|
+
key: string;
|
|
19
|
+
/** Display label */
|
|
20
|
+
label: string;
|
|
21
|
+
/** Navigation href/path */
|
|
22
|
+
href: string;
|
|
23
|
+
/** Icon element to display */
|
|
24
|
+
icon?: ReactNode;
|
|
25
|
+
/** Badge count or text */
|
|
26
|
+
badge?: number | string;
|
|
27
|
+
/** Whether item is disabled */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** Visibility control */
|
|
30
|
+
visible?: boolean | SidebarNavPermissionCheck;
|
|
31
|
+
/** How to determine active state (default: 'exact') */
|
|
32
|
+
activeMatch?: SidebarNavActiveMatcher;
|
|
33
|
+
/** Nested items (future use) */
|
|
34
|
+
children?: SidebarNavItemConfig[];
|
|
35
|
+
/** Click handler for non-navigation actions */
|
|
36
|
+
onClick?: () => void;
|
|
37
|
+
/** Accessibility label override */
|
|
38
|
+
'aria-label'?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Navigation group configuration — named SidebarNavGroup to match the legacy
|
|
42
|
+
* export that the consumer (frontend Sidebar.tsx) imports.
|
|
43
|
+
*/
|
|
44
|
+
export interface SidebarNavGroup {
|
|
45
|
+
/** Unique identifier for the group */
|
|
46
|
+
key: string;
|
|
47
|
+
/** Optional group label/heading */
|
|
48
|
+
label?: string;
|
|
49
|
+
/** Navigation items in this group */
|
|
50
|
+
items: SidebarNavItemConfig[];
|
|
51
|
+
/** Visibility control for entire group */
|
|
52
|
+
visible?: boolean | SidebarNavPermissionCheck;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Size variant (sm/md/lg — maps to padding/font-size)
|
|
56
|
+
*/
|
|
57
|
+
export type SidebarNavSize = 'sm' | 'md' | 'lg';
|
|
58
|
+
/**
|
|
59
|
+
* Visual variant
|
|
60
|
+
*/
|
|
61
|
+
export type SidebarNavVariant = 'default' | 'minimal';
|
|
62
|
+
/**
|
|
63
|
+
* Link component props for router integration.
|
|
64
|
+
* Consumers may destructure only what they need — extras are safely ignored.
|
|
65
|
+
*/
|
|
66
|
+
export interface SidebarNavLinkProps {
|
|
67
|
+
to: string;
|
|
68
|
+
className?: string;
|
|
69
|
+
children: ReactNode;
|
|
70
|
+
onClick?: () => void;
|
|
71
|
+
title?: string;
|
|
72
|
+
'aria-current'?: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false';
|
|
73
|
+
'aria-label'?: string;
|
|
74
|
+
/** Forwarded style so the theme can drive appearance without className */
|
|
75
|
+
style?: React.CSSProperties;
|
|
76
|
+
onMouseEnter?: React.MouseEventHandler;
|
|
77
|
+
onMouseLeave?: React.MouseEventHandler;
|
|
78
|
+
/** data-testid forwarded to the DOM anchor/link */
|
|
79
|
+
'data-testid'?: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Props for the SidebarNavItemRow sub-component
|
|
83
|
+
*/
|
|
84
|
+
export interface SidebarNavItemRowProps extends Omit<HTMLAttributes<HTMLElement>, 'onClick'> {
|
|
85
|
+
item: SidebarNavItemConfig;
|
|
86
|
+
currentPath?: string;
|
|
87
|
+
size?: SidebarNavSize;
|
|
88
|
+
collapsed?: boolean;
|
|
89
|
+
onNavigate?: (href: string) => void;
|
|
90
|
+
LinkComponent?: ComponentType<SidebarNavLinkProps>;
|
|
91
|
+
testId?: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Props for SidebarNavGroupRow sub-component
|
|
95
|
+
*/
|
|
96
|
+
export interface SidebarNavGroupRowProps extends HTMLAttributes<HTMLElement> {
|
|
97
|
+
group: SidebarNavGroup;
|
|
98
|
+
currentPath?: string;
|
|
99
|
+
size?: SidebarNavSize;
|
|
100
|
+
collapsed?: boolean;
|
|
101
|
+
LinkComponent?: ComponentType<SidebarNavLinkProps>;
|
|
102
|
+
onNavigate?: (href: string) => void;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Props for SidebarNavDivider
|
|
106
|
+
*/
|
|
107
|
+
export interface SidebarNavDividerProps extends HTMLAttributes<HTMLHRElement> {
|
|
108
|
+
/** Optional label for the divider */
|
|
109
|
+
label?: string;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Props for SidebarNav (the main ported component, equivalent to legacy Sidebar)
|
|
113
|
+
*/
|
|
114
|
+
export interface SidebarNavProps extends HTMLAttributes<HTMLElement> {
|
|
115
|
+
/** Navigation groups organized by position */
|
|
116
|
+
navigation: {
|
|
117
|
+
/** Featured items at the very top */
|
|
118
|
+
featured?: SidebarNavGroup[];
|
|
119
|
+
/** Primary navigation items */
|
|
120
|
+
primary?: SidebarNavGroup[];
|
|
121
|
+
/** Secondary navigation items (below divider) */
|
|
122
|
+
secondary?: SidebarNavGroup[];
|
|
123
|
+
/** Bottom navigation items */
|
|
124
|
+
bottom?: SidebarNavGroup[];
|
|
125
|
+
};
|
|
126
|
+
/** Current router path for active detection */
|
|
127
|
+
currentPath?: string;
|
|
128
|
+
/** Whether sidebar is open (for mobile) */
|
|
129
|
+
isOpen?: boolean;
|
|
130
|
+
/** Callback when sidebar should close (mobile) */
|
|
131
|
+
onClose?: () => void;
|
|
132
|
+
/** Whether sidebar is collapsed (desktop) */
|
|
133
|
+
collapsed?: boolean;
|
|
134
|
+
/** Callback when collapse state changes */
|
|
135
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
136
|
+
/** Visual variant */
|
|
137
|
+
variant?: SidebarNavVariant;
|
|
138
|
+
/** Size of nav items */
|
|
139
|
+
size?: SidebarNavSize;
|
|
140
|
+
/** Header content */
|
|
141
|
+
header?: ReactNode;
|
|
142
|
+
/** Footer content */
|
|
143
|
+
footer?: ReactNode;
|
|
144
|
+
/** Custom link component for router integration */
|
|
145
|
+
LinkComponent?: ComponentType<SidebarNavLinkProps>;
|
|
146
|
+
/** Navigation callback */
|
|
147
|
+
onNavigate?: (href: string) => void;
|
|
148
|
+
/** Whether to show mobile overlay */
|
|
149
|
+
showMobileOverlay?: boolean;
|
|
150
|
+
/** Width when expanded (default: 16rem) */
|
|
151
|
+
width?: string;
|
|
152
|
+
/** Width when collapsed (default: 4rem) */
|
|
153
|
+
collapsedWidth?: string;
|
|
154
|
+
/** Optional test ID for e2e testing */
|
|
155
|
+
testId?: string;
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/theme/components/SidebarNav/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAC/B,OAAO,GACP,YAAY,GACZ,CAAC,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C3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type IconName } from './Icon';
|
|
3
|
+
export type NavBadgeTone = 'neutral' | 'primary' | 'danger' | 'ai';
|
|
4
|
+
export interface NavItem {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
icon: IconName;
|
|
8
|
+
/** Marks the item as AI-themed (sparkle glyph, accent locks). */
|
|
9
|
+
ai?: boolean;
|
|
10
|
+
badge?: ReactNode;
|
|
11
|
+
badgeTone?: NavBadgeTone;
|
|
12
|
+
/** Feature flag key — when `features[feat] === false`, item locks. */
|
|
13
|
+
feat?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface NavGroup {
|
|
16
|
+
group: string;
|
|
17
|
+
items: NavItem[];
|
|
18
|
+
ai?: boolean;
|
|
19
|
+
/** Feature flag key that locks the entire group. */
|
|
20
|
+
feat?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface SidebarNavItemProps {
|
|
23
|
+
item: NavItem;
|
|
24
|
+
active: boolean;
|
|
25
|
+
collapsed: boolean;
|
|
26
|
+
features?: Record<string, boolean>;
|
|
27
|
+
onClick?: (id: string) => void;
|
|
28
|
+
testId?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function SidebarNavItem({ item, active, collapsed, features, onClick, testId, }: SidebarNavItemProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
//# sourceMappingURL=SidebarNavItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarNavItem.d.ts","sourceRoot":"","sources":["../../../src/theme/components/SidebarNavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrE,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAE7C,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,IAAI,CAAC;AAEnE,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,iEAAiE;IACjE,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAmBD,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,MAAM,EACN,SAAS,EACT,QAAQ,EACR,OAAO,EACP,MAAM,GACP,EAAE,mBAAmB,2CA2JrB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Skeleton — loading placeholder using theme surface tokens with a shimmer
|
|
4
|
+
* pulse. Ported from src/components/Skeleton to the theme system.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <Skeleton variant="text" width="80%" />
|
|
8
|
+
* <Skeleton variant="circular" width={40} height={40} />
|
|
9
|
+
* <Skeleton variant="rectangular" width="100%" height={200} />
|
|
10
|
+
* <Skeleton variant="text" lines={3} />
|
|
11
|
+
*/
|
|
12
|
+
export type SkeletonVariant = 'text' | 'circular' | 'rectangular';
|
|
13
|
+
/** Inject the `tj-skeleton-pulse` keyframes once per document. Idempotent. */
|
|
14
|
+
export declare function ensureSkeletonStyles(): void;
|
|
15
|
+
export interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
/** Shape variant. Default `text`. */
|
|
17
|
+
variant?: SkeletonVariant;
|
|
18
|
+
/** Width (CSS value, or number → px). */
|
|
19
|
+
width?: string | number;
|
|
20
|
+
/** Height (CSS value, or number → px). */
|
|
21
|
+
height?: string | number;
|
|
22
|
+
/** Enable the shimmer pulse. Default `true`. */
|
|
23
|
+
animate?: boolean;
|
|
24
|
+
/** Number of stacked lines (text variant only). Default 1. */
|
|
25
|
+
lines?: number;
|
|
26
|
+
/** Screen-reader text. Default `Loading...`. */
|
|
27
|
+
label?: string;
|
|
28
|
+
/** Forwarded as `data-testid` on the root. */
|
|
29
|
+
testId?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const Skeleton: import("react").ForwardRefExoticComponent<SkeletonProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
32
|
+
//# sourceMappingURL=Skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/theme/components/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkC,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5E;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,UAAU,GAAG,aAAa,CAAC;AAIlE,8EAA8E;AAC9E,wBAAgB,oBAAoB,IAAI,IAAI,CAU3C;AAQD,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE,qCAAqC;IACrC,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,gDAAgD;IAChD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,QAAQ,0GA6FpB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type SVGAttributes } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Spinner — animated SVG loading indicator using theme tokens.
|
|
4
|
+
* Ported from src/components/Spinner to the theme system (inline styles +
|
|
5
|
+
* a `tj-spin` @keyframes injected once via `ensureSpinnerStyles`).
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <Spinner size="md" color="primary" />
|
|
9
|
+
* <Spinner size="sm" color="current" label="Saving…" />
|
|
10
|
+
*/
|
|
11
|
+
export type SpinnerSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
12
|
+
export type SpinnerColor = 'current' | 'primary' | 'white';
|
|
13
|
+
/** Inject the `tj-spin` keyframes once per document. Idempotent. */
|
|
14
|
+
export declare function ensureSpinnerStyles(): void;
|
|
15
|
+
export interface SpinnerProps extends Omit<SVGAttributes<SVGSVGElement>, 'color'> {
|
|
16
|
+
/** Spinner size. Default `md`. */
|
|
17
|
+
size?: SpinnerSize;
|
|
18
|
+
/** Spinner color. Default `current` (inherits text color). */
|
|
19
|
+
color?: SpinnerColor;
|
|
20
|
+
/** Screen-reader label. Default `Loading`. */
|
|
21
|
+
label?: string;
|
|
22
|
+
/** Forwarded as `data-testid` on the root `<svg>`. */
|
|
23
|
+
testId?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const Spinner: import("react").ForwardRefExoticComponent<SpinnerProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
26
|
+
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/theme/components/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAiB3D,oEAAoE;AACpE,wBAAgB,mBAAmB,IAAI,IAAI,CAO1C;AAED,MAAM,WAAW,YACf,SAAQ,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IACnD,kCAAkC;IAClC,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,wGAwClB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export type StatTone = 'neutral' | 'primary' | 'success' | 'warning' | 'info' | 'danger' | 'ai';
|
|
3
|
+
export interface StatProps {
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
value: ReactNode;
|
|
6
|
+
sub?: ReactNode;
|
|
7
|
+
/** Optional bullet badge shown beside `sub` (e.g., "+6"). */
|
|
8
|
+
delta?: ReactNode;
|
|
9
|
+
tone?: StatTone;
|
|
10
|
+
/** Adds a sparkle accent next to the label. */
|
|
11
|
+
ai?: boolean;
|
|
12
|
+
padding?: number;
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
testId?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Stat — ported from design/components/patterns.jsx. Renders inside a
|
|
18
|
+
* Card; uses `flex-end` alignment so `value` and `sub` sit on the same
|
|
19
|
+
* line below the label. Tone colors the value; sub is always
|
|
20
|
+
* `var(--ink-3)`.
|
|
21
|
+
*/
|
|
22
|
+
export declare function Stat({ label, value, sub, delta, tone, ai, padding, style, testId, }: StatProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
//# sourceMappingURL=Stat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stat.d.ts","sourceRoot":"","sources":["../../../src/theme/components/Stat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMtD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAC;AAYhG,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,+CAA+C;IAC/C,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,EACnB,KAAK,EACL,KAAK,EACL,GAAG,EACH,KAAK,EACL,IAAgB,EAChB,EAAE,EACF,OAAY,EACZ,KAAK,EACL,MAAM,GACP,EAAE,SAAS,2CAsEX"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ComboboxProps } from './Combobox';
|
|
2
|
+
/**
|
|
3
|
+
* StatePicker — searchable state/province select. Defaults to the regions of
|
|
4
|
+
* `country` (ISO code) from the bundled data; pass `items` to override.
|
|
5
|
+
* Countries without bundled sub-regions yield an empty list.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <StatePicker label="State" country="US" value={state} onChange={setState} />
|
|
9
|
+
*/
|
|
10
|
+
export interface StatePickerProps extends Omit<ComboboxProps, 'items'> {
|
|
11
|
+
/** ISO-3166 country code selecting which region list to use. Default 'US'. */
|
|
12
|
+
country?: string;
|
|
13
|
+
/** Override the resolved region list. */
|
|
14
|
+
items?: ComboboxProps['items'];
|
|
15
|
+
}
|
|
16
|
+
export declare function StatePicker({ country, items, placeholder, ...rest }: StatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=StatePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatePicker.d.ts","sourceRoot":"","sources":["../../../src/theme/components/StatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAG1D;;;;;;;GAOG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC;IACpE,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yCAAyC;IACzC,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;CAChC;AAED,wBAAgB,WAAW,CAAC,EAC1B,OAAc,EACd,KAAK,EACL,WAA4B,EAC5B,GAAG,IAAI,EACR,EAAE,gBAAgB,2CAGlB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Horizontal mini-stepper used in the auth funnel (register → verify → setup).
|
|
3
|
+
* Each step is `{ label, active?, complete? }`. Visual states:
|
|
4
|
+
* - active: solid primary disc, ink-1 label
|
|
5
|
+
* - complete: solid primary disc with check (TODO if needed)
|
|
6
|
+
* - default: bordered disc, ink-3 label
|
|
7
|
+
*/
|
|
8
|
+
export interface StepperStep {
|
|
9
|
+
label: string;
|
|
10
|
+
active?: boolean;
|
|
11
|
+
complete?: boolean;
|
|
12
|
+
/** Override the auto-derived test id for this step. */
|
|
13
|
+
testId?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface StepperProps {
|
|
16
|
+
steps: StepperStep[];
|
|
17
|
+
/** Constrain total width. */
|
|
18
|
+
maxWidth?: number;
|
|
19
|
+
/** Test id applied to the root + auto-prefixed onto each step. */
|
|
20
|
+
testId?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function Stepper({ steps, maxWidth, testId }: StepperProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
//# sourceMappingURL=Stepper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/theme/components/Stepper.tsx"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAMD,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,QAAc,EAAE,MAAM,EAAE,EAAE,YAAY,2CAkEtE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Switch — inline on/off toggle.
|
|
4
|
+
* Ported from design/components/primitives.jsx. Two sizes:
|
|
5
|
+
* - `sm` (30×18): for preference rows and dense forms.
|
|
6
|
+
* - `md` (44×24): for hero / master toggles.
|
|
7
|
+
*
|
|
8
|
+
* Controlled component — pass `on` + `onChange`.
|
|
9
|
+
*/
|
|
10
|
+
export type SwitchSize = 'sm' | 'md';
|
|
11
|
+
export interface SwitchProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'value'> {
|
|
12
|
+
on?: boolean;
|
|
13
|
+
onChange?: (next: boolean) => void;
|
|
14
|
+
size?: SwitchSize;
|
|
15
|
+
testId?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/theme/components/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,oBAAoB,EAAsB,MAAM,OAAO,CAAC;AAElF;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AAErC,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAC3E,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,MAAM,2GAoDjB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* TOTP6Cells — 6 individually-focusable numeric cells for TOTP entry.
|
|
4
|
+
*
|
|
5
|
+
* Industry-standard 6-digit code without visual grouping (in contrast to the
|
|
6
|
+
* verify-email 8-cell OTP which groups 4-4). Per-cell visual states track:
|
|
7
|
+
* - empty neutral border, surface-1 fill
|
|
8
|
+
* - active next-cell-to-fill, primary border + ring + blinking caret
|
|
9
|
+
* - filled neutral border, surface-0 fill, ink-1 digit
|
|
10
|
+
* - verifying locked, ink-2 digit
|
|
11
|
+
* - verified success border/fill/digit
|
|
12
|
+
* - error danger border/fill, danger digit
|
|
13
|
+
*
|
|
14
|
+
* Behaviours:
|
|
15
|
+
* - Auto-focus first empty cell on mount.
|
|
16
|
+
* - Typing a digit auto-advances focus.
|
|
17
|
+
* - Backspace on an empty cell jumps back and clears the previous cell.
|
|
18
|
+
* - Paste anywhere strips non-digits and fills cells in order.
|
|
19
|
+
* - Fires onComplete(value) exactly once when all 6 cells hold a digit.
|
|
20
|
+
*
|
|
21
|
+
* The component is *controlled* via `value` (a 0–6 char numeric string). All
|
|
22
|
+
* onChange notifications report the joined string.
|
|
23
|
+
*/
|
|
24
|
+
export type TOTP6CellsState = 'default' | 'verifying' | 'verified' | 'error';
|
|
25
|
+
export interface TOTP6CellsProps {
|
|
26
|
+
/** 0–6 character numeric string. Non-digits / overflow are stripped. */
|
|
27
|
+
value: string;
|
|
28
|
+
/** Fired on every per-cell mutation; receives the joined value. */
|
|
29
|
+
onChange: (value: string) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Fired exactly once when the value reaches 6 digits. Refires only after the
|
|
32
|
+
* value drops below 6 and rises back to 6 (re-entry after error).
|
|
33
|
+
*/
|
|
34
|
+
onComplete?: (value: string) => void;
|
|
35
|
+
/** Visual state override (drives per-cell styling). */
|
|
36
|
+
state?: TOTP6CellsState;
|
|
37
|
+
/** Auto-focus the first empty cell on mount. Defaults to true. */
|
|
38
|
+
autoFocus?: boolean;
|
|
39
|
+
/** Disables all inputs. Combined with `state === 'verifying' | 'verified'`. */
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Root `data-testid` for the cell row. Each cell gets `${testId}-cell-${i}`.
|
|
43
|
+
* Defaults to `totp6`.
|
|
44
|
+
*/
|
|
45
|
+
testId?: string;
|
|
46
|
+
}
|
|
47
|
+
export declare const TOTP6Cells: FC<TOTP6CellsProps>;
|
|
48
|
+
export default TOTP6Cells;
|
|
49
|
+
//# sourceMappingURL=TOTP6Cells.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TOTP6Cells.d.ts","sourceRoot":"","sources":["../../../src/theme/components/TOTP6Cells.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,EAAE,EAER,MAAM,OAAO,CAAC;AAEf;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO,CAAC;AAE7E,MAAM,WAAW,eAAe;IAC9B,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,uDAAuD;IACvD,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,kEAAkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAkGD,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAuO1C,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ThHTMLAttributes, type TdHTMLAttributes } from 'react';
|
|
2
|
+
export type SortDirection = 'asc' | 'desc' | null;
|
|
3
|
+
export interface TableProps extends HTMLAttributes<HTMLTableElement> {
|
|
4
|
+
/** Full width table. Defaults to true. */
|
|
5
|
+
fullWidth?: boolean;
|
|
6
|
+
/** Alternate row background for readability. */
|
|
7
|
+
striped?: boolean;
|
|
8
|
+
/** Row background highlight on hover. */
|
|
9
|
+
hoverable?: boolean;
|
|
10
|
+
/** Compact padding (reduces cell padding). */
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
/** Forwarded as `data-testid` on the wrapper div. */
|
|
13
|
+
testId?: string;
|
|
14
|
+
}
|
|
15
|
+
export type TableHeaderProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
16
|
+
export type TableBodyProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
17
|
+
export interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
|
|
18
|
+
/** Selected state for row. */
|
|
19
|
+
selected?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface TableHeadProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
22
|
+
/** Make column sortable. */
|
|
23
|
+
sortable?: boolean;
|
|
24
|
+
/** Current sort direction. */
|
|
25
|
+
sortDirection?: SortDirection;
|
|
26
|
+
/** Sort callback. */
|
|
27
|
+
onSort?: () => void;
|
|
28
|
+
/** Text alignment. Defaults to 'left'. */
|
|
29
|
+
align?: 'left' | 'center' | 'right';
|
|
30
|
+
}
|
|
31
|
+
export interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
|
|
32
|
+
/** Text alignment. Defaults to 'left'. */
|
|
33
|
+
align?: 'left' | 'center' | 'right';
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Table container — full-width scrollable data table using CSS-var tokens.
|
|
37
|
+
*
|
|
38
|
+
* Supports `striped`, `hoverable`, and `compact` variants via data attributes
|
|
39
|
+
* that are consumed by child row/cell components.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* <Table striped hoverable>
|
|
44
|
+
* <TableHeader>
|
|
45
|
+
* <TableRow>
|
|
46
|
+
* <TableHead>Name</TableHead>
|
|
47
|
+
* <TableHead align="right" sortable sortDirection="asc" onSort={handleSort}>Amount</TableHead>
|
|
48
|
+
* </TableRow>
|
|
49
|
+
* </TableHeader>
|
|
50
|
+
* <TableBody>
|
|
51
|
+
* <TableRow>
|
|
52
|
+
* <TableCell>Jane Doe</TableCell>
|
|
53
|
+
* <TableCell align="right">$200</TableCell>
|
|
54
|
+
* </TableRow>
|
|
55
|
+
* </TableBody>
|
|
56
|
+
* </Table>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
export declare const Table: import("react").ForwardRefExoticComponent<TableProps & import("react").RefAttributes<HTMLTableElement>>;
|
|
60
|
+
/** Table header section (`<thead>`). */
|
|
61
|
+
export declare const TableHeader: import("react").ForwardRefExoticComponent<TableHeaderProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
62
|
+
/** Table body section (`<tbody>`). */
|
|
63
|
+
export declare const TableBody: import("react").ForwardRefExoticComponent<TableBodyProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
64
|
+
/** Table row (`<tr>`). Reads `data-striped` / `data-hoverable` from the ancestor `<table>`. */
|
|
65
|
+
export declare const TableRow: import("react").ForwardRefExoticComponent<TableRowProps & import("react").RefAttributes<HTMLTableRowElement>>;
|
|
66
|
+
/** Table header cell (`<th>`). Supports optional sort controls. */
|
|
67
|
+
export declare const TableHead: import("react").ForwardRefExoticComponent<TableHeadProps & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
68
|
+
/** Table data cell (`<td>`). */
|
|
69
|
+
export declare const TableCell: import("react").ForwardRefExoticComponent<TableCellProps & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
70
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/theme/components/Table.tsx"],"names":[],"mappings":"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,KAAK,yGA2BhB,CAAC;AAMH,wCAAwC;AACxC,eAAO,MAAM,WAAW,sHAgBtB,CAAC;AAMH,sCAAsC;AACtC,eAAO,MAAM,SAAS,oHAapB,CAAC;AAMH,+FAA+F;AAC/F,eAAO,MAAM,QAAQ,+GAmBnB,CAAC;AAYH,mEAAmE;AACnE,eAAO,MAAM,SAAS,iHAqCpB,CAAC;AAMH,gCAAgC;AAChC,eAAO,MAAM,SAAS,iHAmBpB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
export type TabsDensity = 'default' | 'comfortable';
|
|
3
|
+
export interface TabsItem {
|
|
4
|
+
value: string;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
/** Optional count chip shown after the label. */
|
|
7
|
+
count?: number;
|
|
8
|
+
/** Override the per-tab data-testid. Defaults to `tab-{value}`. */
|
|
9
|
+
testId?: string;
|
|
10
|
+
/** Disable interaction on a single tab. */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface TabsProps {
|
|
14
|
+
items: ReadonlyArray<TabsItem>;
|
|
15
|
+
/** Currently active tab `value`. */
|
|
16
|
+
value: string;
|
|
17
|
+
/** Fired with the new tab `value`. */
|
|
18
|
+
onChange?: (value: string) => void;
|
|
19
|
+
/** `'comfortable'` adds vertical padding for header-band placement. */
|
|
20
|
+
density?: TabsDensity;
|
|
21
|
+
/** Optional ARIA label for the tablist. */
|
|
22
|
+
ariaLabel?: string;
|
|
23
|
+
style?: CSSProperties;
|
|
24
|
+
/** Forwarded as `data-testid` on the tablist root. */
|
|
25
|
+
testId?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Tabs — controlled underline tab strip with optional count chips and
|
|
29
|
+
* left/right arrow keyboard navigation.
|
|
30
|
+
* Source: design/components/patterns.jsx:42
|
|
31
|
+
*/
|
|
32
|
+
export declare function Tabs({ items, value, onChange, density, ariaLabel, style, testId, }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/theme/components/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAElB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,aAAa,CAAC;AAEpD,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC/B,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,uEAAuE;IACvE,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EACnB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,OAAmB,EACnB,SAAS,EACT,KAAK,EACL,MAAM,GACP,EAAE,SAAS,2CAqIX"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface TagProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
3
|
+
/** Render the label using `var(--font-mono)`. Defaults to true (matches design). */
|
|
4
|
+
mono?: boolean;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
/** Forwarded as `data-testid`. */
|
|
7
|
+
testId?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Tag — tonal keyword chip with a faint surface background. Used in
|
|
11
|
+
* client-detail tag clouds, diagnosis lists, etc.
|
|
12
|
+
* Source: design/screens/client-detail.jsx:332
|
|
13
|
+
*/
|
|
14
|
+
export declare function Tag({ mono, children, style, testId, ...rest }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=Tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/theme/components/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,MAAM,WAAW,QAAS,SAAQ,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IACjF,oFAAoF;IACpF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,GAAG,CAAC,EAAE,IAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,QAAQ,2CAmB9E"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type InputHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { type FieldChromeProps } from './fieldShell';
|
|
3
|
+
import { type IconName } from './Icon';
|
|
4
|
+
/**
|
|
5
|
+
* TextInput — bare styled text input matching the design's input box. When a
|
|
6
|
+
* `label` is supplied it self-wraps in `<FieldShell>`; otherwise it renders the
|
|
7
|
+
* boxed control alone so it can sit inside a caller layout.
|
|
8
|
+
*
|
|
9
|
+
* Ported from `design/components/inputs.jsx` (TextInput) + `Field` chrome.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* <TextInput label="Practice name" hint="Shown to clients" value={v} onChange={…} />
|
|
13
|
+
* <TextInput icon="search" placeholder="Search…" />
|
|
14
|
+
*/
|
|
15
|
+
export interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>, FieldChromeProps {
|
|
16
|
+
/** Leading icon inside the box. */
|
|
17
|
+
icon?: IconName;
|
|
18
|
+
/** Trailing slot inside the box (e.g., a Badge or clear button). */
|
|
19
|
+
trailing?: ReactNode;
|
|
20
|
+
/** Monospace input font. */
|
|
21
|
+
mono?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const TextInput: import("react").ForwardRefExoticComponent<TextInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
24
|
+
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/theme/components/TextInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAE7C;;;;;;;;;;GAUG;AACH,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,EACzD,gBAAgB;IAClB,mCAAmC;IACnC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,SAAS,6GAmErB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import { type FieldChromeProps } from './fieldShell';
|
|
3
|
+
/**
|
|
4
|
+
* Textarea — multi-line text input matching the design's input box. Self-wraps
|
|
5
|
+
* in `<FieldShell>` when a `label` is supplied.
|
|
6
|
+
*
|
|
7
|
+
* Ported from `design/components/patterns.jsx` (Textarea).
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <Textarea label="Practice description" hint="Up to 400 characters" rows={3} />
|
|
11
|
+
*/
|
|
12
|
+
export interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'rows'>, FieldChromeProps {
|
|
13
|
+
rows?: number;
|
|
14
|
+
mono?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
17
|
+
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/theme/components/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,sBAAsB,EAC5B,MAAM,OAAO,CAAC;AAEf,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,cAAc,CAAC;AAEtB;;;;;;;;GAQG;AACH,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC,EAC/D,gBAAgB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,QAAQ,+GAqEpB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ComboboxProps } from './Combobox';
|
|
2
|
+
/**
|
|
3
|
+
* TimeZonePicker — searchable IANA time-zone select over the bundled list
|
|
4
|
+
* (offset shown as each option's `sub`). Pass `items` to override.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <TimeZonePicker label="Time zone" value={tz} onChange={setTz} />
|
|
8
|
+
*/
|
|
9
|
+
export interface TimeZonePickerProps extends Omit<ComboboxProps, 'items'> {
|
|
10
|
+
/** Override the bundled time-zone list. */
|
|
11
|
+
items?: ComboboxProps['items'];
|
|
12
|
+
}
|
|
13
|
+
export declare function TimeZonePicker({ items, placeholder, ...rest }: TimeZonePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=TimeZonePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeZonePicker.d.ts","sourceRoot":"","sources":["../../../src/theme/components/TimeZonePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAG1D;;;;;;GAMG;AACH,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC;IACvE,2CAA2C;IAC3C,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;CAChC;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAsB,EACtB,WAAgC,EAChC,GAAG,IAAI,EACR,EAAE,mBAAmB,2CAErB"}
|