@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,387 @@
|
|
|
1
|
+
export declare const light: {
|
|
2
|
+
font: {
|
|
3
|
+
sans: string;
|
|
4
|
+
mono: string;
|
|
5
|
+
};
|
|
6
|
+
shadow: {
|
|
7
|
+
sm: string;
|
|
8
|
+
md: string;
|
|
9
|
+
lg: string;
|
|
10
|
+
};
|
|
11
|
+
color: {
|
|
12
|
+
bg: string;
|
|
13
|
+
canvas: string;
|
|
14
|
+
surface: string;
|
|
15
|
+
surfaceSunken: string;
|
|
16
|
+
surfaceHover: string;
|
|
17
|
+
border: string;
|
|
18
|
+
borderSubtle: string;
|
|
19
|
+
borderStrong: string;
|
|
20
|
+
ink: string;
|
|
21
|
+
inkMuted: string;
|
|
22
|
+
inkSubtle: string;
|
|
23
|
+
primary: "#034a42";
|
|
24
|
+
primaryHover: "#023a34";
|
|
25
|
+
onPrimary: string;
|
|
26
|
+
accent: "#1bd49d";
|
|
27
|
+
accentSubtle: string;
|
|
28
|
+
accentInk: "#034a42";
|
|
29
|
+
success: string;
|
|
30
|
+
successSubtle: string;
|
|
31
|
+
successInk: string;
|
|
32
|
+
warning: string;
|
|
33
|
+
warningSubtle: string;
|
|
34
|
+
warningInk: string;
|
|
35
|
+
warningFill: "#ff6e4c";
|
|
36
|
+
danger: string;
|
|
37
|
+
dangerSubtle: string;
|
|
38
|
+
dangerInk: string;
|
|
39
|
+
dangerFill: string;
|
|
40
|
+
info: string;
|
|
41
|
+
infoSubtle: string;
|
|
42
|
+
infoInk: string;
|
|
43
|
+
infoBorder: string;
|
|
44
|
+
neutral: string;
|
|
45
|
+
neutralSubtle: string;
|
|
46
|
+
neutralInk: string;
|
|
47
|
+
highlight: "#dced48";
|
|
48
|
+
highlightSubtle: string;
|
|
49
|
+
highlightInk: string;
|
|
50
|
+
highlightBorder: string;
|
|
51
|
+
userBubble: string;
|
|
52
|
+
focusRing: "#034a42";
|
|
53
|
+
codeBg: string;
|
|
54
|
+
codeInk: string;
|
|
55
|
+
overlay: string;
|
|
56
|
+
railBg: "#034a42";
|
|
57
|
+
railBorder: "#034a42";
|
|
58
|
+
railInk: string;
|
|
59
|
+
railInkMuted: string;
|
|
60
|
+
railHover: string;
|
|
61
|
+
railActiveBg: string;
|
|
62
|
+
railActiveInk: "#1cf6b5";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export declare const dark: {
|
|
66
|
+
font: {
|
|
67
|
+
sans: string;
|
|
68
|
+
mono: string;
|
|
69
|
+
};
|
|
70
|
+
shadow: {
|
|
71
|
+
sm: string;
|
|
72
|
+
md: string;
|
|
73
|
+
lg: string;
|
|
74
|
+
};
|
|
75
|
+
color: {
|
|
76
|
+
bg: string;
|
|
77
|
+
canvas: string;
|
|
78
|
+
surface: string;
|
|
79
|
+
surfaceSunken: string;
|
|
80
|
+
surfaceHover: string;
|
|
81
|
+
border: string;
|
|
82
|
+
borderSubtle: string;
|
|
83
|
+
borderStrong: string;
|
|
84
|
+
ink: string;
|
|
85
|
+
inkMuted: string;
|
|
86
|
+
inkSubtle: string;
|
|
87
|
+
primary: "#1cf6b5";
|
|
88
|
+
primaryHover: string;
|
|
89
|
+
onPrimary: "#023a34";
|
|
90
|
+
accent: "#1cf6b5";
|
|
91
|
+
accentSubtle: string;
|
|
92
|
+
accentInk: string;
|
|
93
|
+
success: string;
|
|
94
|
+
successSubtle: string;
|
|
95
|
+
successInk: string;
|
|
96
|
+
warning: string;
|
|
97
|
+
warningSubtle: string;
|
|
98
|
+
warningInk: string;
|
|
99
|
+
warningFill: "#ff6e4c";
|
|
100
|
+
danger: string;
|
|
101
|
+
dangerSubtle: string;
|
|
102
|
+
dangerInk: string;
|
|
103
|
+
dangerFill: string;
|
|
104
|
+
info: string;
|
|
105
|
+
infoSubtle: string;
|
|
106
|
+
infoInk: string;
|
|
107
|
+
infoBorder: string;
|
|
108
|
+
neutral: string;
|
|
109
|
+
neutralSubtle: string;
|
|
110
|
+
neutralInk: string;
|
|
111
|
+
highlight: "#dced48";
|
|
112
|
+
highlightSubtle: string;
|
|
113
|
+
highlightInk: string;
|
|
114
|
+
highlightBorder: string;
|
|
115
|
+
userBubble: string;
|
|
116
|
+
focusRing: "#1cf6b5";
|
|
117
|
+
codeBg: string;
|
|
118
|
+
codeInk: string;
|
|
119
|
+
overlay: string;
|
|
120
|
+
railBg: string;
|
|
121
|
+
railBorder: string;
|
|
122
|
+
railInk: string;
|
|
123
|
+
railInkMuted: string;
|
|
124
|
+
railHover: string;
|
|
125
|
+
railActiveBg: string;
|
|
126
|
+
railActiveInk: "#1cf6b5";
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
export declare const sand: {
|
|
130
|
+
font: {
|
|
131
|
+
sans: string;
|
|
132
|
+
mono: string;
|
|
133
|
+
};
|
|
134
|
+
shadow: {
|
|
135
|
+
sm: string;
|
|
136
|
+
md: string;
|
|
137
|
+
lg: string;
|
|
138
|
+
};
|
|
139
|
+
color: {
|
|
140
|
+
bg: "#edede8";
|
|
141
|
+
canvas: string;
|
|
142
|
+
surface: "#f4f4f0";
|
|
143
|
+
surfaceSunken: string;
|
|
144
|
+
surfaceHover: string;
|
|
145
|
+
border: "#d4d2c5";
|
|
146
|
+
borderSubtle: string;
|
|
147
|
+
borderStrong: string;
|
|
148
|
+
ink: "#023a34";
|
|
149
|
+
inkMuted: string;
|
|
150
|
+
inkSubtle: string;
|
|
151
|
+
neutralSubtle: string;
|
|
152
|
+
userBubble: string;
|
|
153
|
+
codeBg: "#023a34";
|
|
154
|
+
codeInk: "#f4f4f0";
|
|
155
|
+
overlay: string;
|
|
156
|
+
railBg: "#023a34";
|
|
157
|
+
railBorder: "#023a34";
|
|
158
|
+
railInk: "#f4f4f0";
|
|
159
|
+
railInkMuted: string;
|
|
160
|
+
railHover: string;
|
|
161
|
+
railActiveBg: string;
|
|
162
|
+
railActiveInk: "#1cf6b5";
|
|
163
|
+
primary: "#034a42";
|
|
164
|
+
primaryHover: "#023a34";
|
|
165
|
+
onPrimary: string;
|
|
166
|
+
accent: "#1bd49d";
|
|
167
|
+
accentSubtle: string;
|
|
168
|
+
accentInk: "#034a42";
|
|
169
|
+
success: string;
|
|
170
|
+
successSubtle: string;
|
|
171
|
+
successInk: string;
|
|
172
|
+
warning: string;
|
|
173
|
+
warningSubtle: string;
|
|
174
|
+
warningInk: string;
|
|
175
|
+
warningFill: "#ff6e4c";
|
|
176
|
+
danger: string;
|
|
177
|
+
dangerSubtle: string;
|
|
178
|
+
dangerInk: string;
|
|
179
|
+
dangerFill: string;
|
|
180
|
+
info: string;
|
|
181
|
+
infoSubtle: string;
|
|
182
|
+
infoInk: string;
|
|
183
|
+
infoBorder: string;
|
|
184
|
+
neutral: string;
|
|
185
|
+
neutralInk: string;
|
|
186
|
+
highlight: "#dced48";
|
|
187
|
+
highlightSubtle: string;
|
|
188
|
+
highlightInk: string;
|
|
189
|
+
highlightBorder: string;
|
|
190
|
+
focusRing: "#034a42";
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
export declare const themes: {
|
|
194
|
+
readonly light: {
|
|
195
|
+
font: {
|
|
196
|
+
sans: string;
|
|
197
|
+
mono: string;
|
|
198
|
+
};
|
|
199
|
+
shadow: {
|
|
200
|
+
sm: string;
|
|
201
|
+
md: string;
|
|
202
|
+
lg: string;
|
|
203
|
+
};
|
|
204
|
+
color: {
|
|
205
|
+
bg: string;
|
|
206
|
+
canvas: string;
|
|
207
|
+
surface: string;
|
|
208
|
+
surfaceSunken: string;
|
|
209
|
+
surfaceHover: string;
|
|
210
|
+
border: string;
|
|
211
|
+
borderSubtle: string;
|
|
212
|
+
borderStrong: string;
|
|
213
|
+
ink: string;
|
|
214
|
+
inkMuted: string;
|
|
215
|
+
inkSubtle: string;
|
|
216
|
+
primary: "#034a42";
|
|
217
|
+
primaryHover: "#023a34";
|
|
218
|
+
onPrimary: string;
|
|
219
|
+
accent: "#1bd49d";
|
|
220
|
+
accentSubtle: string;
|
|
221
|
+
accentInk: "#034a42";
|
|
222
|
+
success: string;
|
|
223
|
+
successSubtle: string;
|
|
224
|
+
successInk: string;
|
|
225
|
+
warning: string;
|
|
226
|
+
warningSubtle: string;
|
|
227
|
+
warningInk: string;
|
|
228
|
+
warningFill: "#ff6e4c";
|
|
229
|
+
danger: string;
|
|
230
|
+
dangerSubtle: string;
|
|
231
|
+
dangerInk: string;
|
|
232
|
+
dangerFill: string;
|
|
233
|
+
info: string;
|
|
234
|
+
infoSubtle: string;
|
|
235
|
+
infoInk: string;
|
|
236
|
+
infoBorder: string;
|
|
237
|
+
neutral: string;
|
|
238
|
+
neutralSubtle: string;
|
|
239
|
+
neutralInk: string;
|
|
240
|
+
highlight: "#dced48";
|
|
241
|
+
highlightSubtle: string;
|
|
242
|
+
highlightInk: string;
|
|
243
|
+
highlightBorder: string;
|
|
244
|
+
userBubble: string;
|
|
245
|
+
focusRing: "#034a42";
|
|
246
|
+
codeBg: string;
|
|
247
|
+
codeInk: string;
|
|
248
|
+
overlay: string;
|
|
249
|
+
railBg: "#034a42";
|
|
250
|
+
railBorder: "#034a42";
|
|
251
|
+
railInk: string;
|
|
252
|
+
railInkMuted: string;
|
|
253
|
+
railHover: string;
|
|
254
|
+
railActiveBg: string;
|
|
255
|
+
railActiveInk: "#1cf6b5";
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
readonly dark: {
|
|
259
|
+
font: {
|
|
260
|
+
sans: string;
|
|
261
|
+
mono: string;
|
|
262
|
+
};
|
|
263
|
+
shadow: {
|
|
264
|
+
sm: string;
|
|
265
|
+
md: string;
|
|
266
|
+
lg: string;
|
|
267
|
+
};
|
|
268
|
+
color: {
|
|
269
|
+
bg: string;
|
|
270
|
+
canvas: string;
|
|
271
|
+
surface: string;
|
|
272
|
+
surfaceSunken: string;
|
|
273
|
+
surfaceHover: string;
|
|
274
|
+
border: string;
|
|
275
|
+
borderSubtle: string;
|
|
276
|
+
borderStrong: string;
|
|
277
|
+
ink: string;
|
|
278
|
+
inkMuted: string;
|
|
279
|
+
inkSubtle: string;
|
|
280
|
+
primary: "#1cf6b5";
|
|
281
|
+
primaryHover: string;
|
|
282
|
+
onPrimary: "#023a34";
|
|
283
|
+
accent: "#1cf6b5";
|
|
284
|
+
accentSubtle: string;
|
|
285
|
+
accentInk: string;
|
|
286
|
+
success: string;
|
|
287
|
+
successSubtle: string;
|
|
288
|
+
successInk: string;
|
|
289
|
+
warning: string;
|
|
290
|
+
warningSubtle: string;
|
|
291
|
+
warningInk: string;
|
|
292
|
+
warningFill: "#ff6e4c";
|
|
293
|
+
danger: string;
|
|
294
|
+
dangerSubtle: string;
|
|
295
|
+
dangerInk: string;
|
|
296
|
+
dangerFill: string;
|
|
297
|
+
info: string;
|
|
298
|
+
infoSubtle: string;
|
|
299
|
+
infoInk: string;
|
|
300
|
+
infoBorder: string;
|
|
301
|
+
neutral: string;
|
|
302
|
+
neutralSubtle: string;
|
|
303
|
+
neutralInk: string;
|
|
304
|
+
highlight: "#dced48";
|
|
305
|
+
highlightSubtle: string;
|
|
306
|
+
highlightInk: string;
|
|
307
|
+
highlightBorder: string;
|
|
308
|
+
userBubble: string;
|
|
309
|
+
focusRing: "#1cf6b5";
|
|
310
|
+
codeBg: string;
|
|
311
|
+
codeInk: string;
|
|
312
|
+
overlay: string;
|
|
313
|
+
railBg: string;
|
|
314
|
+
railBorder: string;
|
|
315
|
+
railInk: string;
|
|
316
|
+
railInkMuted: string;
|
|
317
|
+
railHover: string;
|
|
318
|
+
railActiveBg: string;
|
|
319
|
+
railActiveInk: "#1cf6b5";
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
readonly sand: {
|
|
323
|
+
font: {
|
|
324
|
+
sans: string;
|
|
325
|
+
mono: string;
|
|
326
|
+
};
|
|
327
|
+
shadow: {
|
|
328
|
+
sm: string;
|
|
329
|
+
md: string;
|
|
330
|
+
lg: string;
|
|
331
|
+
};
|
|
332
|
+
color: {
|
|
333
|
+
bg: "#edede8";
|
|
334
|
+
canvas: string;
|
|
335
|
+
surface: "#f4f4f0";
|
|
336
|
+
surfaceSunken: string;
|
|
337
|
+
surfaceHover: string;
|
|
338
|
+
border: "#d4d2c5";
|
|
339
|
+
borderSubtle: string;
|
|
340
|
+
borderStrong: string;
|
|
341
|
+
ink: "#023a34";
|
|
342
|
+
inkMuted: string;
|
|
343
|
+
inkSubtle: string;
|
|
344
|
+
neutralSubtle: string;
|
|
345
|
+
userBubble: string;
|
|
346
|
+
codeBg: "#023a34";
|
|
347
|
+
codeInk: "#f4f4f0";
|
|
348
|
+
overlay: string;
|
|
349
|
+
railBg: "#023a34";
|
|
350
|
+
railBorder: "#023a34";
|
|
351
|
+
railInk: "#f4f4f0";
|
|
352
|
+
railInkMuted: string;
|
|
353
|
+
railHover: string;
|
|
354
|
+
railActiveBg: string;
|
|
355
|
+
railActiveInk: "#1cf6b5";
|
|
356
|
+
primary: "#034a42";
|
|
357
|
+
primaryHover: "#023a34";
|
|
358
|
+
onPrimary: string;
|
|
359
|
+
accent: "#1bd49d";
|
|
360
|
+
accentSubtle: string;
|
|
361
|
+
accentInk: "#034a42";
|
|
362
|
+
success: string;
|
|
363
|
+
successSubtle: string;
|
|
364
|
+
successInk: string;
|
|
365
|
+
warning: string;
|
|
366
|
+
warningSubtle: string;
|
|
367
|
+
warningInk: string;
|
|
368
|
+
warningFill: "#ff6e4c";
|
|
369
|
+
danger: string;
|
|
370
|
+
dangerSubtle: string;
|
|
371
|
+
dangerInk: string;
|
|
372
|
+
dangerFill: string;
|
|
373
|
+
info: string;
|
|
374
|
+
infoSubtle: string;
|
|
375
|
+
infoInk: string;
|
|
376
|
+
infoBorder: string;
|
|
377
|
+
neutral: string;
|
|
378
|
+
neutralInk: string;
|
|
379
|
+
highlight: "#dced48";
|
|
380
|
+
highlightSubtle: string;
|
|
381
|
+
highlightInk: string;
|
|
382
|
+
highlightBorder: string;
|
|
383
|
+
focusRing: "#034a42";
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
export type ThemeName = keyof typeof themes;
|
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { vars as e } from "./tokens/contract.styles.js";
|
|
2
|
+
import { palette as t } from "./tokens/palette.js";
|
|
3
|
+
import { fontSize as n, fontWeight as r, lineHeight as i, radius as a, space as o, zIndex as s } from "./tokens/scale.js";
|
|
4
|
+
import { sprinkles as c } from "./tokens/sprinkles.styles.js";
|
|
5
|
+
export { n as fontSize, r as fontWeight, i as lineHeight, t as palette, a as radius, o as space, c as sprinkles, e as vars, s as zIndex };
|
package/package.json
CHANGED
|
@@ -1,6 +1,109 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@15gifts/back-office-kit",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0-alpha.0",
|
|
4
|
+
"description": "React components and design tokens for Humara's internal, self-serve, SaaS-style tools (back offices, admin consoles, dashboards, ops tools). Not for customer-facing UI.",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/15gifts/back-office-kit.git"
|
|
10
|
+
},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=24"
|
|
13
|
+
},
|
|
14
|
+
"sideEffects": [
|
|
15
|
+
"**/*.css",
|
|
16
|
+
"**/*.css.ts"
|
|
17
|
+
],
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"skills",
|
|
21
|
+
"bin"
|
|
22
|
+
],
|
|
23
|
+
"bin": {
|
|
24
|
+
"back-office-kit": "bin/back-office-kit.js"
|
|
25
|
+
},
|
|
26
|
+
"main": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./tokens": {
|
|
34
|
+
"types": "./dist/tokens.d.ts",
|
|
35
|
+
"import": "./dist/tokens.js"
|
|
36
|
+
},
|
|
37
|
+
"./styles.css": "./dist/styles.css",
|
|
38
|
+
"./browser": "./dist/browser/back-office-kit.js",
|
|
39
|
+
"./package.json": "./package.json"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public",
|
|
43
|
+
"registry": "https://registry.npmjs.org/"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "NODE_ENV=production vite build && NODE_ENV=production vite build -c vite.browser.config.ts",
|
|
47
|
+
"storybook": "storybook dev -p 6006",
|
|
48
|
+
"storybook:build": "storybook build",
|
|
49
|
+
"test": "vitest run",
|
|
50
|
+
"test:coverage": "vitest run --coverage",
|
|
51
|
+
"typecheck": "tsc --noEmit",
|
|
52
|
+
"lint": "eslint . && prettier --check .",
|
|
53
|
+
"format": "prettier --write .",
|
|
54
|
+
"catalogue": "tsx scripts/gen-catalogue.ts",
|
|
55
|
+
"catalogue:check": "tsx scripts/gen-catalogue.ts --check",
|
|
56
|
+
"check:browser": "tsx scripts/check-browser-bundle.ts",
|
|
57
|
+
"changeset": "changeset",
|
|
58
|
+
"release": "npm run build && changeset publish",
|
|
59
|
+
"release:alpha": "tsx scripts/release-alpha.ts",
|
|
60
|
+
"hooks": "husky"
|
|
61
|
+
},
|
|
62
|
+
"lint-staged": {
|
|
63
|
+
"*.{ts,tsx,js}": [
|
|
64
|
+
"eslint --fix",
|
|
65
|
+
"prettier --write"
|
|
66
|
+
],
|
|
67
|
+
"*.{json,md,mdx,yml,css}": [
|
|
68
|
+
"prettier --write"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"@base-ui/react": "1.9.0",
|
|
73
|
+
"@vanilla-extract/recipes": "0.5.7",
|
|
74
|
+
"@vanilla-extract/sprinkles": "1.7.1",
|
|
75
|
+
"clsx": "2.1.1",
|
|
76
|
+
"lucide-react": "1.68.0",
|
|
77
|
+
"react-day-picker": "10.0.2"
|
|
78
|
+
},
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@15gifts/eslint-config-humara": "1.1.1",
|
|
81
|
+
"@changesets/cli": "3.0.3",
|
|
82
|
+
"@eslint/compat": "2.1.1",
|
|
83
|
+
"@storybook/addon-a11y": "10.6.5",
|
|
84
|
+
"@storybook/addon-docs": "10.6.5",
|
|
85
|
+
"@storybook/addon-vitest": "10.6.5",
|
|
86
|
+
"@storybook/react-vite": "10.6.5",
|
|
87
|
+
"@types/react": "19.3.0",
|
|
88
|
+
"@types/react-dom": "19.3.0",
|
|
89
|
+
"@vanilla-extract/css": "1.21.3",
|
|
90
|
+
"@vanilla-extract/vite-plugin": "5.2.6",
|
|
91
|
+
"@vitejs/plugin-react": "6.2.1",
|
|
92
|
+
"@vitest/browser-playwright": "5.1.0",
|
|
93
|
+
"@vitest/coverage-v8": "5.1.0",
|
|
94
|
+
"eslint": "9.39.5",
|
|
95
|
+
"husky": "9.1.7",
|
|
96
|
+
"lint-staged": "17.6.0",
|
|
97
|
+
"playwright": "1.64.1",
|
|
98
|
+
"prettier": "3.9.10",
|
|
99
|
+
"react": "19.3.1",
|
|
100
|
+
"react-docgen-typescript": "2.4.0",
|
|
101
|
+
"react-dom": "19.3.1",
|
|
102
|
+
"storybook": "10.6.5",
|
|
103
|
+
"tsx": "4.23.15",
|
|
104
|
+
"typescript": "6.0.3",
|
|
105
|
+
"vite": "8.3.5",
|
|
106
|
+
"vite-plugin-dts": "5.1.2",
|
|
107
|
+
"vitest": "5.1.0"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: back-office-kit
|
|
3
|
+
description: Build UI for Humara's internal, self-serve, SaaS-style tools (back offices, admin consoles, dashboards, ops tools, internal Claude artifacts) with @15gifts/back-office-kit (React 19 components + tokens). Use whenever you create or change UI in one of those apps. That includes adding a page, form, table, dashboard, settings screen, app shell or nav, "use our design system", "make it look like Humara", or replacing hand-rolled, Tailwind, MUI or shadcn UI with our components. Also use it to install the package or set up theming (light, dark, sand). Do not use it for customer-facing UI: the chat widget, customer websites or marketing pages.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Back office kit
|
|
7
|
+
|
|
8
|
+
`@15gifts/back-office-kit` is the shared component library for Humara's internal tools. It's not for customer-facing UI (the chat widget, customer sites, marketing pages); those have their own branding. Every internal tool should look the same, so **compose library components and tokens. Don't hand-roll CSS for things the library already has.**
|
|
9
|
+
|
|
10
|
+
## Workflow
|
|
11
|
+
|
|
12
|
+
1. **Is it set up?** Check `package.json` for `@15gifts/back-office-kit` and the app entry for `import '@15gifts/back-office-kit/styles.css'`. If either is missing, follow [references/install.md](references/install.md). For a Claude artifact, follow its "Claude artifacts" section and start from [references/artifact-template.html](references/artifact-template.html).
|
|
13
|
+
2. **Pick components** from [references/components.md](references/components.md). That's the full catalogue with props, generated from the source, so trust it over memory. Read it before writing UI.
|
|
14
|
+
3. **Lay out pages** using the recipes in [references/patterns.md](references/patterns.md): app shell, settings form, data table page, dashboard, detail drawer.
|
|
15
|
+
4. **Migrating existing UI?** Follow [references/migrate.md](references/migrate.md).
|
|
16
|
+
5. **Write or update tests** using [references/testing.md](references/testing.md): the role and query for each component, portals, Modal and Drawer behaviour, the jsdom setup, and how to pass test IDs.
|
|
17
|
+
6. **Verify.** Run the app's type-check (`npx tsc --noEmit`, or its `typecheck` script). `vite build` does not check types. Then open the page in light and dark.
|
|
18
|
+
7. **Styling your own bits.** Only do this for layout or app-specific elements the library doesn't cover. Use the CSS variables (`var(--bok-surface)`, `var(--bok-ink)`, `var(--bok-border)`, …) or, in Vanilla Extract apps, `vars` from `@15gifts/back-office-kit/tokens`. **Never hard-code hex colours, fonts or shadows.**
|
|
19
|
+
|
|
20
|
+
## Rules
|
|
21
|
+
|
|
22
|
+
- Import named components from the package root: `import { Button, Card, Table } from '@15gifts/back-office-kit'`.
|
|
23
|
+
- Import `@15gifts/back-office-kit/styles.css` exactly once, at the app entry.
|
|
24
|
+
- The Humara logo is built into `NavRail`. Don't add a logo; set `appName` to the tool's name (e.g. `appName="Persona Service"`), which shows under the logo.
|
|
25
|
+
- **Don't nest cards.** A `Card`, or a card-framed `Fieldset`, never goes inside another card. Pick one level to frame: if a page or form is already split into cards, its wrapper is plain layout (`Stack`, or straight inside `AppShell`), and sections inside a card are separated with headings and dividers, not more cards. A `Table` inside a card is fine.
|
|
26
|
+
- Use one `primary` Button per view. Other actions are `secondary`, and toolbar or table actions are `ghost`.
|
|
27
|
+
- In your own CSS, `--bok-accent`/`--bok-success`/… are fills (bars, dots, borders). For text use `--bok-accent-ink`/`--bok-success-ink`/…
|
|
28
|
+
- Use status colours only through components (`StatusBadge`, `Badge` tones, `Alert` tones), never ad-hoc.
|
|
29
|
+
- Use `vars.font.mono` / `--bok-font-mono` for IDs, codes and timestamps-as-identifiers. Everything else is Poppins.
|
|
30
|
+
- Icons come from `lucide-react`. Pass them as elements sized in em so they scale with text (`icon={<Play size="1em" aria-hidden />}`). Use `1em` beside body text and `1.25em` for slightly heavier icons. You'll see odd values like `1.23em` inside the library: that's today's pixel size divided by the surrounding text size, to keep proportions. Don't copy them, just pick `1em`/`1.25em`.
|
|
31
|
+
- Sizes in your own CSS are rem/em, never px (except 1px borders): the global text-size setting depends on it.
|
|
32
|
+
- Lint with ESLint and `@15gifts/eslint-config-humara`, not oxlint (see install.md › Linting).
|
|
33
|
+
- Links inside library components use the `render` prop with the app's router: `render={<Link to="/runs" />}`.
|
|
34
|
+
- Every input needs a `label`, even if visually hidden. Icon-only buttons need `aria-label`.
|
|
35
|
+
- Theme with `setTheme('light' | 'dark' | 'sand' | 'system')` or `useTheme()`. Don't write theme CSS.
|
|
36
|
+
- If something is missing from the library, build it from tokens in the app, and tell the user it might be worth adding to `@15gifts/back-office-kit`.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<!--
|
|
3
|
+
Template for a Claude artifact built with @15gifts/back-office-kit. See install.md › Claude artifacts.
|
|
4
|
+
Replace:
|
|
5
|
+
VERSION newest @15gifts/back-office-kit release at least two weeks old
|
|
6
|
+
REACT_VERSION the React version jsdelivr pins inside react-dom (see install.md step 1)
|
|
7
|
+
LUCIDE_VERSION npm view @15gifts/back-office-kit@VERSION dependencies.lucide-react
|
|
8
|
+
The library injects its own styles when imported: don't add its CSS.
|
|
9
|
+
-->
|
|
10
|
+
<html lang="en" data-theme="light">
|
|
11
|
+
<head>
|
|
12
|
+
<meta charset="utf-8" />
|
|
13
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
14
|
+
<title>App name</title>
|
|
15
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
16
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
17
|
+
<link
|
|
18
|
+
rel="stylesheet"
|
|
19
|
+
href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Poppins:wght@400;500;600&display=swap"
|
|
20
|
+
/>
|
|
21
|
+
<script type="importmap">
|
|
22
|
+
{
|
|
23
|
+
"imports": {
|
|
24
|
+
"react": "https://cdn.jsdelivr.net/npm/react@REACT_VERSION/+esm",
|
|
25
|
+
"react/jsx-runtime": "https://cdn.jsdelivr.net/npm/react@REACT_VERSION/jsx-runtime/+esm",
|
|
26
|
+
"react-dom": "https://cdn.jsdelivr.net/npm/react-dom@REACT_VERSION/+esm",
|
|
27
|
+
"react-dom/client": "https://cdn.jsdelivr.net/npm/react-dom@REACT_VERSION/client/+esm",
|
|
28
|
+
"htm": "https://cdn.jsdelivr.net/npm/htm@3.1.1/+esm",
|
|
29
|
+
"lucide-react": "https://cdn.jsdelivr.net/npm/lucide-react@LUCIDE_VERSION/+esm",
|
|
30
|
+
"@15gifts/back-office-kit": "https://cdn.jsdelivr.net/npm/@15gifts/back-office-kit@VERSION/dist/browser/back-office-kit.js"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
</script>
|
|
34
|
+
</head>
|
|
35
|
+
<body>
|
|
36
|
+
<div id="root"></div>
|
|
37
|
+
<script type="module">
|
|
38
|
+
import { createElement, useState } from 'react'
|
|
39
|
+
import { createRoot } from 'react-dom/client'
|
|
40
|
+
import htm from 'htm'
|
|
41
|
+
import { Activity, Play } from 'lucide-react'
|
|
42
|
+
import {
|
|
43
|
+
AppShell,
|
|
44
|
+
Button,
|
|
45
|
+
NavRail,
|
|
46
|
+
PageHeader,
|
|
47
|
+
StatusBadge,
|
|
48
|
+
Table,
|
|
49
|
+
TopBar,
|
|
50
|
+
} from '@15gifts/back-office-kit'
|
|
51
|
+
|
|
52
|
+
const html = htm.bind(createElement)
|
|
53
|
+
|
|
54
|
+
const runs = [
|
|
55
|
+
{ id: 'run_76c', when: '12 Nov, 16:00', status: 'completed', duration: '1m 10s' },
|
|
56
|
+
{ id: 'run_75v', when: '12 Nov, 15:13', status: 'failed', duration: '1m 47s' },
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
function App() {
|
|
60
|
+
const [count, setCount] = useState(0)
|
|
61
|
+
return html`
|
|
62
|
+
<${AppShell}
|
|
63
|
+
rail=${html`<${NavRail}
|
|
64
|
+
appName="App name"
|
|
65
|
+
items=${[{ label: 'Runs', icon: html`<${Activity} size="1.25rem" aria-hidden />`, href: '#', active: true }]}
|
|
66
|
+
/>`}
|
|
67
|
+
topBar=${html`<${TopBar} start="Runs" />`}
|
|
68
|
+
>
|
|
69
|
+
<${PageHeader}
|
|
70
|
+
title="Runs"
|
|
71
|
+
facts=${[`${runs.length} runs`, `${count} started`]}
|
|
72
|
+
actions=${html`<${Button} icon=${html`<${Play} size="1em" aria-hidden />`} onClick=${() => setCount(count + 1)}>
|
|
73
|
+
Start run
|
|
74
|
+
</${Button}>`}
|
|
75
|
+
/>
|
|
76
|
+
<${Table}
|
|
77
|
+
aria-label="Runs"
|
|
78
|
+
rows=${runs}
|
|
79
|
+
getRowKey=${(run) => run.id}
|
|
80
|
+
columns=${[
|
|
81
|
+
{
|
|
82
|
+
key: 'when',
|
|
83
|
+
header: 'Run',
|
|
84
|
+
render: (run) =>
|
|
85
|
+
html`${run.when}<${Table.Secondary}>${run.id}</${Table.Secondary}>`,
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
key: 'status',
|
|
89
|
+
header: 'Status',
|
|
90
|
+
render: (run) => html`<${StatusBadge} status=${run.status} />`,
|
|
91
|
+
},
|
|
92
|
+
{ key: 'duration', header: 'Duration', align: 'right' },
|
|
93
|
+
]}
|
|
94
|
+
/>
|
|
95
|
+
</${AppShell}>
|
|
96
|
+
`
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
createRoot(document.getElementById('root')).render(html`<${App} />`)
|
|
100
|
+
</script>
|
|
101
|
+
</body>
|
|
102
|
+
</html>
|