@15gifts/back-office-kit 0.0.0-stage → 0.1.0-alpha.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.
- package/LICENSE +39 -0
- package/README.md +46 -2
- package/bin/back-office-kit.js +35 -0
- package/dist/browser/back-office-kit.js +21469 -0
- package/dist/components/Alert/Alert.css.d.ts +32 -0
- package/dist/components/Alert/Alert.d.ts +14 -0
- package/dist/components/Alert/Alert.js +59 -0
- package/dist/components/Alert/Alert.js.map +1 -0
- package/dist/components/Alert/Alert.styles.js +17 -0
- package/dist/components/Alert/Alert.styles.js.map +1 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/AppShell/AppShell.css.d.ts +7 -0
- package/dist/components/AppShell/AppShell.d.ts +20 -0
- package/dist/components/AppShell/AppShell.js +32 -0
- package/dist/components/AppShell/AppShell.js.map +1 -0
- package/dist/components/AppShell/AppShell.styles.js +6 -0
- package/dist/components/AppShell/AppShell.styles.js.map +1 -0
- package/dist/components/AppShell/index.d.ts +2 -0
- package/dist/components/Avatar/Avatar.css.d.ts +22 -0
- package/dist/components/Avatar/Avatar.d.ts +13 -0
- package/dist/components/Avatar/Avatar.js +30 -0
- package/dist/components/Avatar/Avatar.js.map +1 -0
- package/dist/components/Avatar/Avatar.styles.js +16 -0
- package/dist/components/Avatar/Avatar.styles.js.map +1 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Badge/Badge.css.d.ts +11 -0
- package/dist/components/Badge/Badge.d.ts +11 -0
- package/dist/components/Badge/Badge.js +17 -0
- package/dist/components/Badge/Badge.js.map +1 -0
- package/dist/components/Badge/Badge.styles.js +86 -0
- package/dist/components/Badge/Badge.styles.js.map +1 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.css.d.ts +5 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +22 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +51 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.styles.js +7 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.styles.js.map +1 -0
- package/dist/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/components/Button/Button.css.d.ts +74 -0
- package/dist/components/Button/Button.d.ts +29 -0
- package/dist/components/Button/Button.js +54 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/Button.styles.js +29 -0
- package/dist/components/Button/Button.styles.js.map +1 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Card/Card.css.d.ts +35 -0
- package/dist/components/Card/Card.d.ts +12 -0
- package/dist/components/Card/Card.js +27 -0
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/components/Card/Card.styles.js +18 -0
- package/dist/components/Card/Card.styles.js.map +1 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/ChatTranscript/ChatTranscript.css.d.ts +15 -0
- package/dist/components/ChatTranscript/ChatTranscript.d.ts +94 -0
- package/dist/components/ChatTranscript/ChatTranscript.js +159 -0
- package/dist/components/ChatTranscript/ChatTranscript.js.map +1 -0
- package/dist/components/ChatTranscript/ChatTranscript.styles.js +6 -0
- package/dist/components/ChatTranscript/ChatTranscript.styles.js.map +1 -0
- package/dist/components/ChatTranscript/index.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.css.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.d.ts +10 -0
- package/dist/components/Checkbox/Checkbox.js +50 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.styles.js +8 -0
- package/dist/components/Checkbox/Checkbox.styles.js.map +1 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Chip/Chip.css.d.ts +2 -0
- package/dist/components/Chip/Chip.d.ts +6 -0
- package/dist/components/Chip/Chip.js +21 -0
- package/dist/components/Chip/Chip.js.map +1 -0
- package/dist/components/Chip/Chip.styles.js +7 -0
- package/dist/components/Chip/Chip.styles.js.map +1 -0
- package/dist/components/Chip/index.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPicker.css.d.ts +5 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +17 -0
- package/dist/components/ColorPicker/ColorPicker.js +80 -0
- package/dist/components/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/components/ColorPicker/ColorPicker.styles.js +6 -0
- package/dist/components/ColorPicker/ColorPicker.styles.js.map +1 -0
- package/dist/components/ColorPicker/color.d.ts +14 -0
- package/dist/components/ColorPicker/color.js +39 -0
- package/dist/components/ColorPicker/color.js.map +1 -0
- package/dist/components/ColorPicker/index.d.ts +2 -0
- package/dist/components/Combobox/Combobox.d.ts +58 -0
- package/dist/components/Combobox/Combobox.js +156 -0
- package/dist/components/Combobox/Combobox.js.map +1 -0
- package/dist/components/Combobox/index.d.ts +2 -0
- package/dist/components/DateRangePicker/DateRangePicker.css.d.ts +31 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +51 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +261 -0
- package/dist/components/DateRangePicker/DateRangePicker.js.map +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.styles.js +8 -0
- package/dist/components/DateRangePicker/DateRangePicker.styles.js.map +1 -0
- package/dist/components/DateRangePicker/index.d.ts +4 -0
- package/dist/components/DateRangePicker/presets.d.ts +27 -0
- package/dist/components/DateRangePicker/presets.js +62 -0
- package/dist/components/DateRangePicker/presets.js.map +1 -0
- package/dist/components/DateTimeInput/DateTimeInput.css.d.ts +1 -0
- package/dist/components/DateTimeInput/DateTimeInput.d.ts +9 -0
- package/dist/components/DateTimeInput/DateTimeInput.js +37 -0
- package/dist/components/DateTimeInput/DateTimeInput.js.map +1 -0
- package/dist/components/DateTimeInput/DateTimeInput.styles.js +7 -0
- package/dist/components/DateTimeInput/DateTimeInput.styles.js.map +1 -0
- package/dist/components/DateTimeInput/index.d.ts +2 -0
- package/dist/components/DescriptionList/DescriptionList.css.d.ts +62 -0
- package/dist/components/DescriptionList/DescriptionList.d.ts +15 -0
- package/dist/components/DescriptionList/DescriptionList.js +26 -0
- package/dist/components/DescriptionList/DescriptionList.js.map +1 -0
- package/dist/components/DescriptionList/DescriptionList.styles.js +42 -0
- package/dist/components/DescriptionList/DescriptionList.styles.js.map +1 -0
- package/dist/components/DescriptionList/index.d.ts +2 -0
- package/dist/components/DetailsSummary/DetailsSummary.css.d.ts +4 -0
- package/dist/components/DetailsSummary/DetailsSummary.d.ts +7 -0
- package/dist/components/DetailsSummary/DetailsSummary.js +26 -0
- package/dist/components/DetailsSummary/DetailsSummary.js.map +1 -0
- package/dist/components/DetailsSummary/DetailsSummary.styles.js +7 -0
- package/dist/components/DetailsSummary/DetailsSummary.styles.js.map +1 -0
- package/dist/components/DetailsSummary/index.d.ts +2 -0
- package/dist/components/Drawer/Drawer.css.d.ts +11 -0
- package/dist/components/Drawer/Drawer.d.ts +21 -0
- package/dist/components/Drawer/Drawer.js +66 -0
- package/dist/components/Drawer/Drawer.js.map +1 -0
- package/dist/components/Drawer/Drawer.styles.js +12 -0
- package/dist/components/Drawer/Drawer.styles.js.map +1 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/EmptyLine/EmptyLine.css.d.ts +11 -0
- package/dist/components/EmptyLine/EmptyLine.d.ts +7 -0
- package/dist/components/EmptyLine/EmptyLine.js +19 -0
- package/dist/components/EmptyLine/EmptyLine.js.map +1 -0
- package/dist/components/EmptyLine/EmptyLine.styles.js +12 -0
- package/dist/components/EmptyLine/EmptyLine.styles.js.map +1 -0
- package/dist/components/EmptyLine/index.d.ts +2 -0
- package/dist/components/EnvironmentChip/EnvironmentChip.css.d.ts +19 -0
- package/dist/components/EnvironmentChip/EnvironmentChip.d.ts +9 -0
- package/dist/components/EnvironmentChip/EnvironmentChip.js +21 -0
- package/dist/components/EnvironmentChip/EnvironmentChip.js.map +1 -0
- package/dist/components/EnvironmentChip/EnvironmentChip.styles.js +16 -0
- package/dist/components/EnvironmentChip/EnvironmentChip.styles.js.map +1 -0
- package/dist/components/EnvironmentChip/index.d.ts +2 -0
- package/dist/components/Field/Field.css.d.ts +14 -0
- package/dist/components/Field/Field.d.ts +74 -0
- package/dist/components/Field/Field.js +69 -0
- package/dist/components/Field/Field.js.map +1 -0
- package/dist/components/Field/Field.styles.js +6 -0
- package/dist/components/Field/Field.styles.js.map +1 -0
- package/dist/components/Field/index.d.ts +2 -0
- package/dist/components/Fieldset/Fieldset.css.d.ts +6 -0
- package/dist/components/Fieldset/Fieldset.d.ts +10 -0
- package/dist/components/Fieldset/Fieldset.js +32 -0
- package/dist/components/Fieldset/Fieldset.js.map +1 -0
- package/dist/components/Fieldset/Fieldset.styles.js +6 -0
- package/dist/components/Fieldset/Fieldset.styles.js.map +1 -0
- package/dist/components/Fieldset/index.d.ts +2 -0
- package/dist/components/Heading/Heading.css.d.ts +21 -0
- package/dist/components/Heading/Heading.d.ts +11 -0
- package/dist/components/Heading/Heading.js +22 -0
- package/dist/components/Heading/Heading.js.map +1 -0
- package/dist/components/Heading/Heading.styles.js +18 -0
- package/dist/components/Heading/Heading.styles.js.map +1 -0
- package/dist/components/Heading/index.d.ts +2 -0
- package/dist/components/Icon/Icon.css.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +24 -0
- package/dist/components/Icon/Icon.js +24 -0
- package/dist/components/Icon/Icon.js.map +1 -0
- package/dist/components/Icon/Icon.styles.js +6 -0
- package/dist/components/Icon/Icon.styles.js.map +1 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/List/List.css.d.ts +4 -0
- package/dist/components/List/List.d.ts +12 -0
- package/dist/components/List/List.js +28 -0
- package/dist/components/List/List.js.map +1 -0
- package/dist/components/List/List.styles.js +6 -0
- package/dist/components/List/List.styles.js.map +1 -0
- package/dist/components/List/index.d.ts +2 -0
- package/dist/components/Loader/Loader.css.d.ts +1 -0
- package/dist/components/Loader/Loader.d.ts +12 -0
- package/dist/components/Loader/Loader.js +23 -0
- package/dist/components/Loader/Loader.js.map +1 -0
- package/dist/components/Loader/Loader.styles.js +7 -0
- package/dist/components/Loader/Loader.styles.js.map +1 -0
- package/dist/components/Loader/index.d.ts +2 -0
- package/dist/components/Menu/Menu.css.d.ts +9 -0
- package/dist/components/Menu/Menu.d.ts +90 -0
- package/dist/components/Menu/Menu.js +140 -0
- package/dist/components/Menu/Menu.js.map +1 -0
- package/dist/components/Menu/Menu.styles.js +6 -0
- package/dist/components/Menu/Menu.styles.js.map +1 -0
- package/dist/components/Menu/index.d.ts +2 -0
- package/dist/components/MetricBar/MetricBar.css.d.ts +5 -0
- package/dist/components/MetricBar/MetricBar.d.ts +20 -0
- package/dist/components/MetricBar/MetricBar.js +35 -0
- package/dist/components/MetricBar/MetricBar.js.map +1 -0
- package/dist/components/MetricBar/MetricBar.styles.js +15 -0
- package/dist/components/MetricBar/MetricBar.styles.js.map +1 -0
- package/dist/components/MetricBar/index.d.ts +2 -0
- package/dist/components/Modal/Modal.css.d.ts +24 -0
- package/dist/components/Modal/Modal.d.ts +16 -0
- package/dist/components/Modal/Modal.js +67 -0
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/Modal.styles.js +16 -0
- package/dist/components/Modal/Modal.styles.js.map +1 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/NavRail/HumaraLogo.d.ts +5 -0
- package/dist/components/NavRail/HumaraLogo.js +33 -0
- package/dist/components/NavRail/HumaraLogo.js.map +1 -0
- package/dist/components/NavRail/NavRail.css.d.ts +9 -0
- package/dist/components/NavRail/NavRail.d.ts +53 -0
- package/dist/components/NavRail/NavRail.js +108 -0
- package/dist/components/NavRail/NavRail.js.map +1 -0
- package/dist/components/NavRail/NavRail.styles.js +7 -0
- package/dist/components/NavRail/NavRail.styles.js.map +1 -0
- package/dist/components/NavRail/index.d.ts +2 -0
- package/dist/components/NumberInput/NumberInput.d.ts +13 -0
- package/dist/components/NumberInput/NumberInput.js +53 -0
- package/dist/components/NumberInput/NumberInput.js.map +1 -0
- package/dist/components/NumberInput/index.d.ts +2 -0
- package/dist/components/PageHeader/PageHeader.css.d.ts +8 -0
- package/dist/components/PageHeader/PageHeader.d.ts +13 -0
- package/dist/components/PageHeader/PageHeader.js +42 -0
- package/dist/components/PageHeader/PageHeader.js.map +1 -0
- package/dist/components/PageHeader/PageHeader.styles.js +6 -0
- package/dist/components/PageHeader/PageHeader.styles.js.map +1 -0
- package/dist/components/PageHeader/index.d.ts +2 -0
- package/dist/components/Pagination/Pagination.css.d.ts +3 -0
- package/dist/components/Pagination/Pagination.d.ts +14 -0
- package/dist/components/Pagination/Pagination.js +61 -0
- package/dist/components/Pagination/Pagination.js.map +1 -0
- package/dist/components/Pagination/Pagination.styles.js +6 -0
- package/dist/components/Pagination/Pagination.styles.js.map +1 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Popover/Popover.css.d.ts +4 -0
- package/dist/components/Popover/Popover.d.ts +18 -0
- package/dist/components/Popover/Popover.js +43 -0
- package/dist/components/Popover/Popover.js.map +1 -0
- package/dist/components/Popover/Popover.styles.js +7 -0
- package/dist/components/Popover/Popover.styles.js.map +1 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/PortalContainer/PortalContainer.d.ts +17 -0
- package/dist/components/PortalContainer/PortalContainer.js +17 -0
- package/dist/components/PortalContainer/PortalContainer.js.map +1 -0
- package/dist/components/PortalContainer/index.d.ts +2 -0
- package/dist/components/ProgressBar/ProgressBar.css.d.ts +5 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +18 -0
- package/dist/components/ProgressBar/ProgressBar.js +50 -0
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.styles.js +11 -0
- package/dist/components/ProgressBar/ProgressBar.styles.js.map +1 -0
- package/dist/components/ProgressBar/index.d.ts +2 -0
- package/dist/components/RadioCards/RadioCards.css.d.ts +6 -0
- package/dist/components/RadioCards/RadioCards.d.ts +20 -0
- package/dist/components/RadioCards/RadioCards.js +69 -0
- package/dist/components/RadioCards/RadioCards.js.map +1 -0
- package/dist/components/RadioCards/RadioCards.styles.js +6 -0
- package/dist/components/RadioCards/RadioCards.styles.js.map +1 -0
- package/dist/components/RadioCards/index.d.ts +2 -0
- package/dist/components/SaveBar/SaveBar.css.d.ts +5 -0
- package/dist/components/SaveBar/SaveBar.d.ts +14 -0
- package/dist/components/SaveBar/SaveBar.js +45 -0
- package/dist/components/SaveBar/SaveBar.js.map +1 -0
- package/dist/components/SaveBar/SaveBar.styles.js +6 -0
- package/dist/components/SaveBar/SaveBar.styles.js.map +1 -0
- package/dist/components/SaveBar/index.d.ts +2 -0
- package/dist/components/Select/Select.css.d.ts +3 -0
- package/dist/components/Select/Select.d.ts +29 -0
- package/dist/components/Select/Select.js +89 -0
- package/dist/components/Select/Select.js.map +1 -0
- package/dist/components/Select/Select.styles.js +7 -0
- package/dist/components/Select/Select.styles.js.map +1 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Skeleton/Skeleton.css.d.ts +16 -0
- package/dist/components/Skeleton/Skeleton.d.ts +14 -0
- package/dist/components/Skeleton/Skeleton.js +37 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/Skeleton/Skeleton.styles.js +17 -0
- package/dist/components/Skeleton/Skeleton.styles.js.map +1 -0
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/Stack/Stack.css.d.ts +51 -0
- package/dist/components/Stack/Stack.d.ts +12 -0
- package/dist/components/Stack/Stack.js +21 -0
- package/dist/components/Stack/Stack.js.map +1 -0
- package/dist/components/Stack/Stack.styles.js +46 -0
- package/dist/components/Stack/Stack.styles.js.map +1 -0
- package/dist/components/Stack/index.d.ts +2 -0
- package/dist/components/StatCard/StatCard.css.d.ts +4 -0
- package/dist/components/StatCard/StatCard.d.ts +8 -0
- package/dist/components/StatCard/StatCard.js +27 -0
- package/dist/components/StatCard/StatCard.js.map +1 -0
- package/dist/components/StatCard/StatCard.styles.js +6 -0
- package/dist/components/StatCard/StatCard.styles.js.map +1 -0
- package/dist/components/StatCard/index.d.ts +2 -0
- package/dist/components/StatsGrid/StatsGrid.css.d.ts +1 -0
- package/dist/components/StatsGrid/StatsGrid.d.ts +7 -0
- package/dist/components/StatsGrid/StatsGrid.js +17 -0
- package/dist/components/StatsGrid/StatsGrid.js.map +1 -0
- package/dist/components/StatsGrid/StatsGrid.styles.js +6 -0
- package/dist/components/StatsGrid/StatsGrid.styles.js.map +1 -0
- package/dist/components/StatsGrid/index.d.ts +2 -0
- package/dist/components/StatusBadge/StatusBadge.css.d.ts +53 -0
- package/dist/components/StatusBadge/StatusBadge.d.ts +9 -0
- package/dist/components/StatusBadge/StatusBadge.js +17 -0
- package/dist/components/StatusBadge/StatusBadge.js.map +1 -0
- package/dist/components/StatusBadge/StatusBadge.styles.js +19 -0
- package/dist/components/StatusBadge/StatusBadge.styles.js.map +1 -0
- package/dist/components/StatusBadge/index.d.ts +2 -0
- package/dist/components/Switch/Switch.css.d.ts +3 -0
- package/dist/components/Switch/Switch.d.ts +10 -0
- package/dist/components/Switch/Switch.js +41 -0
- package/dist/components/Switch/Switch.js.map +1 -0
- package/dist/components/Switch/Switch.styles.js +8 -0
- package/dist/components/Switch/Switch.styles.js.map +1 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switcher/Switcher.css.d.ts +33 -0
- package/dist/components/Switcher/Switcher.d.ts +68 -0
- package/dist/components/Switcher/Switcher.js +158 -0
- package/dist/components/Switcher/Switcher.js.map +1 -0
- package/dist/components/Switcher/Switcher.styles.js +16 -0
- package/dist/components/Switcher/Switcher.styles.js.map +1 -0
- package/dist/components/Switcher/index.d.ts +2 -0
- package/dist/components/Table/Table.css.d.ts +16 -0
- package/dist/components/Table/Table.d.ts +66 -0
- package/dist/components/Table/Table.js +136 -0
- package/dist/components/Table/Table.js.map +1 -0
- package/dist/components/Table/Table.styles.js +11 -0
- package/dist/components/Table/Table.styles.js.map +1 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/TableAction/TableAction.d.ts +10 -0
- package/dist/components/TableAction/TableAction.js +19 -0
- package/dist/components/TableAction/TableAction.js.map +1 -0
- package/dist/components/TableAction/index.d.ts +2 -0
- package/dist/components/Tabs/Tabs.css.d.ts +6 -0
- package/dist/components/Tabs/Tabs.d.ts +54 -0
- package/dist/components/Tabs/Tabs.js +67 -0
- package/dist/components/Tabs/Tabs.js.map +1 -0
- package/dist/components/Tabs/Tabs.styles.js +7 -0
- package/dist/components/Tabs/Tabs.styles.js.map +1 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tag/Tag.css.d.ts +9 -0
- package/dist/components/Tag/Tag.d.ts +7 -0
- package/dist/components/Tag/Tag.js +13 -0
- package/dist/components/Tag/Tag.js.map +1 -0
- package/dist/components/Tag/Tag.styles.js +12 -0
- package/dist/components/Tag/Tag.styles.js.map +1 -0
- package/dist/components/Tag/index.d.ts +2 -0
- package/dist/components/TextInput/TextInput.css.d.ts +1 -0
- package/dist/components/TextInput/TextInput.d.ts +16 -0
- package/dist/components/TextInput/TextInput.js +62 -0
- package/dist/components/TextInput/TextInput.js.map +1 -0
- package/dist/components/TextInput/TextInput.styles.js +6 -0
- package/dist/components/TextInput/TextInput.styles.js.map +1 -0
- package/dist/components/TextInput/index.d.ts +2 -0
- package/dist/components/TextInput/useCharCount.d.ts +15 -0
- package/dist/components/TextInput/useCharCount.js +14 -0
- package/dist/components/TextInput/useCharCount.js.map +1 -0
- package/dist/components/Textarea/Textarea.css.d.ts +2 -0
- package/dist/components/Textarea/Textarea.d.ts +16 -0
- package/dist/components/Textarea/Textarea.js +59 -0
- package/dist/components/Textarea/Textarea.js.map +1 -0
- package/dist/components/Textarea/Textarea.styles.js +7 -0
- package/dist/components/Textarea/Textarea.styles.js.map +1 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/ThemePicker/ThemePicker.css.d.ts +10 -0
- package/dist/components/ThemePicker/ThemePicker.d.ts +18 -0
- package/dist/components/ThemePicker/ThemePicker.js +74 -0
- package/dist/components/ThemePicker/ThemePicker.js.map +1 -0
- package/dist/components/ThemePicker/ThemePicker.styles.js +7 -0
- package/dist/components/ThemePicker/ThemePicker.styles.js.map +1 -0
- package/dist/components/ThemePicker/index.d.ts +2 -0
- package/dist/components/ToggleGroup/ToggleGroup.css.d.ts +4 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +23 -0
- package/dist/components/ToggleGroup/ToggleGroup.js +68 -0
- package/dist/components/ToggleGroup/ToggleGroup.js.map +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.styles.js +13 -0
- package/dist/components/ToggleGroup/ToggleGroup.styles.js.map +1 -0
- package/dist/components/ToggleGroup/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.css.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +18 -0
- package/dist/components/Tooltip/Tooltip.js +33 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.styles.js +6 -0
- package/dist/components/Tooltip/Tooltip.styles.js.map +1 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/TopBar/TopBar.css.d.ts +3 -0
- package/dist/components/TopBar/TopBar.d.ts +9 -0
- package/dist/components/TopBar/TopBar.js +20 -0
- package/dist/components/TopBar/TopBar.js.map +1 -0
- package/dist/components/TopBar/TopBar.styles.js +6 -0
- package/dist/components/TopBar/TopBar.styles.js.map +1 -0
- package/dist/components/TopBar/index.d.ts +2 -0
- package/dist/components/UserMenu/UserMenu.css.d.ts +5 -0
- package/dist/components/UserMenu/UserMenu.d.ts +26 -0
- package/dist/components/UserMenu/UserMenu.js +55 -0
- package/dist/components/UserMenu/UserMenu.js.map +1 -0
- package/dist/components/UserMenu/UserMenu.styles.js +7 -0
- package/dist/components/UserMenu/UserMenu.styles.js.map +1 -0
- package/dist/components/UserMenu/index.d.ts +2 -0
- package/dist/foundations/Foundations.css.d.ts +12 -0
- package/dist/index.d.ts +60 -0
- package/dist/index.js +61 -0
- package/dist/styles/input.css.d.ts +18 -0
- package/dist/styles/input.styles.js +6 -0
- package/dist/styles/input.styles.js.map +1 -0
- package/dist/styles/shared.css.d.ts +8 -0
- package/dist/styles/shared.styles.js +6 -0
- package/dist/styles/shared.styles.js.map +1 -0
- package/dist/styles.css +4 -0
- package/dist/theme/fontSize.d.ts +15 -0
- package/dist/theme/fontSize.js +31 -0
- package/dist/theme/fontSize.js.map +1 -0
- package/dist/theme/theme.d.ts +29 -0
- package/dist/theme/theme.js +52 -0
- package/dist/theme/theme.js.map +1 -0
- package/dist/tokens/contract.css.d.ts +120 -0
- package/dist/tokens/contract.styles.js +68 -0
- package/dist/tokens/contract.styles.js.map +1 -0
- package/dist/tokens/global.css.d.ts +0 -0
- package/dist/tokens/global.styles.js +2 -0
- package/dist/tokens/index.d.ts +9 -0
- package/dist/tokens/palette.d.ts +16 -0
- package/dist/tokens/palette.js +18 -0
- package/dist/tokens/palette.js.map +1 -0
- package/dist/tokens/scale.d.ts +51 -0
- package/dist/tokens/scale.js +47 -0
- package/dist/tokens/scale.js.map +1 -0
- package/dist/tokens/sprinkles.css.d.ts +38 -0
- package/dist/tokens/sprinkles.styles.js +349 -0
- package/dist/tokens/sprinkles.styles.js.map +1 -0
- package/dist/tokens/themes.css.d.ts +387 -0
- package/dist/tokens.js +5 -0
- package/package.json +107 -4
- package/skills/back-office-kit/SKILL.md +36 -0
- package/skills/back-office-kit/references/artifact-template.html +102 -0
- package/skills/back-office-kit/references/components.md +1239 -0
- package/skills/back-office-kit/references/install.md +187 -0
- package/skills/back-office-kit/references/migrate.md +86 -0
- package/skills/back-office-kit/references/patterns.md +198 -0
- package/skills/back-office-kit/references/testing.md +158 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateTimeInput.styles.js","names":["dateTime"],"sources":["../../../src/components/DateTimeInput/DateTimeInput.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css'\n\nimport { input } from '../../styles/input.css'\nimport { vars } from '../../tokens/contract.css'\n\nexport const dateTime = style([\n input,\n {\n fontVariantNumeric: 'tabular-nums',\n selectors: {\n '&::-webkit-calendar-picker-indicator': { cursor: 'pointer', opacity: 0.7 },\n '&:not([data-filled])::-webkit-datetime-edit': { color: vars.color.inkSubtle },\n },\n },\n])\n"],"mappings":""}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
|
2
|
+
export declare const list: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
3
|
+
layout: {
|
|
4
|
+
stacked: {
|
|
5
|
+
display: "flex";
|
|
6
|
+
flexDirection: "column";
|
|
7
|
+
gap: string;
|
|
8
|
+
};
|
|
9
|
+
inline: {
|
|
10
|
+
display: "grid";
|
|
11
|
+
gridTemplateColumns: "minmax(0, max-content) minmax(0, 1fr)";
|
|
12
|
+
columnGap: string;
|
|
13
|
+
rowGap: string;
|
|
14
|
+
};
|
|
15
|
+
grid: {
|
|
16
|
+
display: "grid";
|
|
17
|
+
gridTemplateColumns: "repeat(auto-fill, minmax(min(100%, 10rem), 1fr))";
|
|
18
|
+
gap: `${string} ${string}`;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
sm: {
|
|
23
|
+
fontSize: string;
|
|
24
|
+
};
|
|
25
|
+
md: {
|
|
26
|
+
fontSize: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
export type DescriptionListVariants = NonNullable<RecipeVariants<typeof list>>;
|
|
31
|
+
export declare const pair: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
32
|
+
layout: {
|
|
33
|
+
stacked: {
|
|
34
|
+
display: "flex";
|
|
35
|
+
flexDirection: "column";
|
|
36
|
+
gap: string;
|
|
37
|
+
};
|
|
38
|
+
inline: {
|
|
39
|
+
display: "grid";
|
|
40
|
+
gridColumn: "span 2";
|
|
41
|
+
gridTemplateColumns: "subgrid";
|
|
42
|
+
alignItems: "baseline";
|
|
43
|
+
};
|
|
44
|
+
grid: {
|
|
45
|
+
display: "flex";
|
|
46
|
+
flexDirection: "column";
|
|
47
|
+
gap: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
51
|
+
export declare const term: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
52
|
+
size: {
|
|
53
|
+
sm: {
|
|
54
|
+
fontSize: string;
|
|
55
|
+
};
|
|
56
|
+
md: {
|
|
57
|
+
fontSize: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
}>;
|
|
61
|
+
export declare const description: string;
|
|
62
|
+
export declare const mono: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
export interface DescriptionListItem {
|
|
3
|
+
term: ReactNode;
|
|
4
|
+
description: ReactNode;
|
|
5
|
+
/** Show the description in the mono font, e.g. for IDs and codes. */
|
|
6
|
+
mono?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface DescriptionListProps extends Omit<ComponentProps<'dl'>, 'children'> {
|
|
9
|
+
items: DescriptionListItem[];
|
|
10
|
+
/** `stacked`: term above value, one pair per row. `inline`: term and value side by side, terms aligned. `grid`: stacked pairs in responsive columns. */
|
|
11
|
+
layout?: 'stacked' | 'inline' | 'grid';
|
|
12
|
+
size?: 'sm' | 'md';
|
|
13
|
+
}
|
|
14
|
+
/** Key/value facts as a semantic `<dl>`. Terms are muted, values use the main ink colour. */
|
|
15
|
+
export declare function DescriptionList({ items, layout, size, className, ...props }: DescriptionListProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { description as e, list as t, pair as n, term as r } from "./DescriptionList.styles.js";
|
|
2
|
+
import { clsx as i } from "clsx";
|
|
3
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
|
+
// src/components/DescriptionList/DescriptionList.tsx
|
|
5
|
+
function s({ items: s, layout: c = "stacked", size: l = "md", className: u, ...d }) {
|
|
6
|
+
return /* @__PURE__ */ a("dl", {
|
|
7
|
+
className: i(t({
|
|
8
|
+
layout: c,
|
|
9
|
+
size: l
|
|
10
|
+
}), u),
|
|
11
|
+
...d,
|
|
12
|
+
children: s.map((t, s) => /* @__PURE__ */ o("div", {
|
|
13
|
+
className: n({ layout: c }),
|
|
14
|
+
children: [/* @__PURE__ */ a("dt", {
|
|
15
|
+
className: r({ size: l }),
|
|
16
|
+
children: t.term
|
|
17
|
+
}), /* @__PURE__ */ a("dd", {
|
|
18
|
+
className: i(e, t.mono && "lljrgbe"),
|
|
19
|
+
children: t.description
|
|
20
|
+
})]
|
|
21
|
+
}, s))
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export { s as DescriptionList };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=DescriptionList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescriptionList.js","names":["styles.list","styles.pair","styles.term","styles.description","DescriptionList","props","clsx","list","className","items","pair","term","item","description","index"],"sources":["../../../src/components/DescriptionList/DescriptionList.tsx"],"sourcesContent":["import { clsx } from 'clsx'\nimport type { ComponentProps, ReactNode } from 'react'\n\nimport * as styles from './DescriptionList.css'\n\nexport interface DescriptionListItem {\n term: ReactNode\n description: ReactNode\n /** Show the description in the mono font, e.g. for IDs and codes. */\n mono?: boolean\n}\n\nexport interface DescriptionListProps extends Omit<ComponentProps<'dl'>, 'children'> {\n items: DescriptionListItem[]\n /** `stacked`: term above value, one pair per row. `inline`: term and value side by side, terms aligned. `grid`: stacked pairs in responsive columns. */\n layout?: 'stacked' | 'inline' | 'grid'\n size?: 'sm' | 'md'\n}\n\n/** Key/value facts as a semantic `<dl>`. Terms are muted, values use the main ink colour. */\nexport function DescriptionList({\n items,\n layout = 'stacked',\n size = 'md',\n className,\n ...props\n}: DescriptionListProps) {\n return (\n <dl className={clsx(styles.list({ layout, size }), className)} {...props}>\n {items.map((item, index) => (\n <div key={index} className={styles.pair({ layout })}>\n <dt className={styles.term({ size })}>{item.term}</dt>\n <dd className={clsx(styles.description, item.mono && styles.mono)}>{item.description}</dd>\n </div>\n ))}\n </dl>\n )\n}\n"],"mappings":";;;;AAoBA,SAAgBI,EAAgB,EAC9B,UACA,YAAS,WACT,UAAO,MACP,cACA,GAAGC,KACoB;CACvB,OACE,kBAAC,MAAD;EAAI,WAAWC,EAAKN,EAAY;GAAE;GAAQ;EAAK,CAAC,GAAGQ,CAAS;EAAG,GAAIH;EAChE,UAAAI,EAAM,KAAK,GAAM,MAChB,kBAAC,OAAD;GAAiB,WAAWR,EAAY,EAAE,UAAO,CAAC;GAAlD,UAAA,CACE,kBAAC,MAAD;IAAI,WAAWC,EAAY,EAAE,QAAK,CAAC;IAAI,UAAAU,EAAK;GAAS,CAAA,GACrD,kBAAC,MAAD;IAAI,WAAWN,EAAKH,GAAoBS,EAAK,QAAQ,SAAW;IAAI,UAAAA,EAAK;GAAgB,CAAA,CACtF;EAHK,GAAAE,CAGL,CACN;CACC,CAAA;AAER"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
+
// src/components/DescriptionList/DescriptionList.css.ts
|
|
4
|
+
var t = e({
|
|
5
|
+
defaultClassName: "lljrgb0",
|
|
6
|
+
variantClassNames: {
|
|
7
|
+
layout: {
|
|
8
|
+
stacked: "lljrgb1",
|
|
9
|
+
inline: "lljrgb2",
|
|
10
|
+
grid: "lljrgb3"
|
|
11
|
+
},
|
|
12
|
+
size: {
|
|
13
|
+
sm: "lljrgb4",
|
|
14
|
+
md: "lljrgb5"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
layout: "stacked",
|
|
19
|
+
size: "md"
|
|
20
|
+
},
|
|
21
|
+
compoundVariants: []
|
|
22
|
+
}), n = e({
|
|
23
|
+
defaultClassName: "lljrgb6",
|
|
24
|
+
variantClassNames: { layout: {
|
|
25
|
+
stacked: "lljrgb7",
|
|
26
|
+
inline: "lljrgb8",
|
|
27
|
+
grid: "lljrgb9"
|
|
28
|
+
} },
|
|
29
|
+
defaultVariants: {},
|
|
30
|
+
compoundVariants: []
|
|
31
|
+
}), r = e({
|
|
32
|
+
defaultClassName: "lljrgba",
|
|
33
|
+
variantClassNames: { size: {
|
|
34
|
+
sm: "lljrgbb",
|
|
35
|
+
md: "lljrgbc"
|
|
36
|
+
} },
|
|
37
|
+
defaultVariants: {},
|
|
38
|
+
compoundVariants: []
|
|
39
|
+
}), i = "lljrgbd", a = "lljrgbe";
|
|
40
|
+
export { i as description, t as list, a as mono, n as pair, r as term };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=DescriptionList.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescriptionList.styles.js","names":["_7a468","list","createRuntimeFn","pair","term","description","mono"],"sources":["../../../src/components/DescriptionList/DescriptionList.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css'\nimport { recipe, type RecipeVariants } from '@vanilla-extract/recipes'\n\nimport { vars } from '../../tokens/contract.css'\nimport { fontSize, fontWeight, space } from '../../tokens/scale'\n\nexport const list = recipe({\n base: {\n margin: 0,\n padding: 0,\n fontFamily: vars.font.sans,\n lineHeight: 1.4,\n },\n variants: {\n layout: {\n stacked: { display: 'flex', flexDirection: 'column', gap: space['3'] },\n // Terms share one column; each pair is a subgrid row so the columns line up.\n inline: {\n display: 'grid',\n gridTemplateColumns: 'minmax(0, max-content) minmax(0, 1fr)',\n columnGap: space['6'],\n rowGap: space['2'],\n },\n grid: {\n display: 'grid',\n gridTemplateColumns: 'repeat(auto-fill, minmax(min(100%, 10rem), 1fr))',\n gap: `${space['3']} ${space['6']}`,\n },\n },\n size: {\n sm: { fontSize: fontSize.sm },\n md: { fontSize: fontSize.md },\n },\n },\n defaultVariants: { layout: 'stacked', size: 'md' },\n})\n\nexport type DescriptionListVariants = NonNullable<RecipeVariants<typeof list>>\n\nexport const pair = recipe({\n base: { minWidth: 0 },\n variants: {\n layout: {\n stacked: { display: 'flex', flexDirection: 'column', gap: space['0.5'] },\n inline: {\n display: 'grid',\n gridColumn: 'span 2',\n gridTemplateColumns: 'subgrid',\n alignItems: 'baseline',\n },\n grid: { display: 'flex', flexDirection: 'column', gap: space['0.5'] },\n },\n },\n})\n\nexport const term = recipe({\n base: { margin: 0, color: vars.color.inkMuted, fontWeight: fontWeight.normal },\n variants: {\n size: {\n sm: { fontSize: fontSize.xs },\n md: { fontSize: fontSize.sm },\n },\n },\n})\n\nexport const description = style({\n margin: 0,\n minWidth: 0,\n color: vars.color.ink,\n overflowWrap: 'anywhere',\n})\n\nexport const mono = style({ fontFamily: vars.font.mono })\n"],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
export interface DetailsSummaryProps extends ComponentProps<'details'> {
|
|
3
|
+
/** Always-visible summary that toggles the content. */
|
|
4
|
+
heading: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
/** A styled native `<details>`/`<summary>` disclosure. */
|
|
7
|
+
export declare function DetailsSummary({ heading, className, children, ...props }: DetailsSummaryProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Icon as e } from "../Icon/Icon.js";
|
|
2
|
+
import { chevron as t, content as n, details as r, summary as i } from "./DetailsSummary.styles.js";
|
|
3
|
+
import { clsx as a } from "clsx";
|
|
4
|
+
import { ChevronRight as o } from "lucide-react";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
// src/components/DetailsSummary/DetailsSummary.tsx
|
|
7
|
+
function l({ heading: l, className: u, children: d, ...f }) {
|
|
8
|
+
return /* @__PURE__ */ c("details", {
|
|
9
|
+
className: a(r, u),
|
|
10
|
+
...f,
|
|
11
|
+
children: [/* @__PURE__ */ c("summary", {
|
|
12
|
+
className: i,
|
|
13
|
+
children: [/* @__PURE__ */ s(e, {
|
|
14
|
+
icon: o,
|
|
15
|
+
size: "sm",
|
|
16
|
+
className: t
|
|
17
|
+
}), l]
|
|
18
|
+
}), /* @__PURE__ */ s("div", {
|
|
19
|
+
className: n,
|
|
20
|
+
children: d
|
|
21
|
+
})]
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export { l as DetailsSummary };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=DetailsSummary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DetailsSummary.js","names":["styles.details","styles.summary","styles.chevron","styles.content","DetailsSummary","props","clsx","details","className","summary","Icon","ChevronRight","chevron","heading","content"],"sources":["../../../src/components/DetailsSummary/DetailsSummary.tsx"],"sourcesContent":["import { clsx } from 'clsx'\nimport { ChevronRight } from 'lucide-react'\nimport type { ComponentProps, ReactNode } from 'react'\n\nimport { Icon } from '../Icon'\nimport * as styles from './DetailsSummary.css'\n\nexport interface DetailsSummaryProps extends ComponentProps<'details'> {\n /** Always-visible summary that toggles the content. */\n heading: ReactNode\n}\n\n/** A styled native `<details>`/`<summary>` disclosure. */\nexport function DetailsSummary({ heading, className, children, ...props }: DetailsSummaryProps) {\n return (\n <details className={clsx(styles.details, className)} {...props}>\n <summary className={styles.summary}>\n <Icon icon={ChevronRight} size=\"sm\" className={styles.chevron} />\n {heading}\n </summary>\n <div className={styles.content}>{children}</div>\n </details>\n )\n}\n"],"mappings":";;;;;;AAaA,SAAgBI,EAAe,EAAE,YAAS,cAAW,aAAU,GAAGC,KAA8B;CAC9F,OACE,kBAAC,WAAD;EAAS,WAAWC,EAAKN,GAAgBQ,CAAS;EAAG,GAAIH;EAAzD,UAAA,CACE,kBAAC,WAAD;GAAS,WAAWJ;GAApB,UAAA,CACE,kBAACS,GAAD;IAAM,MAAMC;IAAc,MAAK;IAAK,WAAWT;GAAiB,CAAA,GAC/DW,CACM;EACT,CAAA,GAAA,kBAAC,OAAD;GAAK,WAAWV;GAAiB;EAAc,CAAA,CACxC;;AAEb"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
// src/components/DetailsSummary/DetailsSummary.css.ts
|
|
4
|
+
var e = "_1bffl0p0", t = "_1bffl0p1 tyvs8e0", n = "_1bffl0p2", r = "_1bffl0p3";
|
|
5
|
+
export { n as chevron, r as content, e as details, t as summary };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=DetailsSummary.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DetailsSummary.styles.js","names":["details","summary","chevron","content"],"sources":["../../../src/components/DetailsSummary/DetailsSummary.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css'\n\nimport { focusRing } from '../../styles/shared.css'\nimport { vars } from '../../tokens/contract.css'\nimport { fontSize, fontWeight, radius, space } from '../../tokens/scale'\n\nexport const details = style({\n padding: space['4'],\n border: `1px solid ${vars.color.border}`,\n borderRadius: radius.xl,\n backgroundColor: vars.color.surface,\n color: vars.color.ink,\n fontFamily: vars.font.sans,\n fontSize: fontSize.md,\n})\n\nexport const summary = style([\n focusRing,\n {\n display: 'flex',\n alignItems: 'center',\n gap: space['2'],\n listStyle: 'none',\n fontWeight: fontWeight.semibold,\n cursor: 'pointer',\n borderRadius: radius.sm,\n selectors: { '&::-webkit-details-marker': { display: 'none' } },\n },\n])\n\nexport const chevron = style({\n color: vars.color.inkMuted,\n transition: 'transform 200ms',\n selectors: { [`${details}[open] &`]: { transform: 'rotate(90deg)' } },\n '@media': { '(prefers-reduced-motion: reduce)': { transition: 'none' } },\n})\n\nexport const content = style({ marginTop: space['3'] })\n"],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const backdrop: string;
|
|
2
|
+
export declare const viewport: Record<"left" | "right", string>;
|
|
3
|
+
export declare const popup: Record<"left" | "right", string>;
|
|
4
|
+
export declare const content: string;
|
|
5
|
+
export declare const header: string;
|
|
6
|
+
export declare const headings: string;
|
|
7
|
+
export declare const title: string;
|
|
8
|
+
export declare const description: string;
|
|
9
|
+
export declare const body: string;
|
|
10
|
+
export declare const footer: string;
|
|
11
|
+
export declare const close: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Drawer as BaseDrawer } from '@base-ui/react/drawer';
|
|
2
|
+
import { ReactElement, ReactNode } from 'react';
|
|
3
|
+
import { PartProps } from '../Field/Field';
|
|
4
|
+
export interface DrawerProps extends Omit<BaseDrawer.Root.Props, 'children' | 'swipeDirection'> {
|
|
5
|
+
/** The element that opens the drawer, e.g. `<Button>`. Omit when controlling `open` yourself. */
|
|
6
|
+
trigger?: ReactElement;
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
description?: ReactNode;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
/** Actions pinned to the bottom, e.g. Cancel and Save buttons. */
|
|
11
|
+
footer?: ReactNode;
|
|
12
|
+
side?: 'right' | 'left';
|
|
13
|
+
/** Accessible label of the close button. */
|
|
14
|
+
closeLabel?: string;
|
|
15
|
+
/** Goes on the popup (role `dialog`). */
|
|
16
|
+
className?: string;
|
|
17
|
+
/** Props for the popup (role `dialog`), e.g. `{ 'data-testid': 'run-drawer' }`. */
|
|
18
|
+
popupProps?: PartProps<BaseDrawer.Popup.Props>;
|
|
19
|
+
}
|
|
20
|
+
/** A modal side panel. Closes on Escape, the close button, an overlay click or a swipe. */
|
|
21
|
+
export declare function Drawer({ trigger, title, description, children, footer, side, closeLabel, className, popupProps, ...props }: DrawerProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Button as e } from "../Button/Button.js";
|
|
2
|
+
import { PortalContainer as t } from "../PortalContainer/PortalContainer.js";
|
|
3
|
+
import { backdrop as n, body as r, close as i, content as a, header as o, headings as s, popup as c, title as l, viewport as u } from "./Drawer.styles.js";
|
|
4
|
+
import { useState as d } from "react";
|
|
5
|
+
import { clsx as f } from "clsx";
|
|
6
|
+
import { X as p } from "lucide-react";
|
|
7
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
8
|
+
import { Drawer as g } from "@base-ui/react/drawer";
|
|
9
|
+
// src/components/Drawer/Drawer.tsx
|
|
10
|
+
function _({ trigger: _, title: v, description: y, children: b, footer: x, side: S = "right", closeLabel: C = "Close", className: w, popupProps: T, ...E }) {
|
|
11
|
+
let [D, O] = d(null);
|
|
12
|
+
return /* @__PURE__ */ h(g.Root, {
|
|
13
|
+
swipeDirection: S,
|
|
14
|
+
...E,
|
|
15
|
+
children: [_ && /* @__PURE__ */ m(g.Trigger, { render: _ }), /* @__PURE__ */ h(g.Portal, { children: [/* @__PURE__ */ m(g.Backdrop, { className: n }), /* @__PURE__ */ m(g.Viewport, {
|
|
16
|
+
className: u[S],
|
|
17
|
+
children: /* @__PURE__ */ m(g.Popup, {
|
|
18
|
+
...T,
|
|
19
|
+
className: f(c[S], T?.className, w),
|
|
20
|
+
children: /* @__PURE__ */ m(g.Content, {
|
|
21
|
+
ref: O,
|
|
22
|
+
className: a,
|
|
23
|
+
children: /* @__PURE__ */ h(t, {
|
|
24
|
+
container: D,
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ h("div", {
|
|
27
|
+
className: o,
|
|
28
|
+
children: [/* @__PURE__ */ h("div", {
|
|
29
|
+
className: s,
|
|
30
|
+
children: [/* @__PURE__ */ m(g.Title, {
|
|
31
|
+
className: l,
|
|
32
|
+
children: v
|
|
33
|
+
}), y && /* @__PURE__ */ m(g.Description, {
|
|
34
|
+
className: "_6rz8uca",
|
|
35
|
+
children: y
|
|
36
|
+
})]
|
|
37
|
+
}), /* @__PURE__ */ m(g.Close, { render: /* @__PURE__ */ m(e, {
|
|
38
|
+
variant: "ghost",
|
|
39
|
+
size: "sm",
|
|
40
|
+
iconOnly: !0,
|
|
41
|
+
icon: /* @__PURE__ */ m(p, {
|
|
42
|
+
size: "1.38em",
|
|
43
|
+
"aria-hidden": !0
|
|
44
|
+
}),
|
|
45
|
+
"aria-label": C,
|
|
46
|
+
className: i
|
|
47
|
+
}) })]
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ m("div", {
|
|
50
|
+
className: r,
|
|
51
|
+
children: b
|
|
52
|
+
}),
|
|
53
|
+
x && /* @__PURE__ */ m("div", {
|
|
54
|
+
className: "_6rz8ucc",
|
|
55
|
+
children: x
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
})
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
})] })]
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
export { _ as Drawer };
|
|
65
|
+
|
|
66
|
+
//# sourceMappingURL=Drawer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.js","names":["Drawer","content","BaseDrawer","styles.backdrop","styles.viewport","styles.popup","styles.content","styles.header","styles.headings","styles.title","title","description","styles.close","styles.body","footer","Drawer$1","title$1","description$1","footer$1","props","content$1","setContent","useState","Drawer","side","trigger","backdrop","viewport","popupProps","clsx","popup","className","content","PortalContainer","header","headings","title","Button","X","closeLabel","close","body"],"sources":["../../../src/components/Drawer/Drawer.tsx"],"sourcesContent":["import { Drawer as BaseDrawer } from '@base-ui/react/drawer'\nimport { clsx } from 'clsx'\nimport { X } from 'lucide-react'\nimport { useState, type ReactElement, type ReactNode } from 'react'\n\nimport { Button } from '../Button'\nimport type { PartProps } from '../Field/Field'\nimport { PortalContainer } from '../PortalContainer'\nimport * as styles from './Drawer.css'\n\nexport interface DrawerProps extends Omit<BaseDrawer.Root.Props, 'children' | 'swipeDirection'> {\n /** The element that opens the drawer, e.g. `<Button>`. Omit when controlling `open` yourself. */\n trigger?: ReactElement\n title: ReactNode\n description?: ReactNode\n children?: ReactNode\n /** Actions pinned to the bottom, e.g. Cancel and Save buttons. */\n footer?: ReactNode\n side?: 'right' | 'left'\n /** Accessible label of the close button. */\n closeLabel?: string\n /** Goes on the popup (role `dialog`). */\n className?: string\n /** Props for the popup (role `dialog`), e.g. `{ 'data-testid': 'run-drawer' }`. */\n popupProps?: PartProps<BaseDrawer.Popup.Props>\n}\n\n/** A modal side panel. Closes on Escape, the close button, an overlay click or a swipe. */\nexport function Drawer({\n trigger,\n title,\n description,\n children,\n footer,\n side = 'right',\n closeLabel = 'Close',\n className,\n popupProps,\n ...props\n}: DrawerProps) {\n // Popups (Select, Menu…) inside render into the drawer so they stay above it and inside its focus trap.\n // They go into Content, not Popup: a mouse press outside Content starts the swipe gesture, which\n // captures the pointer and sends the click to the drawer instead of the option.\n const [content, setContent] = useState<HTMLDivElement | null>(null)\n return (\n <BaseDrawer.Root swipeDirection={side} {...props}>\n {trigger && <BaseDrawer.Trigger render={trigger} />}\n <BaseDrawer.Portal>\n <BaseDrawer.Backdrop className={styles.backdrop} />\n <BaseDrawer.Viewport className={styles.viewport[side]}>\n <BaseDrawer.Popup\n {...popupProps}\n className={clsx(styles.popup[side], popupProps?.className, className)}\n >\n <BaseDrawer.Content ref={setContent} className={styles.content}>\n <PortalContainer container={content}>\n <div className={styles.header}>\n <div className={styles.headings}>\n <BaseDrawer.Title className={styles.title}>{title}</BaseDrawer.Title>\n {description && (\n <BaseDrawer.Description className={styles.description}>\n {description}\n </BaseDrawer.Description>\n )}\n </div>\n <BaseDrawer.Close\n render={\n <Button\n variant=\"ghost\"\n size=\"sm\"\n iconOnly\n icon={<X size=\"1.38em\" aria-hidden />}\n aria-label={closeLabel}\n className={styles.close}\n />\n }\n />\n </div>\n <div className={styles.body}>{children}</div>\n {footer && <div className={styles.footer}>{footer}</div>}\n </PortalContainer>\n </BaseDrawer.Content>\n </BaseDrawer.Popup>\n </BaseDrawer.Viewport>\n </BaseDrawer.Portal>\n </BaseDrawer.Root>\n )\n}\n"],"mappings":";;;;;;;;;AA4BA,SAAgBA,EAAO,EACrB,YACA,OAAAgB,GACA,aAAAC,GACA,aACA,QAAAC,GACA,UAAO,SACP,gBAAa,SACb,cACA,eACA,GAAGC,KACW;CAId,IAAM,CAAClB,GAASoB,KAAcC,EAAgC,IAAI;CAClE,OACE,kBAACpB,EAAW,MAAZ;EAAiB,gBAAgBsB;EAAM,GAAIL;EAA3C,UAAA,CACGM,KAAW,kBAACvB,EAAW,SAAZ,EAAoB,QAAQuB,EAAU,CAAA,GAClD,kBAACvB,EAAW,QAAZ,EAAA,UAAA,CACE,kBAACA,EAAW,UAAZ,EAAqB,WAAWC,EAAkB,CAAA,GAClD,kBAACD,EAAW,UAAZ;GAAqB,WAAWE,EAAgBoB;GAC9C,UAAA,kBAACtB,EAAW,OAAZ;IACE,GAAI0B;IACJ,WAAWC,EAAKxB,EAAamB,IAAOI,GAAY,WAAWG,CAAS;IAEpE,UAAA,kBAAC7B,EAAW,SAAZ;KAAoB,KAAKmB;KAAY,WAAWf;KAC9C,UAAA,kBAAC2B,GAAD;MAAiB,WAAWhC;MAA5B,UAAA;OACE,kBAAC,OAAD;QAAK,WAAWM;QAAhB,UAAA,CACE,kBAAC,OAAD;SAAK,WAAWC;SAAhB,UAAA,CACE,kBAACN,EAAW,OAAZ;UAAkB,WAAWO;UAAe,UAAAC;SAAwB,CAAA,GACnEC,KACC,kBAACT,EAAW,aAAZ;UAAwB,WAAW;UAChC,UAAAS;SACqB,CAAA,CAEvB;QACL,CAAA,GAAA,kBAACT,EAAW,OAAZ,EACE,QACE,kBAACmC,GAAD;SACE,SAAQ;SACR,MAAK;SACL,UAAA;SACA,MAAM,kBAACC,GAAD;UAAG,MAAK;UAAS,eAAA;SAAa,CAAA;SACpC,cAAYC;SACZ,WAAW3B;QACZ,CAAA,EAEJ,CAAA,CACE;;OACL,kBAAC,OAAD;QAAK,WAAWC;QAAc;OAAc,CAAA;OAC3CC,KAAU,kBAAC,OAAD;QAAK,WAAW;QAAgB,UAAAA;OAAY,CAAA;MACxC;;IACC,CAAA;GACJ,CAAA;EACC,CAAA,CACJ,EAAA,CAAA,CACJ;;AAErB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
// src/components/Drawer/Drawer.css.ts
|
|
3
|
+
var e = "_6rz8uc0", t = {
|
|
4
|
+
right: "_6rz8uc1",
|
|
5
|
+
left: "_6rz8uc2"
|
|
6
|
+
}, n = {
|
|
7
|
+
right: "_6rz8uc4 _6rz8uc3",
|
|
8
|
+
left: "_6rz8uc5 _6rz8uc3"
|
|
9
|
+
}, r = "_6rz8uc6", i = "_6rz8uc7", a = "_6rz8uc8", o = "_6rz8uc9", s = "_6rz8uca", c = "_6rz8ucb", l = "_6rz8ucc", u = "_6rz8ucd";
|
|
10
|
+
export { e as backdrop, c as body, u as close, r as content, s as description, l as footer, i as header, a as headings, n as popup, o as title, t as viewport };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=Drawer.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.styles.js","names":["backdrop","viewport","popup","content","header","headings","title","description","body","footer","close"],"sources":["../../../src/components/Drawer/Drawer.css.ts"],"sourcesContent":["import { style, styleVariants } from '@vanilla-extract/css'\n\nimport { vars } from '../../tokens/contract.css'\nimport { fontSize, fontWeight, space, zIndex } from '../../tokens/scale'\n\nconst reducedMotion = { '(prefers-reduced-motion: reduce)': { transition: 'none' } }\n\nexport const backdrop = style({\n position: 'fixed',\n zIndex: zIndex.overlay,\n inset: 0,\n backgroundColor: vars.color.overlay,\n opacity: 'calc(1 - var(--drawer-swipe-progress, 0))',\n transition: 'opacity 300ms cubic-bezier(0.32, 0.72, 0, 1)',\n selectors: {\n '&[data-starting-style], &[data-ending-style]': { opacity: 0 },\n '&[data-swiping]': { transitionDuration: '0ms' },\n },\n '@media': reducedMotion,\n})\n\nexport const viewport = styleVariants(\n {\n right: { justifyContent: 'flex-end' },\n left: { justifyContent: 'flex-start' },\n },\n (justify) => [{ position: 'fixed', inset: 0, zIndex: zIndex.overlay, display: 'flex' }, justify],\n)\n\nconst popupBase = style({\n boxSizing: 'border-box',\n display: 'flex',\n flexDirection: 'column',\n width: '28rem',\n maxWidth: 'calc(100vw - 3rem)',\n height: '100%',\n backgroundColor: vars.color.surface,\n color: vars.color.ink,\n boxShadow: vars.shadow.lg,\n fontFamily: vars.font.sans,\n outline: 0,\n overscrollBehavior: 'contain',\n transition: 'transform 300ms cubic-bezier(0.32, 0.72, 0, 1)',\n selectors: { '&[data-swiping]': { userSelect: 'none', transitionDuration: '0ms' } },\n '@media': reducedMotion,\n})\n\nexport const popup = styleVariants({\n right: [\n popupBase,\n {\n borderLeft: `1px solid ${vars.color.border}`,\n transform: 'translateX(var(--drawer-swipe-movement-x, 0))',\n selectors: {\n '&[data-starting-style], &[data-ending-style]': { transform: 'translateX(100%)' },\n },\n },\n ],\n left: [\n popupBase,\n {\n borderRight: `1px solid ${vars.color.border}`,\n transform: 'translateX(var(--drawer-swipe-movement-x, 0))',\n selectors: {\n '&[data-starting-style], &[data-ending-style]': { transform: 'translateX(-100%)' },\n },\n },\n ],\n})\n\nexport const content = style({ display: 'flex', flexDirection: 'column', flex: 1, minHeight: 0 })\n\nexport const header = style({\n display: 'flex',\n alignItems: 'flex-start',\n gap: space['3'],\n padding: space['6'],\n paddingBottom: space['4'],\n borderBottom: `1px solid ${vars.color.border}`,\n})\n\nexport const headings = style({ flex: 1, minWidth: 0 })\n\nexport const title = style({\n margin: 0,\n fontSize: fontSize.xl,\n fontWeight: fontWeight.semibold,\n lineHeight: 1.3,\n})\n\nexport const description = style({\n margin: 0,\n marginTop: space['1'],\n fontSize: fontSize.md,\n color: vars.color.inkMuted,\n})\n\nexport const body = style({ flex: 1, overflowY: 'auto', padding: space['6'] })\n\nexport const footer = style({\n display: 'flex',\n justifyContent: 'flex-end',\n gap: space['3'],\n padding: space['4'],\n paddingInline: space['6'],\n borderTop: `1px solid ${vars.color.border}`,\n})\n\nexport const close = style({\n marginTop: `calc(${space['1.5']} * -1)`,\n marginRight: `calc(${space['2']} * -1)`,\n})\n"],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const emptyLine: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
2
|
+
bare: {
|
|
3
|
+
false: {
|
|
4
|
+
paddingBlock: string;
|
|
5
|
+
paddingInline: string;
|
|
6
|
+
border: `1px solid var(--${string})`;
|
|
7
|
+
borderRadius: string;
|
|
8
|
+
backgroundColor: `var(--${string})`;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export interface EmptyLineProps extends ComponentProps<'div'> {
|
|
3
|
+
/** Without its own border, for use inside something that already has one (e.g. a table cell). */
|
|
4
|
+
bare?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/** A one-line empty state, e.g. "No prompt chips yet." */
|
|
7
|
+
export declare function EmptyLine({ bare, className, children, ...props }: EmptyLineProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Icon as e } from "../Icon/Icon.js";
|
|
2
|
+
import { emptyLine as t } from "./EmptyLine.styles.js";
|
|
3
|
+
import { clsx as n } from "clsx";
|
|
4
|
+
import { Inbox as r } from "lucide-react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
// src/components/EmptyLine/EmptyLine.tsx
|
|
7
|
+
function o({ bare: o = !1, className: s, children: c, ...l }) {
|
|
8
|
+
return /* @__PURE__ */ a("div", {
|
|
9
|
+
className: n(t({ bare: o }), s),
|
|
10
|
+
...l,
|
|
11
|
+
children: [/* @__PURE__ */ i(e, {
|
|
12
|
+
icon: r,
|
|
13
|
+
size: "sm"
|
|
14
|
+
}), c]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
export { o as EmptyLine };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=EmptyLine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyLine.js","names":["styles.emptyLine","EmptyLine","props","clsx","emptyLine","className","Icon","Inbox","children"],"sources":["../../../src/components/EmptyLine/EmptyLine.tsx"],"sourcesContent":["import { clsx } from 'clsx'\nimport { Inbox } from 'lucide-react'\nimport type { ComponentProps } from 'react'\n\nimport { Icon } from '../Icon'\nimport * as styles from './EmptyLine.css'\n\nexport interface EmptyLineProps extends ComponentProps<'div'> {\n /** Without its own border, for use inside something that already has one (e.g. a table cell). */\n bare?: boolean\n}\n\n/** A one-line empty state, e.g. \"No prompt chips yet.\" */\nexport function EmptyLine({ bare = false, className, children, ...props }: EmptyLineProps) {\n return (\n <div className={clsx(styles.emptyLine({ bare }), className)} {...props}>\n <Icon icon={Inbox} size=\"sm\" />\n {children}\n </div>\n )\n}\n"],"mappings":";;;;;;AAaA,SAAgBC,EAAU,EAAE,UAAO,IAAO,cAAW,aAAU,GAAGC,KAAyB;CACzF,OACE,kBAAC,OAAD;EAAK,WAAWC,EAAKH,EAAiB,EAAE,QAAK,CAAC,GAAGK,CAAS;EAAG,GAAIH;EAAjE,UAAA,CACE,kBAACI,GAAD;GAAM,MAAMC;GAAO,MAAK;EAAM,CAAA,GAC7BC,CACE;;AAET"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
+
// src/components/EmptyLine/EmptyLine.css.ts
|
|
4
|
+
var t = e({
|
|
5
|
+
defaultClassName: "_55xiay0",
|
|
6
|
+
variantClassNames: { bare: { false: "_55xiay1" } },
|
|
7
|
+
defaultVariants: {},
|
|
8
|
+
compoundVariants: []
|
|
9
|
+
});
|
|
10
|
+
export { t as emptyLine };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=EmptyLine.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyLine.styles.js","names":["_7a468","emptyLine","createRuntimeFn"],"sources":["../../../src/components/EmptyLine/EmptyLine.css.ts"],"sourcesContent":["import { recipe } from '@vanilla-extract/recipes'\n\nimport { vars } from '../../tokens/contract.css'\nimport { fontSize, radius, space } from '../../tokens/scale'\n\nexport const emptyLine = recipe({\n base: {\n display: 'flex',\n alignItems: 'center',\n gap: space['2.5'],\n fontFamily: vars.font.sans,\n fontSize: fontSize.md,\n color: vars.color.inkMuted,\n },\n variants: {\n bare: {\n false: {\n paddingBlock: space['2.5'],\n paddingInline: space['3'],\n border: `1px solid ${vars.color.border}`,\n borderRadius: radius.lg,\n backgroundColor: vars.color.surface,\n },\n },\n },\n})\n"],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const chip: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
2
|
+
tone: {
|
|
3
|
+
highlight: {
|
|
4
|
+
backgroundColor: `var(--${string})`;
|
|
5
|
+
borderColor: `var(--${string})`;
|
|
6
|
+
color: `var(--${string})`;
|
|
7
|
+
};
|
|
8
|
+
danger: {
|
|
9
|
+
backgroundColor: `var(--${string})`;
|
|
10
|
+
borderColor: `var(--${string})`;
|
|
11
|
+
color: `var(--${string})`;
|
|
12
|
+
};
|
|
13
|
+
neutral: {
|
|
14
|
+
backgroundColor: `var(--${string})`;
|
|
15
|
+
borderColor: `var(--${string})`;
|
|
16
|
+
color: `var(--${string})`;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export interface EnvironmentChipProps extends ComponentProps<'span'> {
|
|
3
|
+
/** Environment name, e.g. "staging". */
|
|
4
|
+
environment: string;
|
|
5
|
+
/** `danger` for production-like environments, so they stand out. */
|
|
6
|
+
tone?: 'highlight' | 'danger' | 'neutral';
|
|
7
|
+
}
|
|
8
|
+
/** Shows which environment the app is pointed at. Put it in the TopBar `end` slot. */
|
|
9
|
+
export declare function EnvironmentChip({ environment, tone, className, ...props }: EnvironmentChipProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { chip as e } from "./EnvironmentChip.styles.js";
|
|
2
|
+
import { visuallyHidden as t } from "../../styles/shared.styles.js";
|
|
3
|
+
import { clsx as n } from "clsx";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
// src/components/EnvironmentChip/EnvironmentChip.tsx
|
|
6
|
+
function a({ environment: a, tone: o = "highlight", className: s, ...c }) {
|
|
7
|
+
return /* @__PURE__ */ i("span", {
|
|
8
|
+
className: n(e({ tone: o }), s),
|
|
9
|
+
...c,
|
|
10
|
+
children: [/* @__PURE__ */ r("span", {
|
|
11
|
+
"aria-hidden": !0,
|
|
12
|
+
children: "●"
|
|
13
|
+
}), /* @__PURE__ */ i("span", { children: [/* @__PURE__ */ r("span", {
|
|
14
|
+
className: t,
|
|
15
|
+
children: "Environment: "
|
|
16
|
+
}), a] })]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export { a as EnvironmentChip };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=EnvironmentChip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentChip.js","names":["styles.chip","EnvironmentChip","props","clsx","chip","className","visuallyHidden","environment"],"sources":["../../../src/components/EnvironmentChip/EnvironmentChip.tsx"],"sourcesContent":["import { clsx } from 'clsx'\nimport type { ComponentProps } from 'react'\n\nimport * as styles from './EnvironmentChip.css'\nimport { visuallyHidden } from '../../styles/shared.css'\n\nexport interface EnvironmentChipProps extends ComponentProps<'span'> {\n /** Environment name, e.g. \"staging\". */\n environment: string\n /** `danger` for production-like environments, so they stand out. */\n tone?: 'highlight' | 'danger' | 'neutral'\n}\n\n/** Shows which environment the app is pointed at. Put it in the TopBar `end` slot. */\nexport function EnvironmentChip({\n environment,\n tone = 'highlight',\n className,\n ...props\n}: EnvironmentChipProps) {\n return (\n <span className={clsx(styles.chip({ tone }), className)} {...props}>\n <span aria-hidden>●</span>\n <span>\n <span className={visuallyHidden}>Environment: </span>\n {environment}\n </span>\n </span>\n )\n}\n"],"mappings":";;;;;AAcA,SAAgBC,EAAgB,EAC9B,gBACA,UAAO,aACP,cACA,GAAGC,KACoB;CACvB,OACE,kBAAC,QAAD;EAAM,WAAWC,EAAKH,EAAY,EAAE,QAAK,CAAC,GAAGK,CAAS;EAAG,GAAIH;EAA7D,UAAA,CACE,kBAAC,QAAD;GAAM,eAAA;GAAY,UAAA;EAAO,CAAA,GACzB,kBAAC,QAAD,EAAA,UAAA,CACE,kBAAC,QAAD;GAAM,WAAWI;GAAgB,UAAA;EAAmB,CAAA,GACnDC,CACG,EAAA,CAAA,CACF;;AAEV"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
+
// src/components/EnvironmentChip/EnvironmentChip.css.ts
|
|
4
|
+
var t = e({
|
|
5
|
+
defaultClassName: "_1iu246r0",
|
|
6
|
+
variantClassNames: { tone: {
|
|
7
|
+
highlight: "_1iu246r1",
|
|
8
|
+
danger: "_1iu246r2",
|
|
9
|
+
neutral: "_1iu246r3"
|
|
10
|
+
} },
|
|
11
|
+
defaultVariants: { tone: "highlight" },
|
|
12
|
+
compoundVariants: []
|
|
13
|
+
});
|
|
14
|
+
export { t as chip };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=EnvironmentChip.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentChip.styles.js","names":["_7a468","chip","createRuntimeFn"],"sources":["../../../src/components/EnvironmentChip/EnvironmentChip.css.ts"],"sourcesContent":["import { recipe } from '@vanilla-extract/recipes'\n\nimport { vars } from '../../tokens/contract.css'\nimport { fontSize, fontWeight, radius, space } from '../../tokens/scale'\n\nexport const chip = recipe({\n base: {\n display: 'inline-flex',\n alignItems: 'center',\n gap: space['1.5'],\n height: '1.75rem',\n paddingInline: space['2.5'],\n borderRadius: radius.full,\n border: '1px solid',\n fontFamily: vars.font.sans,\n fontSize: fontSize.xs,\n fontWeight: fontWeight.medium,\n letterSpacing: '0.06em',\n textTransform: 'uppercase',\n whiteSpace: 'nowrap',\n },\n variants: {\n tone: {\n highlight: {\n backgroundColor: vars.color.highlightSubtle,\n borderColor: vars.color.highlight,\n color: vars.color.highlightInk,\n },\n danger: {\n backgroundColor: vars.color.dangerSubtle,\n borderColor: vars.color.danger,\n color: vars.color.dangerInk,\n },\n neutral: {\n backgroundColor: vars.color.neutralSubtle,\n borderColor: vars.color.border,\n color: vars.color.neutralInk,\n },\n },\n },\n defaultVariants: { tone: 'highlight' },\n})\n"],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Indents the description and error, e.g. to line up with a checkbox's label text. */
|
|
2
|
+
export declare const messageInset: `var(--${string})`;
|
|
3
|
+
export declare const root: string;
|
|
4
|
+
export declare const label: string;
|
|
5
|
+
export declare const required: string;
|
|
6
|
+
export declare const optional: string;
|
|
7
|
+
export declare const description: string;
|
|
8
|
+
export declare const error: string;
|
|
9
|
+
export declare const errorIcon: string;
|
|
10
|
+
/** A label wrapping a checkbox, switch or radio and its text. */
|
|
11
|
+
export declare const inlineLabel: string;
|
|
12
|
+
/** A `<fieldset>` reset to lay out like a field. */
|
|
13
|
+
export declare const fieldset: string;
|
|
14
|
+
export declare const legend: string;
|