@15gifts/back-office-kit 0.0.0-stage → 0.1.0-alpha.1
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 +49 -2
- package/bin/back-office-kit.js +35 -0
- package/dist/browser/back-office-kit.js +22186 -0
- package/dist/components/Alert/Alert.css.d.ts +33 -0
- package/dist/components/Alert/Alert.d.ts +24 -0
- package/dist/components/Alert/Alert.js +63 -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 +9 -0
- package/dist/components/AppShell/AppShell.d.ts +22 -0
- package/dist/components/AppShell/AppShell.js +48 -0
- package/dist/components/AppShell/AppShell.js.map +1 -0
- package/dist/components/AppShell/AppShell.styles.js +7 -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 +14 -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 +16 -0
- package/dist/components/Badge/Badge.d.ts +14 -0
- package/dist/components/Badge/Badge.js +18 -0
- package/dist/components/Badge/Badge.js.map +1 -0
- package/dist/components/Badge/Badge.styles.js +87 -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 +7 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +24 -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 +30 -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 +37 -0
- package/dist/components/Card/Card.d.ts +18 -0
- package/dist/components/Card/Card.js +38 -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 +162 -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 +11 -0
- package/dist/components/Checkbox/Checkbox.js +46 -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/CheckboxGroup/CheckboxGroup.css.d.ts +2 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +28 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.js +66 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +10 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.styles.js.map +1 -0
- package/dist/components/CheckboxGroup/index.d.ts +2 -0
- package/dist/components/Chip/Chip.css.d.ts +4 -0
- package/dist/components/Chip/Chip.d.ts +18 -0
- package/dist/components/Chip/Chip.js +40 -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 +19 -0
- package/dist/components/ColorPicker/ColorPicker.js +79 -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 +82 -0
- package/dist/components/Combobox/Combobox.js +177 -0
- package/dist/components/Combobox/Combobox.js.map +1 -0
- package/dist/components/Combobox/index.d.ts +2 -0
- package/dist/components/CopyButton/CopyButton.d.ts +11 -0
- package/dist/components/CopyButton/CopyButton.js +40 -0
- package/dist/components/CopyButton/CopyButton.js.map +1 -0
- package/dist/components/CopyButton/index.d.ts +2 -0
- package/dist/components/DateRangePicker/DateRangePicker.css.d.ts +31 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +58 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +258 -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 +29 -0
- package/dist/components/DateTimeInput/DateTimeInput.js.map +1 -0
- package/dist/components/DateTimeInput/DateTimeInput.styles.js +8 -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 +23 -0
- package/dist/components/DescriptionList/DescriptionList.js +27 -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 +5 -0
- package/dist/components/DetailsSummary/DetailsSummary.d.ts +11 -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 +15 -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 +14 -0
- package/dist/components/Drawer/Drawer.d.ts +42 -0
- package/dist/components/Drawer/Drawer.js +75 -0
- package/dist/components/Drawer/Drawer.js.map +1 -0
- package/dist/components/Drawer/Drawer.styles.js +17 -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/EmptyState/EmptyState.css.d.ts +16 -0
- package/dist/components/EmptyState/EmptyState.d.ts +15 -0
- package/dist/components/EmptyState/EmptyState.js +37 -0
- package/dist/components/EmptyState/EmptyState.js.map +1 -0
- package/dist/components/EmptyState/EmptyState.styles.js +15 -0
- package/dist/components/EmptyState/EmptyState.styles.js.map +1 -0
- package/dist/components/EmptyState/index.d.ts +2 -0
- package/dist/components/EnvironmentChip/EnvironmentChip.css.d.ts +24 -0
- package/dist/components/EnvironmentChip/EnvironmentChip.d.ts +17 -0
- package/dist/components/EnvironmentChip/EnvironmentChip.js +32 -0
- package/dist/components/EnvironmentChip/EnvironmentChip.js.map +1 -0
- package/dist/components/EnvironmentChip/EnvironmentChip.styles.js +17 -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 +13 -0
- package/dist/components/Field/Field.d.ts +57 -0
- package/dist/components/Field/Field.js +58 -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 +11 -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/Grid/Grid.css.d.ts +22 -0
- package/dist/components/Grid/Grid.d.ts +21 -0
- package/dist/components/Grid/Grid.js +23 -0
- package/dist/components/Grid/Grid.js.map +1 -0
- package/dist/components/Grid/Grid.styles.js +28 -0
- package/dist/components/Grid/Grid.styles.js.map +1 -0
- package/dist/components/Grid/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 +13 -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 +27 -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 +114 -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 +10 -0
- package/dist/components/MetricBar/MetricBar.d.ts +28 -0
- package/dist/components/MetricBar/MetricBar.js +51 -0
- package/dist/components/MetricBar/MetricBar.js.map +1 -0
- package/dist/components/MetricBar/MetricBar.styles.js +20 -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 +22 -0
- package/dist/components/Modal/Modal.js +64 -0
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/Modal.styles.js +17 -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 +11 -0
- package/dist/components/NavRail/NavRail.d.ts +68 -0
- package/dist/components/NavRail/NavRail.js +129 -0
- package/dist/components/NavRail/NavRail.js.map +1 -0
- package/dist/components/NavRail/NavRail.styles.js +8 -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 +21 -0
- package/dist/components/NumberInput/NumberInput.js +59 -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 +15 -0
- package/dist/components/PageHeader/PageHeader.js +40 -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 +19 -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 +26 -0
- package/dist/components/Popover/Popover.js +44 -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 +18 -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 +8 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +22 -0
- package/dist/components/ProgressBar/ProgressBar.js +64 -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 +26 -0
- package/dist/components/RadioCards/RadioCards.js +65 -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 +19 -0
- package/dist/components/SaveBar/SaveBar.js +44 -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 +5 -0
- package/dist/components/Select/Select.d.ts +56 -0
- package/dist/components/Select/Select.js +118 -0
- package/dist/components/Select/Select.js.map +1 -0
- package/dist/components/Select/Select.styles.js +8 -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 +16 -0
- package/dist/components/Skeleton/Skeleton.js +38 -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 +54 -0
- package/dist/components/Stack/Stack.d.ts +16 -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 +39 -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 +11 -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 +4 -0
- package/dist/components/StatsGrid/StatsGrid.js +13 -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 +10 -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 +11 -0
- package/dist/components/Switch/Switch.js +37 -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 +32 -0
- package/dist/components/Switcher/Switcher.d.ts +80 -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 +31 -0
- package/dist/components/Table/Table.d.ts +163 -0
- package/dist/components/Table/Table.js +248 -0
- package/dist/components/Table/Table.js.map +1 -0
- package/dist/components/Table/Table.styles.js +12 -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 +69 -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 +42 -0
- package/dist/components/Tag/Tag.d.ts +10 -0
- package/dist/components/Tag/Tag.js +30 -0
- package/dist/components/Tag/Tag.js.map +1 -0
- package/dist/components/Tag/Tag.styles.js +23 -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 +27 -0
- package/dist/components/TextInput/TextInput.js +59 -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 +4 -0
- package/dist/components/Textarea/Textarea.d.ts +19 -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 +8 -0
- package/dist/components/Textarea/Textarea.styles.js.map +1 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/ThemeMenu/ThemeMenu.d.ts +13 -0
- package/dist/components/ThemeMenu/ThemeMenu.js +52 -0
- package/dist/components/ThemeMenu/ThemeMenu.js.map +1 -0
- package/dist/components/ThemeMenu/index.d.ts +2 -0
- package/dist/components/ThemePicker/ThemePicker.css.d.ts +10 -0
- package/dist/components/ThemePicker/ThemePicker.d.ts +26 -0
- package/dist/components/ThemePicker/ThemePicker.js +76 -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/TimeInput/TimeInput.d.ts +10 -0
- package/dist/components/TimeInput/TimeInput.js +29 -0
- package/dist/components/TimeInput/TimeInput.js.map +1 -0
- package/dist/components/TimeInput/index.d.ts +2 -0
- package/dist/components/ToggleGroup/ToggleGroup.css.d.ts +4 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +43 -0
- package/dist/components/ToggleGroup/ToggleGroup.js +69 -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 +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +22 -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 +27 -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/examples/Crm.css.d.ts +3 -0
- package/dist/examples/ExampleShell.d.ts +28 -0
- package/dist/examples/Expenses.css.d.ts +2 -0
- package/dist/examples/HiringTracker.css.d.ts +13 -0
- package/dist/examples/SalesPipeline.css.d.ts +11 -0
- package/dist/foundations/Foundations.css.d.ts +12 -0
- package/dist/index.d.ts +66 -0
- package/dist/index.js +67 -0
- package/dist/styles/input.css.d.ts +26 -0
- package/dist/styles/input.styles.js +7 -0
- package/dist/styles/input.styles.js.map +1 -0
- package/dist/styles/shared.css.d.ts +13 -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 +16 -0
- package/dist/theme/fontSize.js.map +1 -0
- package/dist/theme/htmlSetting.d.ts +14 -0
- package/dist/theme/htmlSetting.js +33 -0
- package/dist/theme/htmlSetting.js.map +1 -0
- package/dist/theme/theme.d.ts +29 -0
- package/dist/theme/theme.js +37 -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 +7 -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/themes.css.d.ts +387 -0
- package/dist/tokens.js +4 -0
- package/package.json +111 -4
- package/skills/back-office-kit/SKILL.md +49 -0
- package/skills/back-office-kit/references/artifact-template.html +103 -0
- package/skills/back-office-kit/references/components.md +1470 -0
- package/skills/back-office-kit/references/install.md +210 -0
- package/skills/back-office-kit/references/migrate.md +142 -0
- package/skills/back-office-kit/references/patterns.md +294 -0
- package/skills/back-office-kit/references/testing.md +162 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A user setting kept on `<html data-*>` (so CSS can read it) and remembered in localStorage.
|
|
3
|
+
* Shared by the theme and the text size. Safe to import and read during SSR.
|
|
4
|
+
*/
|
|
5
|
+
export declare function htmlSetting<T extends string>(attribute: 'theme' | 'fontSize', values: readonly T[], storageKey: string, fallback: T): {
|
|
6
|
+
isValid: (value: unknown) => value is T;
|
|
7
|
+
get: () => T;
|
|
8
|
+
set: (value: T, { persist }?: {
|
|
9
|
+
persist?: boolean | undefined;
|
|
10
|
+
}) => void;
|
|
11
|
+
readStored: () => T | undefined;
|
|
12
|
+
subscribe: (notify: () => void) => () => void;
|
|
13
|
+
useSetting: () => readonly [T, (next: T) => void];
|
|
14
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useSyncExternalStore as e } from "react";
|
|
2
|
+
// src/theme/htmlSetting.ts
|
|
3
|
+
function t(t, n, r, i) {
|
|
4
|
+
let a = /* @__PURE__ */ new Set(), o = (e) => n.includes(e), s = () => {
|
|
5
|
+
let e = typeof document > "u" ? void 0 : document.documentElement.dataset[t];
|
|
6
|
+
return o(e) ? e : i;
|
|
7
|
+
}, c = (e, { persist: n = !0 } = {}) => {
|
|
8
|
+
if (document.documentElement.dataset[t] = e, n) try {
|
|
9
|
+
localStorage.setItem(r, e);
|
|
10
|
+
} catch {}
|
|
11
|
+
a.forEach((e) => e());
|
|
12
|
+
}, l = () => {
|
|
13
|
+
try {
|
|
14
|
+
let e = localStorage.getItem(r);
|
|
15
|
+
return o(e) ? e : void 0;
|
|
16
|
+
} catch {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
}, u = (e) => (a.add(e), () => {
|
|
20
|
+
a.delete(e);
|
|
21
|
+
}), d = (e) => c(e);
|
|
22
|
+
return {
|
|
23
|
+
isValid: o,
|
|
24
|
+
get: s,
|
|
25
|
+
set: c,
|
|
26
|
+
readStored: l,
|
|
27
|
+
subscribe: u,
|
|
28
|
+
useSetting: () => [e(u, s, () => i), d]
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export { t as htmlSetting };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=htmlSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"htmlSetting.js","names":["htmlSetting","listeners","isValid","values","value","get","current","attribute","fallback","set","persist","storageKey","notify","readStored","stored","subscribe","setFromHook","next","useSyncExternalStore"],"sources":["../../src/theme/htmlSetting.ts"],"sourcesContent":["import { useSyncExternalStore } from 'react'\n\n/**\n * A user setting kept on `<html data-*>` (so CSS can read it) and remembered in localStorage.\n * Shared by the theme and the text size. Safe to import and read during SSR.\n */\nexport function htmlSetting<T extends string>(\n attribute: 'theme' | 'fontSize',\n values: readonly T[],\n storageKey: string,\n fallback: T,\n) {\n const listeners = new Set<() => void>()\n const isValid = (value: unknown): value is T => values.includes(value as T)\n\n const get = (): T => {\n const current =\n typeof document === 'undefined' ? undefined : document.documentElement.dataset[attribute]\n return isValid(current) ? current : fallback\n }\n\n const set = (value: T, { persist = true } = {}) => {\n document.documentElement.dataset[attribute] = value\n if (persist) {\n try {\n localStorage.setItem(storageKey, value)\n } catch {\n // storage can be unavailable (private mode, sandboxed iframes)\n }\n }\n listeners.forEach((notify) => notify())\n }\n\n const readStored = (): T | undefined => {\n try {\n const stored = localStorage.getItem(storageKey)\n return isValid(stored) ? stored : undefined\n } catch {\n return undefined\n }\n }\n\n const subscribe = (notify: () => void) => {\n listeners.add(notify)\n return () => {\n listeners.delete(notify)\n }\n }\n\n // Module-level, so it's stable; drops extra arguments (e.g. Base UI's event details).\n const setFromHook = (next: T) => set(next)\n const useSetting = () =>\n [useSyncExternalStore(subscribe, get, () => fallback), setFromHook] as const\n\n return { isValid, get, set, readStored, subscribe, useSetting }\n}\n"],"mappings":";;AAMA,SAAgBA,EACd,GACA,GACA,GACA,GACA;CACA,IAAMC,oBAAY,IAAI,IAAgB,GAChCC,KAAW,MAA+BC,EAAO,SAASC,CAAU,GAEpEC,UAAe;EACnB,IAAMC,IACJ,OAAO,WAAa,MAAc,KAAA,IAAY,SAAS,gBAAgB,QAAQC;EACjF,OAAOL,EAAQI,CAAO,IAAIA,IAAUE;CACtC,GAEMC,KAAO,GAAU,EAAE,aAAU,OAAS,CAAC,MAAM;EAEjD,IADA,SAAS,gBAAgB,QAAQF,KAAaH,GAC1CM,GACF,IAAI;GACF,aAAa,QAAQC,GAAYP,CAAK;EACxC,QAAQ,CAER;EAEF,EAAU,SAAS,MAAWQ,EAAO,CAAC;CACxC,GAEMC,UAAkC;EACtC,IAAI;GACF,IAAMC,IAAS,aAAa,QAAQH,CAAU;GAC9C,OAAOT,EAAQY,CAAM,IAAIA,IAAS,KAAA;EACpC,QAAQ;GACN;EACF;CACF,GAEMC,KAAa,OACjBd,EAAU,IAAIW,CAAM,SACP;EACX,EAAU,OAAOA,CAAM;CACzB,IAIII,KAAe,MAAYP,EAAIQ,CAAI;CAIzC,OAAO;EAAE;EAAS;EAAK;EAAK;EAAY;EAAW,kBAFjD,CAACC,EAAqBH,GAAWV,SAAWG,CAAQ,GAAGQ,CAAW;CAEN;AAChE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const THEMES: readonly ["light", "dark", "sand", "system"];
|
|
2
|
+
export type Theme = (typeof THEMES)[number];
|
|
3
|
+
/** What a theme actually looks like right now: `system` resolved via the OS, `sand` is light. */
|
|
4
|
+
export type ColorScheme = 'light' | 'dark';
|
|
5
|
+
/** localStorage key used to remember the user's choice. */
|
|
6
|
+
export declare const THEME_STORAGE_KEY = "bok-theme";
|
|
7
|
+
/** The active theme, read from `<html data-theme>`. Defaults to `system`. */
|
|
8
|
+
export declare const getTheme: () => Theme;
|
|
9
|
+
/** Whether the page currently renders light or dark. Use it to drive libraries with their own dark mode. */
|
|
10
|
+
export declare function getColorScheme(theme?: Theme): ColorScheme;
|
|
11
|
+
/** Sets `<html data-theme>` and remembers the choice (unless `persist` is false). */
|
|
12
|
+
export declare const setTheme: (theme: Theme, options?: {
|
|
13
|
+
persist?: boolean;
|
|
14
|
+
}) => void;
|
|
15
|
+
export interface ApplyStoredThemeOptions {
|
|
16
|
+
/** Used when nothing valid is stored. Defaults to `system`. */
|
|
17
|
+
fallback?: Theme;
|
|
18
|
+
/**
|
|
19
|
+
* Called when nothing valid is stored, e.g. to carry over a choice saved under an app's old key.
|
|
20
|
+
* Return a theme to apply and save it, or `undefined` to use `fallback`.
|
|
21
|
+
*/
|
|
22
|
+
migrate?: () => Theme | undefined;
|
|
23
|
+
}
|
|
24
|
+
/** Applies the saved theme. Call once before the first render to avoid a flash of the wrong theme. */
|
|
25
|
+
export declare function applyStoredTheme(options?: Theme | ApplyStoredThemeOptions): void;
|
|
26
|
+
/** React hook over `getTheme`/`setTheme`. No provider needed. */
|
|
27
|
+
export declare function useTheme(): readonly [Theme, (next: Theme) => void];
|
|
28
|
+
/** The resolved `light`/`dark` scheme, updating on theme changes and OS changes. */
|
|
29
|
+
export declare function useColorScheme(): ColorScheme;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { htmlSetting as e } from "./htmlSetting.js";
|
|
2
|
+
import { useSyncExternalStore as t } from "react";
|
|
3
|
+
// src/theme/theme.ts
|
|
4
|
+
var n = [
|
|
5
|
+
"light",
|
|
6
|
+
"dark",
|
|
7
|
+
"sand",
|
|
8
|
+
"system"
|
|
9
|
+
], r = "bok-theme", i = e("theme", n, r, "system"), a = () => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(prefers-color-scheme: dark)") : null, o = i.get;
|
|
10
|
+
function s(e = o()) {
|
|
11
|
+
return e === "dark" || e === "system" && a()?.matches ? "dark" : "light";
|
|
12
|
+
}
|
|
13
|
+
var c = i.set;
|
|
14
|
+
function l(e = {}) {
|
|
15
|
+
let { fallback: t = "system", migrate: n } = typeof e == "string" ? { fallback: e } : e, r = i.readStored();
|
|
16
|
+
if (r) return c(r, { persist: !1 });
|
|
17
|
+
let a = n?.();
|
|
18
|
+
if (i.isValid(a)) return c(a);
|
|
19
|
+
c(t, { persist: !1 });
|
|
20
|
+
}
|
|
21
|
+
var u = (e) => {
|
|
22
|
+
let t = a();
|
|
23
|
+
t?.addEventListener("change", e);
|
|
24
|
+
let n = i.subscribe(e);
|
|
25
|
+
return () => {
|
|
26
|
+
t?.removeEventListener("change", e), n();
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
function d() {
|
|
30
|
+
return i.useSetting();
|
|
31
|
+
}
|
|
32
|
+
function f() {
|
|
33
|
+
return t(u, () => s(), () => "light");
|
|
34
|
+
}
|
|
35
|
+
export { n as THEMES, r as THEME_STORAGE_KEY, l as applyStoredTheme, s as getColorScheme, o as getTheme, c as setTheme, f as useColorScheme, d as useTheme };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","names":["THEMES","THEME_STORAGE_KEY","store","htmlSetting","darkQuery","getTheme","getColorScheme","theme","setTheme","applyStoredTheme","options","stored","migrated","migrate","fallback","subscribeWithOs","query","notify","unsubscribe","useTheme","useColorScheme","useSyncExternalStore"],"sources":["../../src/theme/theme.ts"],"sourcesContent":["import { useSyncExternalStore } from 'react'\n\nimport { htmlSetting } from './htmlSetting'\n\nexport const THEMES = ['light', 'dark', 'sand', 'system'] as const\nexport type Theme = (typeof THEMES)[number]\n/** What a theme actually looks like right now: `system` resolved via the OS, `sand` is light. */\nexport type ColorScheme = 'light' | 'dark'\n\n/** localStorage key used to remember the user's choice. */\nexport const THEME_STORAGE_KEY = 'bok-theme'\n\nconst store = htmlSetting<Theme>('theme', THEMES, THEME_STORAGE_KEY, 'system')\nconst darkQuery = () =>\n typeof window !== 'undefined' && typeof window.matchMedia === 'function'\n ? window.matchMedia('(prefers-color-scheme: dark)')\n : null\n\n/** The active theme, read from `<html data-theme>`. Defaults to `system`. */\nexport const getTheme: () => Theme = store.get\n\n/** Whether the page currently renders light or dark. Use it to drive libraries with their own dark mode. */\nexport function getColorScheme(theme: Theme = getTheme()): ColorScheme {\n if (theme === 'dark') return 'dark'\n if (theme === 'system') return darkQuery()?.matches ? 'dark' : 'light'\n return 'light'\n}\n\n/** Sets `<html data-theme>` and remembers the choice (unless `persist` is false). */\nexport const setTheme: (theme: Theme, options?: { persist?: boolean }) => void = store.set\n\nexport interface ApplyStoredThemeOptions {\n /** Used when nothing valid is stored. Defaults to `system`. */\n fallback?: Theme\n /**\n * Called when nothing valid is stored, e.g. to carry over a choice saved under an app's old key.\n * Return a theme to apply and save it, or `undefined` to use `fallback`.\n */\n migrate?: () => Theme | undefined\n}\n\n/** Applies the saved theme. Call once before the first render to avoid a flash of the wrong theme. */\nexport function applyStoredTheme(options: Theme | ApplyStoredThemeOptions = {}) {\n const { fallback = 'system', migrate } =\n typeof options === 'string' ? { fallback: options } : options\n const stored = store.readStored()\n if (stored) return setTheme(stored, { persist: false })\n const migrated = migrate?.()\n if (store.isValid(migrated)) return setTheme(migrated)\n setTheme(fallback, { persist: false })\n}\n\nconst subscribeWithOs = (notify: () => void) => {\n const query = darkQuery()\n query?.addEventListener('change', notify)\n const unsubscribe = store.subscribe(notify)\n return () => {\n query?.removeEventListener('change', notify)\n unsubscribe()\n }\n}\n\n/** React hook over `getTheme`/`setTheme`. No provider needed. */\nexport function useTheme(): readonly [Theme, (next: Theme) => void] {\n return store.useSetting()\n}\n\n/** The resolved `light`/`dark` scheme, updating on theme changes and OS changes. */\nexport function useColorScheme(): ColorScheme {\n return useSyncExternalStore<ColorScheme>(\n subscribeWithOs,\n () => getColorScheme(),\n () => 'light',\n )\n}\n"],"mappings":";;;AAIA,IAAaA,IAAS;CAAC;CAAS;CAAQ;CAAQ;AAAQ,GAM3CC,IAAoB,aAE3BC,IAAQC,EAAmB,SAASH,GAAQC,GAAmB,QAAQ,GACvEG,UACJ,OAAO,SAAW,OAAe,OAAO,OAAO,cAAe,aAC1D,OAAO,WAAW,8BAA8B,IAChD,MAGOC,IAAwBH,EAAM;AAG3C,SAAgBI,EAAe,IAAeD,EAAS,GAAgB;CAGrE,OAFIE,MAAU,UACVA,MAAU,YAAiBH,EAAU,CAAC,EAAE,UADf,SAEtB;AACT;AAGA,IAAaI,IAAoEN,EAAM;AAavF,SAAgBO,EAAiB,IAA2C,CAAC,GAAG;CAC9E,IAAM,EAAE,cAAW,UAAU,eAC3B,OAAOC,KAAY,WAAW,EAAE,UAAUA,EAAQ,IAAIA,GAClDC,IAAST,EAAM,WAAW;CAChC,IAAIS,GAAQ,OAAOH,EAASG,GAAQ,EAAE,SAAS,GAAM,CAAC;CACtD,IAAMC,IAAWC,IAAU;CAC3B,IAAIX,EAAM,QAAQU,CAAQ,GAAG,OAAOJ,EAASI,CAAQ;CACrD,EAASE,GAAU,EAAE,SAAS,GAAM,CAAC;AACvC;AAEA,IAAMC,KAAmB,MAAuB;CAC9C,IAAMC,IAAQZ,EAAU;CACxB,GAAO,iBAAiB,UAAUa,CAAM;CACxC,IAAMC,IAAchB,EAAM,UAAUe,CAAM;CAC1C,aAAa;EAEX,AADAD,GAAO,oBAAoB,UAAUC,CAAM,GAC3CC,EAAY;CACd;AACF;AAGA,SAAgBC,IAAoD;CAClE,OAAOjB,EAAM,WAAW;AAC1B;AAGA,SAAgBkB,IAA8B;CAC5C,OAAOC,EACLN,SACMT,EAAe,SACf,OACR;AACF"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
declare const color: {
|
|
2
|
+
bg: string;
|
|
3
|
+
canvas: string;
|
|
4
|
+
surface: string;
|
|
5
|
+
surfaceSunken: string;
|
|
6
|
+
surfaceHover: string;
|
|
7
|
+
border: string;
|
|
8
|
+
borderSubtle: string;
|
|
9
|
+
borderStrong: string;
|
|
10
|
+
ink: string;
|
|
11
|
+
inkMuted: string;
|
|
12
|
+
inkSubtle: string;
|
|
13
|
+
primary: string;
|
|
14
|
+
primaryHover: string;
|
|
15
|
+
onPrimary: string;
|
|
16
|
+
accent: string;
|
|
17
|
+
accentSubtle: string;
|
|
18
|
+
accentInk: string;
|
|
19
|
+
success: string;
|
|
20
|
+
successSubtle: string;
|
|
21
|
+
successInk: string;
|
|
22
|
+
warning: string;
|
|
23
|
+
warningSubtle: string;
|
|
24
|
+
warningInk: string;
|
|
25
|
+
warningFill: string;
|
|
26
|
+
danger: string;
|
|
27
|
+
dangerSubtle: string;
|
|
28
|
+
dangerInk: string;
|
|
29
|
+
dangerFill: string;
|
|
30
|
+
info: string;
|
|
31
|
+
infoSubtle: string;
|
|
32
|
+
infoInk: string;
|
|
33
|
+
infoBorder: string;
|
|
34
|
+
neutral: string;
|
|
35
|
+
neutralSubtle: string;
|
|
36
|
+
neutralInk: string;
|
|
37
|
+
highlight: string;
|
|
38
|
+
highlightSubtle: string;
|
|
39
|
+
highlightInk: string;
|
|
40
|
+
highlightBorder: string;
|
|
41
|
+
userBubble: string;
|
|
42
|
+
focusRing: string;
|
|
43
|
+
codeBg: string;
|
|
44
|
+
codeInk: string;
|
|
45
|
+
overlay: string;
|
|
46
|
+
railBg: string;
|
|
47
|
+
railBorder: string;
|
|
48
|
+
railInk: string;
|
|
49
|
+
railInkMuted: string;
|
|
50
|
+
railHover: string;
|
|
51
|
+
railActiveBg: string;
|
|
52
|
+
railActiveInk: string;
|
|
53
|
+
};
|
|
54
|
+
/** Semantic design tokens, exposed as `--bok-*` CSS custom properties (e.g. `--bok-ink`). */
|
|
55
|
+
export declare const vars: {
|
|
56
|
+
color: {
|
|
57
|
+
bg: `var(--${string})`;
|
|
58
|
+
canvas: `var(--${string})`;
|
|
59
|
+
surface: `var(--${string})`;
|
|
60
|
+
surfaceSunken: `var(--${string})`;
|
|
61
|
+
surfaceHover: `var(--${string})`;
|
|
62
|
+
border: `var(--${string})`;
|
|
63
|
+
borderSubtle: `var(--${string})`;
|
|
64
|
+
borderStrong: `var(--${string})`;
|
|
65
|
+
ink: `var(--${string})`;
|
|
66
|
+
inkMuted: `var(--${string})`;
|
|
67
|
+
inkSubtle: `var(--${string})`;
|
|
68
|
+
primary: `var(--${string})`;
|
|
69
|
+
primaryHover: `var(--${string})`;
|
|
70
|
+
onPrimary: `var(--${string})`;
|
|
71
|
+
accent: `var(--${string})`;
|
|
72
|
+
accentSubtle: `var(--${string})`;
|
|
73
|
+
accentInk: `var(--${string})`;
|
|
74
|
+
success: `var(--${string})`;
|
|
75
|
+
successSubtle: `var(--${string})`;
|
|
76
|
+
successInk: `var(--${string})`;
|
|
77
|
+
warning: `var(--${string})`;
|
|
78
|
+
warningSubtle: `var(--${string})`;
|
|
79
|
+
warningInk: `var(--${string})`;
|
|
80
|
+
warningFill: `var(--${string})`;
|
|
81
|
+
danger: `var(--${string})`;
|
|
82
|
+
dangerSubtle: `var(--${string})`;
|
|
83
|
+
dangerInk: `var(--${string})`;
|
|
84
|
+
dangerFill: `var(--${string})`;
|
|
85
|
+
info: `var(--${string})`;
|
|
86
|
+
infoSubtle: `var(--${string})`;
|
|
87
|
+
infoInk: `var(--${string})`;
|
|
88
|
+
infoBorder: `var(--${string})`;
|
|
89
|
+
neutral: `var(--${string})`;
|
|
90
|
+
neutralSubtle: `var(--${string})`;
|
|
91
|
+
neutralInk: `var(--${string})`;
|
|
92
|
+
highlight: `var(--${string})`;
|
|
93
|
+
highlightSubtle: `var(--${string})`;
|
|
94
|
+
highlightInk: `var(--${string})`;
|
|
95
|
+
highlightBorder: `var(--${string})`;
|
|
96
|
+
userBubble: `var(--${string})`;
|
|
97
|
+
focusRing: `var(--${string})`;
|
|
98
|
+
codeBg: `var(--${string})`;
|
|
99
|
+
codeInk: `var(--${string})`;
|
|
100
|
+
overlay: `var(--${string})`;
|
|
101
|
+
railBg: `var(--${string})`;
|
|
102
|
+
railBorder: `var(--${string})`;
|
|
103
|
+
railInk: `var(--${string})`;
|
|
104
|
+
railInkMuted: `var(--${string})`;
|
|
105
|
+
railHover: `var(--${string})`;
|
|
106
|
+
railActiveBg: `var(--${string})`;
|
|
107
|
+
railActiveInk: `var(--${string})`;
|
|
108
|
+
};
|
|
109
|
+
font: {
|
|
110
|
+
sans: `var(--${string})`;
|
|
111
|
+
mono: `var(--${string})`;
|
|
112
|
+
};
|
|
113
|
+
shadow: {
|
|
114
|
+
sm: `var(--${string})`;
|
|
115
|
+
md: `var(--${string})`;
|
|
116
|
+
lg: `var(--${string})`;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
export type ColorToken = keyof typeof color;
|
|
120
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// src/tokens/contract.css.ts
|
|
2
|
+
var e = {
|
|
3
|
+
color: {
|
|
4
|
+
bg: "var(--bok-bg)",
|
|
5
|
+
canvas: "var(--bok-canvas)",
|
|
6
|
+
surface: "var(--bok-surface)",
|
|
7
|
+
surfaceSunken: "var(--bok-surface-sunken)",
|
|
8
|
+
surfaceHover: "var(--bok-surface-hover)",
|
|
9
|
+
border: "var(--bok-border)",
|
|
10
|
+
borderSubtle: "var(--bok-border-subtle)",
|
|
11
|
+
borderStrong: "var(--bok-border-strong)",
|
|
12
|
+
ink: "var(--bok-ink)",
|
|
13
|
+
inkMuted: "var(--bok-ink-muted)",
|
|
14
|
+
inkSubtle: "var(--bok-ink-subtle)",
|
|
15
|
+
primary: "var(--bok-primary)",
|
|
16
|
+
primaryHover: "var(--bok-primary-hover)",
|
|
17
|
+
onPrimary: "var(--bok-on-primary)",
|
|
18
|
+
accent: "var(--bok-accent)",
|
|
19
|
+
accentSubtle: "var(--bok-accent-subtle)",
|
|
20
|
+
accentInk: "var(--bok-accent-ink)",
|
|
21
|
+
success: "var(--bok-success)",
|
|
22
|
+
successSubtle: "var(--bok-success-subtle)",
|
|
23
|
+
successInk: "var(--bok-success-ink)",
|
|
24
|
+
warning: "var(--bok-warning)",
|
|
25
|
+
warningSubtle: "var(--bok-warning-subtle)",
|
|
26
|
+
warningInk: "var(--bok-warning-ink)",
|
|
27
|
+
warningFill: "var(--bok-warning-fill)",
|
|
28
|
+
danger: "var(--bok-danger)",
|
|
29
|
+
dangerSubtle: "var(--bok-danger-subtle)",
|
|
30
|
+
dangerInk: "var(--bok-danger-ink)",
|
|
31
|
+
dangerFill: "var(--bok-danger-fill)",
|
|
32
|
+
info: "var(--bok-info)",
|
|
33
|
+
infoSubtle: "var(--bok-info-subtle)",
|
|
34
|
+
infoInk: "var(--bok-info-ink)",
|
|
35
|
+
infoBorder: "var(--bok-info-border)",
|
|
36
|
+
neutral: "var(--bok-neutral)",
|
|
37
|
+
neutralSubtle: "var(--bok-neutral-subtle)",
|
|
38
|
+
neutralInk: "var(--bok-neutral-ink)",
|
|
39
|
+
highlight: "var(--bok-highlight)",
|
|
40
|
+
highlightSubtle: "var(--bok-highlight-subtle)",
|
|
41
|
+
highlightInk: "var(--bok-highlight-ink)",
|
|
42
|
+
highlightBorder: "var(--bok-highlight-border)",
|
|
43
|
+
userBubble: "var(--bok-user-bubble)",
|
|
44
|
+
focusRing: "var(--bok-focus-ring)",
|
|
45
|
+
codeBg: "var(--bok-code-bg)",
|
|
46
|
+
codeInk: "var(--bok-code-ink)",
|
|
47
|
+
overlay: "var(--bok-overlay)",
|
|
48
|
+
railBg: "var(--bok-rail-bg)",
|
|
49
|
+
railBorder: "var(--bok-rail-border)",
|
|
50
|
+
railInk: "var(--bok-rail-ink)",
|
|
51
|
+
railInkMuted: "var(--bok-rail-ink-muted)",
|
|
52
|
+
railHover: "var(--bok-rail-hover)",
|
|
53
|
+
railActiveBg: "var(--bok-rail-active-bg)",
|
|
54
|
+
railActiveInk: "var(--bok-rail-active-ink)"
|
|
55
|
+
},
|
|
56
|
+
font: {
|
|
57
|
+
sans: "var(--bok-font-sans)",
|
|
58
|
+
mono: "var(--bok-font-mono)"
|
|
59
|
+
},
|
|
60
|
+
shadow: {
|
|
61
|
+
sm: "var(--bok-shadow-sm)",
|
|
62
|
+
md: "var(--bok-shadow-md)",
|
|
63
|
+
lg: "var(--bok-shadow-lg)"
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
export { e as vars };
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=contract.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.styles.js","names":["vars"],"sources":["../../src/tokens/contract.css.ts"],"sourcesContent":["import { createGlobalThemeContract } from '@vanilla-extract/css'\n\nconst kebab = (s: string) => s.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)\n\nconst color = {\n bg: '',\n canvas: '',\n surface: '',\n surfaceSunken: '',\n surfaceHover: '',\n border: '',\n borderSubtle: '',\n borderStrong: '',\n ink: '',\n inkMuted: '',\n inkSubtle: '',\n primary: '',\n primaryHover: '',\n onPrimary: '',\n accent: '',\n accentSubtle: '',\n accentInk: '',\n success: '',\n successSubtle: '',\n successInk: '',\n warning: '',\n warningSubtle: '',\n warningInk: '',\n warningFill: '',\n danger: '',\n dangerSubtle: '',\n dangerInk: '',\n dangerFill: '',\n info: '',\n infoSubtle: '',\n infoInk: '',\n infoBorder: '',\n neutral: '',\n neutralSubtle: '',\n neutralInk: '',\n highlight: '',\n highlightSubtle: '',\n highlightInk: '',\n highlightBorder: '',\n userBubble: '',\n focusRing: '',\n codeBg: '',\n codeInk: '',\n overlay: '',\n railBg: '',\n railBorder: '',\n railInk: '',\n railInkMuted: '',\n railHover: '',\n railActiveBg: '',\n railActiveInk: '',\n}\n\n/** Semantic design tokens, exposed as `--bok-*` CSS custom properties (e.g. `--bok-ink`). */\nexport const vars = createGlobalThemeContract(\n {\n color,\n font: { sans: '', mono: '' },\n shadow: { sm: '', md: '', lg: '' },\n },\n (_value, path) => {\n const [group, key = ''] = path\n return group === 'color' ? `bok-${kebab(key)}` : `bok-${group}-${kebab(key)}`\n },\n)\n\nexport type ColorToken = keyof typeof color\n"],"mappings":""}
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** `@15gifts/back-office-kit/tokens`: for apps that use Vanilla Extract and want to style their own code with our tokens. */
|
|
2
|
+
export { vars } from './contract.css';
|
|
3
|
+
export type { ColorToken } from './contract.css';
|
|
4
|
+
export { palette } from './palette';
|
|
5
|
+
export type { PaletteColor } from './palette';
|
|
6
|
+
export { space, fontSize, fontWeight, radius, lineHeight, zIndex } from './scale';
|
|
7
|
+
export type { Space } from './scale';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Humara brand palette (humara.com). Components never use these directly, only through semantic tokens. */
|
|
2
|
+
export declare const palette: {
|
|
3
|
+
readonly darkForest: "#023a34";
|
|
4
|
+
readonly forest: "#034a42";
|
|
5
|
+
readonly mint: "#1cf6b5";
|
|
6
|
+
readonly darkMint: "#1bd49d";
|
|
7
|
+
readonly lime: "#dced48";
|
|
8
|
+
readonly orange: "#ff6e4c";
|
|
9
|
+
readonly yellow: "#fff07c";
|
|
10
|
+
readonly sand300: "#d4d2c5";
|
|
11
|
+
readonly sand200: "#edede8";
|
|
12
|
+
readonly sand100: "#f4f4f0";
|
|
13
|
+
readonly storm300: "#a1adad";
|
|
14
|
+
readonly storm200: "#e3e6e6";
|
|
15
|
+
};
|
|
16
|
+
export type PaletteColor = keyof typeof palette;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/tokens/palette.ts
|
|
2
|
+
var e = {
|
|
3
|
+
darkForest: "#023a34",
|
|
4
|
+
forest: "#034a42",
|
|
5
|
+
mint: "#1cf6b5",
|
|
6
|
+
darkMint: "#1bd49d",
|
|
7
|
+
lime: "#dced48",
|
|
8
|
+
orange: "#ff6e4c",
|
|
9
|
+
yellow: "#fff07c",
|
|
10
|
+
sand300: "#d4d2c5",
|
|
11
|
+
sand200: "#edede8",
|
|
12
|
+
sand100: "#f4f4f0",
|
|
13
|
+
storm300: "#a1adad",
|
|
14
|
+
storm200: "#e3e6e6"
|
|
15
|
+
};
|
|
16
|
+
export { e as palette };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=palette.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette.js","names":["palette"],"sources":["../../src/tokens/palette.ts"],"sourcesContent":["/** Humara brand palette (humara.com). Components never use these directly, only through semantic tokens. */\nexport const palette = {\n darkForest: '#023a34',\n forest: '#034a42',\n mint: '#1cf6b5',\n darkMint: '#1bd49d',\n lime: '#dced48',\n orange: '#ff6e4c',\n yellow: '#fff07c',\n sand300: '#d4d2c5',\n sand200: '#edede8',\n sand100: '#f4f4f0',\n storm300: '#a1adad',\n storm200: '#e3e6e6',\n} as const\n\nexport type PaletteColor = keyof typeof palette\n"],"mappings":";AACA,IAAaA,IAAU;CACrB,YAAY;CACZ,QAAQ;CACR,MAAM;CACN,UAAU;CACV,MAAM;CACN,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,SAAS;CACT,SAAS;CACT,UAAU;CACV,UAAU;AACZ"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/** Keyed in 4px steps (`'2'` is 8px). */
|
|
2
|
+
export declare const space: {
|
|
3
|
+
readonly '0': "0";
|
|
4
|
+
readonly '0.5': string;
|
|
5
|
+
readonly '1': string;
|
|
6
|
+
readonly '1.5': string;
|
|
7
|
+
readonly '2': string;
|
|
8
|
+
readonly '2.5': string;
|
|
9
|
+
readonly '3': string;
|
|
10
|
+
readonly '4': string;
|
|
11
|
+
readonly '5': string;
|
|
12
|
+
readonly '6': string;
|
|
13
|
+
readonly '8': string;
|
|
14
|
+
readonly '10': string;
|
|
15
|
+
readonly '12': string;
|
|
16
|
+
};
|
|
17
|
+
export declare const fontSize: {
|
|
18
|
+
readonly xs: string;
|
|
19
|
+
readonly sm: string;
|
|
20
|
+
readonly md: string;
|
|
21
|
+
readonly lg: string;
|
|
22
|
+
readonly xl: string;
|
|
23
|
+
readonly '2xl': string;
|
|
24
|
+
readonly '3xl': string;
|
|
25
|
+
};
|
|
26
|
+
export declare const fontWeight: {
|
|
27
|
+
readonly normal: 400;
|
|
28
|
+
readonly medium: 500;
|
|
29
|
+
readonly semibold: 600;
|
|
30
|
+
};
|
|
31
|
+
export declare const radius: {
|
|
32
|
+
readonly sm: string;
|
|
33
|
+
readonly md: string;
|
|
34
|
+
readonly lg: string;
|
|
35
|
+
readonly xl: string;
|
|
36
|
+
readonly '2xl': string;
|
|
37
|
+
readonly full: "999px";
|
|
38
|
+
};
|
|
39
|
+
export declare const lineHeight: {
|
|
40
|
+
readonly tight: 1.2;
|
|
41
|
+
readonly normal: 1.5;
|
|
42
|
+
};
|
|
43
|
+
export type Space = keyof typeof space;
|
|
44
|
+
/** Stacking order. Overlays sit above sticky chrome; popups above overlays; tooltips on top. */
|
|
45
|
+
export declare const zIndex: {
|
|
46
|
+
readonly sticky: 20;
|
|
47
|
+
readonly rail: 30;
|
|
48
|
+
readonly overlay: 1000;
|
|
49
|
+
readonly popover: 1100;
|
|
50
|
+
readonly tooltip: 1200;
|
|
51
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// src/tokens/scale.ts
|
|
2
|
+
var e = (e) => `${+(e / 16).toFixed(4)}rem`, t = {
|
|
3
|
+
0: "0",
|
|
4
|
+
"0.5": e(2),
|
|
5
|
+
1: e(4),
|
|
6
|
+
"1.5": e(6),
|
|
7
|
+
2: e(8),
|
|
8
|
+
"2.5": e(10),
|
|
9
|
+
3: e(12),
|
|
10
|
+
4: e(16),
|
|
11
|
+
5: e(20),
|
|
12
|
+
6: e(24),
|
|
13
|
+
8: e(32),
|
|
14
|
+
10: e(40),
|
|
15
|
+
12: e(48)
|
|
16
|
+
}, n = {
|
|
17
|
+
xs: e(12),
|
|
18
|
+
sm: e(13),
|
|
19
|
+
md: e(14),
|
|
20
|
+
lg: e(16),
|
|
21
|
+
xl: e(20),
|
|
22
|
+
"2xl": e(24),
|
|
23
|
+
"3xl": e(30)
|
|
24
|
+
}, r = {
|
|
25
|
+
normal: 400,
|
|
26
|
+
medium: 500,
|
|
27
|
+
semibold: 600
|
|
28
|
+
}, i = {
|
|
29
|
+
sm: e(4),
|
|
30
|
+
md: e(6),
|
|
31
|
+
lg: e(8),
|
|
32
|
+
xl: e(12),
|
|
33
|
+
"2xl": e(16),
|
|
34
|
+
full: "999px"
|
|
35
|
+
}, a = {
|
|
36
|
+
tight: 1.2,
|
|
37
|
+
normal: 1.5
|
|
38
|
+
}, o = {
|
|
39
|
+
sticky: 20,
|
|
40
|
+
rail: 30,
|
|
41
|
+
overlay: 1e3,
|
|
42
|
+
popover: 1100,
|
|
43
|
+
tooltip: 1200
|
|
44
|
+
};
|
|
45
|
+
export { n as fontSize, r as fontWeight, a as lineHeight, i as radius, t as space, o as zIndex };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=scale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scale.js","names":["rem","px","space","fontSize","fontWeight","radius","lineHeight","zIndex"],"sources":["../../src/tokens/scale.ts"],"sourcesContent":["/** Rem values assume the browser default 16px root, so the library works in any app. */\nconst rem = (px: number) => `${+(px / 16).toFixed(4)}rem`\n\n/** Keyed in 4px steps (`'2'` is 8px). */\nexport const space = {\n '0': '0',\n '0.5': rem(2),\n '1': rem(4),\n '1.5': rem(6),\n '2': rem(8),\n '2.5': rem(10),\n '3': rem(12),\n '4': rem(16),\n '5': rem(20),\n '6': rem(24),\n '8': rem(32),\n '10': rem(40),\n '12': rem(48),\n} as const\n\nexport const fontSize = {\n xs: rem(12),\n sm: rem(13),\n md: rem(14),\n lg: rem(16),\n xl: rem(20),\n '2xl': rem(24),\n '3xl': rem(30),\n} as const\n\nexport const fontWeight = { normal: 400, medium: 500, semibold: 600 } as const\n\nexport const radius = {\n sm: rem(4),\n md: rem(6),\n lg: rem(8),\n xl: rem(12),\n '2xl': rem(16),\n full: '999px',\n} as const\n\nexport const lineHeight = { tight: 1.2, normal: 1.5 } as const\n\nexport type Space = keyof typeof space\n\n/** Stacking order. Overlays sit above sticky chrome; popups above overlays; tooltips on top. */\nexport const zIndex = {\n sticky: 20,\n rail: 30,\n overlay: 1000,\n popover: 1100,\n tooltip: 1200,\n} as const\n"],"mappings":";AACA,IAAMA,KAAO,MAAe,GAAG,EAAEC,IAAK,GAAA,CAAI,QAAQ,CAAC,EAAE,MAGxCC,IAAQ;CACnB,GAAK;CACL,OAAOF,EAAI,CAAC;CACZ,GAAKA,EAAI,CAAC;CACV,OAAOA,EAAI,CAAC;CACZ,GAAKA,EAAI,CAAC;CACV,OAAOA,EAAI,EAAE;CACb,GAAKA,EAAI,EAAE;CACX,GAAKA,EAAI,EAAE;CACX,GAAKA,EAAI,EAAE;CACX,GAAKA,EAAI,EAAE;CACX,GAAKA,EAAI,EAAE;CACX,IAAMA,EAAI,EAAE;CACZ,IAAMA,EAAI,EAAE;AACd,GAEaG,IAAW;CACtB,IAAIH,EAAI,EAAE;CACV,IAAIA,EAAI,EAAE;CACV,IAAIA,EAAI,EAAE;CACV,IAAIA,EAAI,EAAE;CACV,IAAIA,EAAI,EAAE;CACV,OAAOA,EAAI,EAAE;CACb,OAAOA,EAAI,EAAE;AACf,GAEaI,IAAa;CAAE,QAAQ;CAAK,QAAQ;CAAK,UAAU;AAAI,GAEvDC,IAAS;CACpB,IAAIL,EAAI,CAAC;CACT,IAAIA,EAAI,CAAC;CACT,IAAIA,EAAI,CAAC;CACT,IAAIA,EAAI,EAAE;CACV,OAAOA,EAAI,EAAE;CACb,MAAM;AACR,GAEaM,IAAa;CAAE,OAAO;CAAK,QAAQ;AAAI,GAKvCC,IAAS;CACpB,QAAQ;CACR,MAAM;CACN,SAAS;CACT,SAAS;CACT,SAAS;AACX"}
|