@mitcsutt/kiln-ui 0.1.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 +21 -0
- package/README.md +73 -0
- package/dist/assets/fonts/big-shoulders-latin-ext-standard-normal.woff2 +0 -0
- package/dist/assets/fonts/big-shoulders-latin-standard-normal.woff2 +0 -0
- package/dist/assets/fonts/bricolage-grotesque-latin-ext-standard-normal.woff2 +0 -0
- package/dist/assets/fonts/bricolage-grotesque-latin-standard-normal.woff2 +0 -0
- package/dist/assets/fonts/licenses/big-shoulders.txt +93 -0
- package/dist/assets/fonts/licenses/bricolage-grotesque.txt +93 -0
- package/dist/assets/fonts/licenses/martian-mono.txt +93 -0
- package/dist/assets/fonts/licenses/newsreader.txt +93 -0
- package/dist/assets/fonts/licenses/schibsted-grotesk.txt +93 -0
- package/dist/assets/fonts/martian-mono-latin-ext-standard-normal.woff2 +0 -0
- package/dist/assets/fonts/martian-mono-latin-standard-normal.woff2 +0 -0
- package/dist/assets/fonts/newsreader-latin-ext-standard-italic.woff2 +0 -0
- package/dist/assets/fonts/newsreader-latin-ext-standard-normal.woff2 +0 -0
- package/dist/assets/fonts/newsreader-latin-standard-italic.woff2 +0 -0
- package/dist/assets/fonts/newsreader-latin-standard-normal.woff2 +0 -0
- package/dist/assets/fonts/schibsted-grotesk-latin-ext-wght-italic.woff2 +0 -0
- package/dist/assets/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2 +0 -0
- package/dist/assets/fonts/schibsted-grotesk-latin-wght-italic.woff2 +0 -0
- package/dist/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2 +0 -0
- package/dist/components/actions/Button/Button.d.ts +26 -0
- package/dist/components/actions/Button/Button.js +47 -0
- package/dist/components/actions/Button/Button.js.map +1 -0
- package/dist/components/actions/Button/Button.module.js +10 -0
- package/dist/components/actions/Button/Button.module.js.map +1 -0
- package/dist/components/actions/Button/index.d.ts +2 -0
- package/dist/components/actions/ChipGroup/ChipGroup.d.ts +50 -0
- package/dist/components/actions/ChipGroup/ChipGroup.js +104 -0
- package/dist/components/actions/ChipGroup/ChipGroup.js.map +1 -0
- package/dist/components/actions/ChipGroup/ChipGroup.module.js +6 -0
- package/dist/components/actions/ChipGroup/ChipGroup.module.js.map +1 -0
- package/dist/components/actions/ChipGroup/index.d.ts +2 -0
- package/dist/components/actions/IconButton/IconButton.d.ts +28 -0
- package/dist/components/actions/IconButton/IconButton.js +28 -0
- package/dist/components/actions/IconButton/IconButton.js.map +1 -0
- package/dist/components/actions/IconButton/IconButton.module.js +9 -0
- package/dist/components/actions/IconButton/IconButton.module.js.map +1 -0
- package/dist/components/actions/IconButton/index.d.ts +2 -0
- package/dist/components/actions/ModeToggle/ModeToggle.d.ts +28 -0
- package/dist/components/actions/ModeToggle/ModeToggle.js +63 -0
- package/dist/components/actions/ModeToggle/ModeToggle.js.map +1 -0
- package/dist/components/actions/ModeToggle/index.d.ts +2 -0
- package/dist/components/actions/SegmentedControl/SegmentedControl.d.ts +46 -0
- package/dist/components/actions/SegmentedControl/SegmentedControl.js +109 -0
- package/dist/components/actions/SegmentedControl/SegmentedControl.js.map +1 -0
- package/dist/components/actions/SegmentedControl/SegmentedControl.module.js +13 -0
- package/dist/components/actions/SegmentedControl/SegmentedControl.module.js.map +1 -0
- package/dist/components/actions/SegmentedControl/index.d.ts +2 -0
- package/dist/components/actions/ToggleChip/ToggleChip.d.ts +19 -0
- package/dist/components/actions/ToggleChip/ToggleChip.js +34 -0
- package/dist/components/actions/ToggleChip/ToggleChip.js.map +1 -0
- package/dist/components/actions/ToggleChip/chip.module.js +10 -0
- package/dist/components/actions/ToggleChip/chip.module.js.map +1 -0
- package/dist/components/actions/ToggleChip/index.d.ts +2 -0
- package/dist/components/display/Avatar/Avatar.d.ts +27 -0
- package/dist/components/display/Avatar/Avatar.js +39 -0
- package/dist/components/display/Avatar/Avatar.js.map +1 -0
- package/dist/components/display/Avatar/Avatar.module.js +10 -0
- package/dist/components/display/Avatar/Avatar.module.js.map +1 -0
- package/dist/components/display/Avatar/AvatarContext.d.ts +3 -0
- package/dist/components/display/Avatar/AvatarContext.js +7 -0
- package/dist/components/display/Avatar/AvatarContext.js.map +1 -0
- package/dist/components/display/Avatar/avatarUtils.d.ts +10 -0
- package/dist/components/display/Avatar/avatarUtils.js +14 -0
- package/dist/components/display/Avatar/avatarUtils.js.map +1 -0
- package/dist/components/display/Avatar/index.d.ts +5 -0
- package/dist/components/display/AvatarGroup/AvatarGroup.d.ts +16 -0
- package/dist/components/display/AvatarGroup/AvatarGroup.js +33 -0
- package/dist/components/display/AvatarGroup/AvatarGroup.js.map +1 -0
- package/dist/components/display/AvatarGroup/AvatarGroup.module.js +9 -0
- package/dist/components/display/AvatarGroup/AvatarGroup.module.js.map +1 -0
- package/dist/components/display/AvatarGroup/index.d.ts +2 -0
- package/dist/components/display/Badge/Badge.d.ts +18 -0
- package/dist/components/display/Badge/Badge.js +23 -0
- package/dist/components/display/Badge/Badge.js.map +1 -0
- package/dist/components/display/Badge/Badge.module.js +9 -0
- package/dist/components/display/Badge/Badge.module.js.map +1 -0
- package/dist/components/display/Badge/index.d.ts +2 -0
- package/dist/components/display/Card/Card.d.ts +46 -0
- package/dist/components/display/Card/Card.js +78 -0
- package/dist/components/display/Card/Card.js.map +1 -0
- package/dist/components/display/Card/Card.module.js +15 -0
- package/dist/components/display/Card/Card.module.js.map +1 -0
- package/dist/components/display/Card/index.d.ts +2 -0
- package/dist/components/display/CodeBlock/CodeBlock.d.ts +26 -0
- package/dist/components/display/CodeBlock/CodeBlock.js +85 -0
- package/dist/components/display/CodeBlock/CodeBlock.js.map +1 -0
- package/dist/components/display/CodeBlock/CodeBlock.module.js +16 -0
- package/dist/components/display/CodeBlock/CodeBlock.module.js.map +1 -0
- package/dist/components/display/CodeBlock/index.d.ts +2 -0
- package/dist/components/display/DataList/DataList.d.ts +19 -0
- package/dist/components/display/DataList/DataList.js +31 -0
- package/dist/components/display/DataList/DataList.js.map +1 -0
- package/dist/components/display/DataList/DataList.module.js +11 -0
- package/dist/components/display/DataList/DataList.module.js.map +1 -0
- package/dist/components/display/DataList/index.d.ts +2 -0
- package/dist/components/display/Delta/Delta.d.ts +23 -0
- package/dist/components/display/Delta/Delta.js +42 -0
- package/dist/components/display/Delta/Delta.js.map +1 -0
- package/dist/components/display/Delta/Delta.module.js +9 -0
- package/dist/components/display/Delta/Delta.module.js.map +1 -0
- package/dist/components/display/Delta/index.d.ts +2 -0
- package/dist/components/display/EmptyState/EmptyState.d.ts +28 -0
- package/dist/components/display/EmptyState/EmptyState.js +42 -0
- package/dist/components/display/EmptyState/EmptyState.js.map +1 -0
- package/dist/components/display/EmptyState/EmptyState.module.js +14 -0
- package/dist/components/display/EmptyState/EmptyState.module.js.map +1 -0
- package/dist/components/display/EmptyState/index.d.ts +2 -0
- package/dist/components/display/List/List.d.ts +33 -0
- package/dist/components/display/List/List.js +64 -0
- package/dist/components/display/List/List.js.map +1 -0
- package/dist/components/display/List/List.module.js +14 -0
- package/dist/components/display/List/List.module.js.map +1 -0
- package/dist/components/display/List/index.d.ts +2 -0
- package/dist/components/display/Marquee/Marquee.d.ts +46 -0
- package/dist/components/display/Marquee/Marquee.js +95 -0
- package/dist/components/display/Marquee/Marquee.js.map +1 -0
- package/dist/components/display/Marquee/Marquee.module.js +19 -0
- package/dist/components/display/Marquee/Marquee.module.js.map +1 -0
- package/dist/components/display/Marquee/index.d.ts +2 -0
- package/dist/components/display/Media/Media.d.ts +30 -0
- package/dist/components/display/Media/Media.js +47 -0
- package/dist/components/display/Media/Media.js.map +1 -0
- package/dist/components/display/Media/Media.module.js +12 -0
- package/dist/components/display/Media/Media.module.js.map +1 -0
- package/dist/components/display/Media/index.d.ts +2 -0
- package/dist/components/display/Meter/Meter.d.ts +32 -0
- package/dist/components/display/Meter/Meter.js +56 -0
- package/dist/components/display/Meter/Meter.js.map +1 -0
- package/dist/components/display/Meter/Meter.module.js +14 -0
- package/dist/components/display/Meter/Meter.module.js.map +1 -0
- package/dist/components/display/Meter/index.d.ts +4 -0
- package/dist/components/display/Meter/meterTone.d.ts +15 -0
- package/dist/components/display/Meter/meterTone.js +9 -0
- package/dist/components/display/Meter/meterTone.js.map +1 -0
- package/dist/components/display/Progress/Progress.d.ts +27 -0
- package/dist/components/display/Progress/Progress.js +45 -0
- package/dist/components/display/Progress/Progress.js.map +1 -0
- package/dist/components/display/Progress/Progress.module.js +14 -0
- package/dist/components/display/Progress/Progress.module.js.map +1 -0
- package/dist/components/display/Progress/index.d.ts +2 -0
- package/dist/components/display/Skeleton/Skeleton.d.ts +31 -0
- package/dist/components/display/Skeleton/Skeleton.js +60 -0
- package/dist/components/display/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/display/Skeleton/Skeleton.module.js +12 -0
- package/dist/components/display/Skeleton/Skeleton.module.js.map +1 -0
- package/dist/components/display/Skeleton/index.d.ts +2 -0
- package/dist/components/display/Stamp/Stamp.d.ts +25 -0
- package/dist/components/display/Stamp/Stamp.js +21 -0
- package/dist/components/display/Stamp/Stamp.js.map +1 -0
- package/dist/components/display/Stamp/Stamp.module.js +6 -0
- package/dist/components/display/Stamp/Stamp.module.js.map +1 -0
- package/dist/components/display/Stamp/index.d.ts +2 -0
- package/dist/components/display/Stat/Stat.d.ts +40 -0
- package/dist/components/display/Stat/Stat.js +46 -0
- package/dist/components/display/Stat/Stat.js.map +1 -0
- package/dist/components/display/Stat/Stat.module.js +13 -0
- package/dist/components/display/Stat/Stat.module.js.map +1 -0
- package/dist/components/display/Stat/index.d.ts +2 -0
- package/dist/components/display/Table/Table.d.ts +64 -0
- package/dist/components/display/Table/Table.js +124 -0
- package/dist/components/display/Table/Table.js.map +1 -0
- package/dist/components/display/Table/Table.module.js +18 -0
- package/dist/components/display/Table/Table.module.js.map +1 -0
- package/dist/components/display/Table/index.d.ts +2 -0
- package/dist/components/display/Tag/Tag.d.ts +21 -0
- package/dist/components/display/Tag/Tag.js +36 -0
- package/dist/components/display/Tag/Tag.js.map +1 -0
- package/dist/components/display/Tag/Tag.module.js +10 -0
- package/dist/components/display/Tag/Tag.module.js.map +1 -0
- package/dist/components/display/Tag/index.d.ts +2 -0
- package/dist/components/feedback/Alert/Alert.d.ts +33 -0
- package/dist/components/feedback/Alert/Alert.js +62 -0
- package/dist/components/feedback/Alert/Alert.js.map +1 -0
- package/dist/components/feedback/Alert/Alert.module.js +14 -0
- package/dist/components/feedback/Alert/Alert.module.js.map +1 -0
- package/dist/components/feedback/Alert/index.d.ts +2 -0
- package/dist/components/feedback/LiveIndicator/LiveIndicator.d.ts +22 -0
- package/dist/components/feedback/LiveIndicator/LiveIndicator.js +27 -0
- package/dist/components/feedback/LiveIndicator/LiveIndicator.js.map +1 -0
- package/dist/components/feedback/LiveIndicator/LiveIndicator.module.js +10 -0
- package/dist/components/feedback/LiveIndicator/LiveIndicator.module.js.map +1 -0
- package/dist/components/feedback/LiveIndicator/index.d.ts +2 -0
- package/dist/components/feedback/RelativeTime/RelativeTime.d.ts +24 -0
- package/dist/components/feedback/RelativeTime/RelativeTime.js +38 -0
- package/dist/components/feedback/RelativeTime/RelativeTime.js.map +1 -0
- package/dist/components/feedback/RelativeTime/RelativeTime.module.js +6 -0
- package/dist/components/feedback/RelativeTime/RelativeTime.module.js.map +1 -0
- package/dist/components/feedback/RelativeTime/format.d.ts +10 -0
- package/dist/components/feedback/RelativeTime/format.js +57 -0
- package/dist/components/feedback/RelativeTime/format.js.map +1 -0
- package/dist/components/feedback/RelativeTime/index.d.ts +4 -0
- package/dist/components/feedback/Spinner/Spinner.d.ts +8 -0
- package/dist/components/feedback/Spinner/Spinner.js +25 -0
- package/dist/components/feedback/Spinner/Spinner.js.map +1 -0
- package/dist/components/feedback/Spinner/Spinner.module.js +10 -0
- package/dist/components/feedback/Spinner/Spinner.module.js.map +1 -0
- package/dist/components/feedback/Spinner/index.d.ts +2 -0
- package/dist/components/feedback/StatusDot/StatusDot.d.ts +13 -0
- package/dist/components/feedback/StatusDot/StatusDot.js +26 -0
- package/dist/components/feedback/StatusDot/StatusDot.js.map +1 -0
- package/dist/components/feedback/StatusDot/StatusDot.module.js +11 -0
- package/dist/components/feedback/StatusDot/StatusDot.module.js.map +1 -0
- package/dist/components/feedback/StatusDot/index.d.ts +2 -0
- package/dist/components/inputs/AmountField/AmountField.d.ts +11 -0
- package/dist/components/inputs/AmountField/AmountField.js +26 -0
- package/dist/components/inputs/AmountField/AmountField.js.map +1 -0
- package/dist/components/inputs/AmountField/index.d.ts +2 -0
- package/dist/components/inputs/AmountInput/AmountInput.d.ts +38 -0
- package/dist/components/inputs/AmountInput/AmountInput.js +99 -0
- package/dist/components/inputs/AmountInput/AmountInput.js.map +1 -0
- package/dist/components/inputs/AmountInput/amountFormat.d.ts +5 -0
- package/dist/components/inputs/AmountInput/amountFormat.js +15 -0
- package/dist/components/inputs/AmountInput/amountFormat.js.map +1 -0
- package/dist/components/inputs/AmountInput/index.d.ts +2 -0
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +18 -0
- package/dist/components/inputs/Checkbox/Checkbox.js +42 -0
- package/dist/components/inputs/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/inputs/Checkbox/Checkbox.module.js +12 -0
- package/dist/components/inputs/Checkbox/Checkbox.module.js.map +1 -0
- package/dist/components/inputs/Checkbox/index.d.ts +2 -0
- package/dist/components/inputs/CheckboxField/CheckboxField.d.ts +19 -0
- package/dist/components/inputs/CheckboxField/CheckboxField.js +69 -0
- package/dist/components/inputs/CheckboxField/CheckboxField.js.map +1 -0
- package/dist/components/inputs/CheckboxField/CheckboxField.module.js +12 -0
- package/dist/components/inputs/CheckboxField/CheckboxField.module.js.map +1 -0
- package/dist/components/inputs/CheckboxField/index.d.ts +2 -0
- package/dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +43 -0
- package/dist/components/inputs/CheckboxGroup/CheckboxGroup.js +159 -0
- package/dist/components/inputs/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/components/inputs/CheckboxGroup/CheckboxGroup.module.js +13 -0
- package/dist/components/inputs/CheckboxGroup/CheckboxGroup.module.js.map +1 -0
- package/dist/components/inputs/CheckboxGroup/choice.d.ts +33 -0
- package/dist/components/inputs/CheckboxGroup/choice.js +41 -0
- package/dist/components/inputs/CheckboxGroup/choice.js.map +1 -0
- package/dist/components/inputs/CheckboxGroup/index.d.ts +2 -0
- package/dist/components/inputs/CheckboxGroupField/CheckboxGroupField.d.ts +12 -0
- package/dist/components/inputs/CheckboxGroupField/CheckboxGroupField.js +24 -0
- package/dist/components/inputs/CheckboxGroupField/CheckboxGroupField.js.map +1 -0
- package/dist/components/inputs/CheckboxGroupField/index.d.ts +2 -0
- package/dist/components/inputs/ChipGroupField/ChipGroupField.d.ts +12 -0
- package/dist/components/inputs/ChipGroupField/ChipGroupField.js +24 -0
- package/dist/components/inputs/ChipGroupField/ChipGroupField.js.map +1 -0
- package/dist/components/inputs/ChipGroupField/index.d.ts +2 -0
- package/dist/components/inputs/ChoiceCards/ChoiceCards.d.ts +50 -0
- package/dist/components/inputs/ChoiceCards/ChoiceCards.js +130 -0
- package/dist/components/inputs/ChoiceCards/ChoiceCards.js.map +1 -0
- package/dist/components/inputs/ChoiceCards/ChoiceCards.module.js +15 -0
- package/dist/components/inputs/ChoiceCards/ChoiceCards.module.js.map +1 -0
- package/dist/components/inputs/ChoiceCards/index.d.ts +2 -0
- package/dist/components/inputs/ChoiceCardsField/ChoiceCardsField.d.ts +12 -0
- package/dist/components/inputs/ChoiceCardsField/ChoiceCardsField.js +24 -0
- package/dist/components/inputs/ChoiceCardsField/ChoiceCardsField.js.map +1 -0
- package/dist/components/inputs/ChoiceCardsField/index.d.ts +2 -0
- package/dist/components/inputs/ColorField/ColorField.d.ts +12 -0
- package/dist/components/inputs/ColorField/ColorField.js +26 -0
- package/dist/components/inputs/ColorField/ColorField.js.map +1 -0
- package/dist/components/inputs/ColorField/index.d.ts +2 -0
- package/dist/components/inputs/ColorInput/ColorInput.d.ts +30 -0
- package/dist/components/inputs/ColorInput/ColorInput.js +149 -0
- package/dist/components/inputs/ColorInput/ColorInput.js.map +1 -0
- package/dist/components/inputs/ColorInput/ColorInput.module.js +13 -0
- package/dist/components/inputs/ColorInput/ColorInput.module.js.map +1 -0
- package/dist/components/inputs/ColorInput/colorFormat.d.ts +2 -0
- package/dist/components/inputs/ColorInput/colorFormat.js +10 -0
- package/dist/components/inputs/ColorInput/colorFormat.js.map +1 -0
- package/dist/components/inputs/ColorInput/index.d.ts +2 -0
- package/dist/components/inputs/Combobox/Combobox.d.ts +74 -0
- package/dist/components/inputs/Combobox/Combobox.js +394 -0
- package/dist/components/inputs/Combobox/Combobox.js.map +1 -0
- package/dist/components/inputs/Combobox/Combobox.module.js +28 -0
- package/dist/components/inputs/Combobox/Combobox.module.js.map +1 -0
- package/dist/components/inputs/Combobox/index.d.ts +2 -0
- package/dist/components/inputs/Combobox/storyData.d.ts +7 -0
- package/dist/components/inputs/Combobox/useControllableState.d.ts +8 -0
- package/dist/components/inputs/Combobox/useControllableState.js +13 -0
- package/dist/components/inputs/Combobox/useControllableState.js.map +1 -0
- package/dist/components/inputs/ComboboxField/ComboboxField.d.ts +17 -0
- package/dist/components/inputs/ComboboxField/ComboboxField.js +26 -0
- package/dist/components/inputs/ComboboxField/ComboboxField.js.map +1 -0
- package/dist/components/inputs/ComboboxField/index.d.ts +2 -0
- package/dist/components/inputs/DateRangeField/DateRangeField.d.ts +37 -0
- package/dist/components/inputs/DateRangeField/DateRangeField.js +87 -0
- package/dist/components/inputs/DateRangeField/DateRangeField.js.map +1 -0
- package/dist/components/inputs/DateRangeField/DateRangeField.module.js +10 -0
- package/dist/components/inputs/DateRangeField/DateRangeField.module.js.map +1 -0
- package/dist/components/inputs/DateRangeField/index.d.ts +2 -0
- package/dist/components/inputs/Field/Field.d.ts +79 -0
- package/dist/components/inputs/Field/Field.js +100 -0
- package/dist/components/inputs/Field/Field.js.map +1 -0
- package/dist/components/inputs/Field/Field.module.js +12 -0
- package/dist/components/inputs/Field/Field.module.js.map +1 -0
- package/dist/components/inputs/Field/index.d.ts +4 -0
- package/dist/components/inputs/Fieldset/Fieldset.d.ts +48 -0
- package/dist/components/inputs/Fieldset/Fieldset.js +83 -0
- package/dist/components/inputs/Fieldset/Fieldset.js.map +1 -0
- package/dist/components/inputs/Fieldset/Fieldset.module.js +12 -0
- package/dist/components/inputs/Fieldset/Fieldset.module.js.map +1 -0
- package/dist/components/inputs/Fieldset/index.d.ts +2 -0
- package/dist/components/inputs/FileDrop/FileDrop.d.ts +60 -0
- package/dist/components/inputs/FileDrop/FileDrop.js +189 -0
- package/dist/components/inputs/FileDrop/FileDrop.js.map +1 -0
- package/dist/components/inputs/FileDrop/FileDrop.module.js +21 -0
- package/dist/components/inputs/FileDrop/FileDrop.module.js.map +1 -0
- package/dist/components/inputs/FileDrop/fileUtils.d.ts +11 -0
- package/dist/components/inputs/FileDrop/fileUtils.js +38 -0
- package/dist/components/inputs/FileDrop/fileUtils.js.map +1 -0
- package/dist/components/inputs/FileDrop/index.d.ts +2 -0
- package/dist/components/inputs/FileField/FileField.d.ts +12 -0
- package/dist/components/inputs/FileField/FileField.js +26 -0
- package/dist/components/inputs/FileField/FileField.js.map +1 -0
- package/dist/components/inputs/FileField/index.d.ts +2 -0
- package/dist/components/inputs/Input/Input.d.ts +25 -0
- package/dist/components/inputs/Input/Input.js +62 -0
- package/dist/components/inputs/Input/Input.js.map +1 -0
- package/dist/components/inputs/Input/Input.module.js +10 -0
- package/dist/components/inputs/Input/Input.module.js.map +1 -0
- package/dist/components/inputs/Input/index.d.ts +2 -0
- package/dist/components/inputs/NumberField/NumberField.d.ts +11 -0
- package/dist/components/inputs/NumberField/NumberField.js +26 -0
- package/dist/components/inputs/NumberField/NumberField.js.map +1 -0
- package/dist/components/inputs/NumberField/index.d.ts +2 -0
- package/dist/components/inputs/NumberInput/NumberInput.d.ts +35 -0
- package/dist/components/inputs/NumberInput/NumberInput.js +139 -0
- package/dist/components/inputs/NumberInput/NumberInput.js.map +1 -0
- package/dist/components/inputs/NumberInput/NumberInput.module.js +6 -0
- package/dist/components/inputs/NumberInput/NumberInput.module.js.map +1 -0
- package/dist/components/inputs/NumberInput/index.d.ts +2 -0
- package/dist/components/inputs/NumberInput/numberFormat.d.ts +24 -0
- package/dist/components/inputs/NumberInput/numberFormat.js +48 -0
- package/dist/components/inputs/NumberInput/numberFormat.js.map +1 -0
- package/dist/components/inputs/OneTimeCodeField/OneTimeCodeField.d.ts +12 -0
- package/dist/components/inputs/OneTimeCodeField/OneTimeCodeField.js +26 -0
- package/dist/components/inputs/OneTimeCodeField/OneTimeCodeField.js.map +1 -0
- package/dist/components/inputs/OneTimeCodeField/index.d.ts +2 -0
- package/dist/components/inputs/OneTimeCodeInput/OneTimeCodeInput.d.ts +35 -0
- package/dist/components/inputs/OneTimeCodeInput/OneTimeCodeInput.js +56 -0
- package/dist/components/inputs/OneTimeCodeInput/OneTimeCodeInput.js.map +1 -0
- package/dist/components/inputs/OneTimeCodeInput/OneTimeCodeInput.module.js +9 -0
- package/dist/components/inputs/OneTimeCodeInput/OneTimeCodeInput.module.js.map +1 -0
- package/dist/components/inputs/OneTimeCodeInput/index.d.ts +2 -0
- package/dist/components/inputs/PasswordField/PasswordField.d.ts +13 -0
- package/dist/components/inputs/PasswordField/PasswordField.js +29 -0
- package/dist/components/inputs/PasswordField/PasswordField.js.map +1 -0
- package/dist/components/inputs/PasswordField/index.d.ts +2 -0
- package/dist/components/inputs/PasswordInput/PasswordInput.d.ts +22 -0
- package/dist/components/inputs/PasswordInput/PasswordInput.js +75 -0
- package/dist/components/inputs/PasswordInput/PasswordInput.js.map +1 -0
- package/dist/components/inputs/PasswordInput/PasswordInput.module.js +6 -0
- package/dist/components/inputs/PasswordInput/PasswordInput.module.js.map +1 -0
- package/dist/components/inputs/PasswordInput/index.d.ts +2 -0
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +19 -0
- package/dist/components/inputs/RadioGroup/RadioGroup.js +68 -0
- package/dist/components/inputs/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/components/inputs/RadioGroup/RadioGroup.module.js +15 -0
- package/dist/components/inputs/RadioGroup/RadioGroup.module.js.map +1 -0
- package/dist/components/inputs/RadioGroup/index.d.ts +2 -0
- package/dist/components/inputs/RadioGroupField/RadioGroupField.d.ts +16 -0
- package/dist/components/inputs/RadioGroupField/RadioGroupField.js +33 -0
- package/dist/components/inputs/RadioGroupField/RadioGroupField.js.map +1 -0
- package/dist/components/inputs/RadioGroupField/index.d.ts +2 -0
- package/dist/components/inputs/RangeSlider/RangeSlider.d.ts +23 -0
- package/dist/components/inputs/RangeSlider/RangeSlider.js +63 -0
- package/dist/components/inputs/RangeSlider/RangeSlider.js.map +1 -0
- package/dist/components/inputs/RangeSlider/index.d.ts +2 -0
- package/dist/components/inputs/RangeSliderField/RangeSliderField.d.ts +12 -0
- package/dist/components/inputs/RangeSliderField/RangeSliderField.js +24 -0
- package/dist/components/inputs/RangeSliderField/RangeSliderField.js.map +1 -0
- package/dist/components/inputs/RangeSliderField/index.d.ts +2 -0
- package/dist/components/inputs/Rating/Rating.d.ts +31 -0
- package/dist/components/inputs/Rating/Rating.js +66 -0
- package/dist/components/inputs/Rating/Rating.js.map +1 -0
- package/dist/components/inputs/Rating/Rating.module.js +10 -0
- package/dist/components/inputs/Rating/Rating.module.js.map +1 -0
- package/dist/components/inputs/Rating/index.d.ts +2 -0
- package/dist/components/inputs/RatingField/RatingField.d.ts +12 -0
- package/dist/components/inputs/RatingField/RatingField.js +24 -0
- package/dist/components/inputs/RatingField/RatingField.js.map +1 -0
- package/dist/components/inputs/RatingField/index.d.ts +2 -0
- package/dist/components/inputs/SegmentedField/SegmentedField.d.ts +12 -0
- package/dist/components/inputs/SegmentedField/SegmentedField.js +24 -0
- package/dist/components/inputs/SegmentedField/SegmentedField.js.map +1 -0
- package/dist/components/inputs/SegmentedField/index.d.ts +2 -0
- package/dist/components/inputs/Select/Select.d.ts +66 -0
- package/dist/components/inputs/Select/Select.js +165 -0
- package/dist/components/inputs/Select/Select.js.map +1 -0
- package/dist/components/inputs/Select/Select.module.js +19 -0
- package/dist/components/inputs/Select/Select.module.js.map +1 -0
- package/dist/components/inputs/Select/index.d.ts +2 -0
- package/dist/components/inputs/SelectField/SelectField.d.ts +13 -0
- package/dist/components/inputs/SelectField/SelectField.js +26 -0
- package/dist/components/inputs/SelectField/SelectField.js.map +1 -0
- package/dist/components/inputs/SelectField/index.d.ts +2 -0
- package/dist/components/inputs/Slider/Slider.d.ts +40 -0
- package/dist/components/inputs/Slider/Slider.js +51 -0
- package/dist/components/inputs/Slider/Slider.js.map +1 -0
- package/dist/components/inputs/Slider/Slider.module.js +15 -0
- package/dist/components/inputs/Slider/Slider.module.js.map +1 -0
- package/dist/components/inputs/Slider/SliderBase.d.ts +37 -0
- package/dist/components/inputs/Slider/SliderBase.js +85 -0
- package/dist/components/inputs/Slider/SliderBase.js.map +1 -0
- package/dist/components/inputs/Slider/index.d.ts +2 -0
- package/dist/components/inputs/SliderField/SliderField.d.ts +12 -0
- package/dist/components/inputs/SliderField/SliderField.js +24 -0
- package/dist/components/inputs/SliderField/SliderField.js.map +1 -0
- package/dist/components/inputs/SliderField/index.d.ts +2 -0
- package/dist/components/inputs/Switch/Switch.d.ts +18 -0
- package/dist/components/inputs/Switch/Switch.js +46 -0
- package/dist/components/inputs/Switch/Switch.js.map +1 -0
- package/dist/components/inputs/Switch/Switch.module.js +11 -0
- package/dist/components/inputs/Switch/Switch.module.js.map +1 -0
- package/dist/components/inputs/Switch/index.d.ts +2 -0
- package/dist/components/inputs/SwitchField/SwitchField.d.ts +13 -0
- package/dist/components/inputs/SwitchField/SwitchField.js +73 -0
- package/dist/components/inputs/SwitchField/SwitchField.js.map +1 -0
- package/dist/components/inputs/SwitchField/SwitchField.module.js +12 -0
- package/dist/components/inputs/SwitchField/SwitchField.module.js.map +1 -0
- package/dist/components/inputs/SwitchField/index.d.ts +2 -0
- package/dist/components/inputs/TagsField/TagsField.d.ts +12 -0
- package/dist/components/inputs/TagsField/TagsField.js +26 -0
- package/dist/components/inputs/TagsField/TagsField.js.map +1 -0
- package/dist/components/inputs/TagsField/index.d.ts +2 -0
- package/dist/components/inputs/TagsInput/TagsInput.d.ts +35 -0
- package/dist/components/inputs/TagsInput/TagsInput.js +155 -0
- package/dist/components/inputs/TagsInput/TagsInput.js.map +1 -0
- package/dist/components/inputs/TagsInput/TagsInput.module.js +13 -0
- package/dist/components/inputs/TagsInput/TagsInput.module.js.map +1 -0
- package/dist/components/inputs/TagsInput/index.d.ts +2 -0
- package/dist/components/inputs/TextField/TextField.d.ts +18 -0
- package/dist/components/inputs/TextField/TextField.js +40 -0
- package/dist/components/inputs/TextField/TextField.js.map +1 -0
- package/dist/components/inputs/TextField/index.d.ts +2 -0
- package/dist/components/inputs/Textarea/Textarea.d.ts +20 -0
- package/dist/components/inputs/Textarea/Textarea.js +61 -0
- package/dist/components/inputs/Textarea/Textarea.js.map +1 -0
- package/dist/components/inputs/Textarea/Textarea.module.js +6 -0
- package/dist/components/inputs/Textarea/Textarea.module.js.map +1 -0
- package/dist/components/inputs/Textarea/index.d.ts +2 -0
- package/dist/components/inputs/TextareaField/TextareaField.d.ts +18 -0
- package/dist/components/inputs/TextareaField/TextareaField.js +40 -0
- package/dist/components/inputs/TextareaField/TextareaField.js.map +1 -0
- package/dist/components/inputs/TextareaField/index.d.ts +2 -0
- package/dist/components/inputs/internal/FieldContext.d.ts +60 -0
- package/dist/components/inputs/internal/FieldContext.js +32 -0
- package/dist/components/inputs/internal/FieldContext.js.map +1 -0
- package/dist/components/inputs/internal/control.module.js +6 -0
- package/dist/components/inputs/internal/control.module.js.map +1 -0
- package/dist/components/inputs/internal/errors.d.ts +5 -0
- package/dist/components/inputs/internal/errors.js +11 -0
- package/dist/components/inputs/internal/errors.js.map +1 -0
- package/dist/components/inputs/internal/fieldProps.d.ts +12 -0
- package/dist/components/inputs/internal/fieldProps.js +25 -0
- package/dist/components/inputs/internal/fieldProps.js.map +1 -0
- package/dist/components/inputs/internal/filterOptions.d.ts +23 -0
- package/dist/components/inputs/internal/filterOptions.js +28 -0
- package/dist/components/inputs/internal/filterOptions.js.map +1 -0
- package/dist/components/inputs/internal/messages.d.ts +40 -0
- package/dist/components/inputs/internal/messages.js +58 -0
- package/dist/components/inputs/internal/messages.js.map +1 -0
- package/dist/components/inputs/internal/messages.module.js +18 -0
- package/dist/components/inputs/internal/messages.module.js.map +1 -0
- package/dist/components/inputs/internal/refs.d.ts +7 -0
- package/dist/components/inputs/internal/refs.js +19 -0
- package/dist/components/inputs/internal/refs.js.map +1 -0
- package/dist/components/inputs/internal/storyData.d.ts +4 -0
- package/dist/components/inputs/internal/useLatest.d.ts +7 -0
- package/dist/components/inputs/internal/useLatest.js +13 -0
- package/dist/components/inputs/internal/useLatest.js.map +1 -0
- package/dist/components/layout/ActionBar/ActionBar.d.ts +30 -0
- package/dist/components/layout/ActionBar/ActionBar.js +25 -0
- package/dist/components/layout/ActionBar/ActionBar.js.map +1 -0
- package/dist/components/layout/ActionBar/ActionBar.module.js +6 -0
- package/dist/components/layout/ActionBar/ActionBar.module.js.map +1 -0
- package/dist/components/layout/ActionBar/index.d.ts +2 -0
- package/dist/components/layout/AppShell/AppShell.d.ts +33 -0
- package/dist/components/layout/AppShell/AppShell.js +70 -0
- package/dist/components/layout/AppShell/AppShell.js.map +1 -0
- package/dist/components/layout/AppShell/AppShell.module.js +14 -0
- package/dist/components/layout/AppShell/AppShell.module.js.map +1 -0
- package/dist/components/layout/AppShell/index.d.ts +2 -0
- package/dist/components/layout/AspectRatio/AspectRatio.d.ts +14 -0
- package/dist/components/layout/AspectRatio/AspectRatio.js +18 -0
- package/dist/components/layout/AspectRatio/AspectRatio.js.map +1 -0
- package/dist/components/layout/AspectRatio/AspectRatio.module.js +6 -0
- package/dist/components/layout/AspectRatio/AspectRatio.module.js.map +1 -0
- package/dist/components/layout/AspectRatio/index.d.ts +2 -0
- package/dist/components/layout/Box/Box.d.ts +29 -0
- package/dist/components/layout/Box/Box.js +26 -0
- package/dist/components/layout/Box/Box.js.map +1 -0
- package/dist/components/layout/Box/Box.module.js +6 -0
- package/dist/components/layout/Box/Box.module.js.map +1 -0
- package/dist/components/layout/Box/index.d.ts +2 -0
- package/dist/components/layout/Container/Container.d.ts +21 -0
- package/dist/components/layout/Container/Container.js +22 -0
- package/dist/components/layout/Container/Container.js.map +1 -0
- package/dist/components/layout/Container/Container.module.js +6 -0
- package/dist/components/layout/Container/Container.module.js.map +1 -0
- package/dist/components/layout/Container/index.d.ts +2 -0
- package/dist/components/layout/Divider/Divider.d.ts +28 -0
- package/dist/components/layout/Divider/Divider.js +35 -0
- package/dist/components/layout/Divider/Divider.js.map +1 -0
- package/dist/components/layout/Divider/Divider.module.js +9 -0
- package/dist/components/layout/Divider/Divider.module.js.map +1 -0
- package/dist/components/layout/Divider/index.d.ts +2 -0
- package/dist/components/layout/Grid/Grid.d.ts +50 -0
- package/dist/components/layout/Grid/Grid.js +35 -0
- package/dist/components/layout/Grid/Grid.js.map +1 -0
- package/dist/components/layout/Grid/Grid.module.js +9 -0
- package/dist/components/layout/Grid/Grid.module.js.map +1 -0
- package/dist/components/layout/Grid/index.d.ts +2 -0
- package/dist/components/layout/Inline/Inline.d.ts +24 -0
- package/dist/components/layout/Inline/Inline.js +25 -0
- package/dist/components/layout/Inline/Inline.js.map +1 -0
- package/dist/components/layout/Inline/Inline.module.js +6 -0
- package/dist/components/layout/Inline/Inline.module.js.map +1 -0
- package/dist/components/layout/Inline/index.d.ts +2 -0
- package/dist/components/layout/Section/Section.d.ts +30 -0
- package/dist/components/layout/Section/Section.js +25 -0
- package/dist/components/layout/Section/Section.js.map +1 -0
- package/dist/components/layout/Section/Section.module.js +6 -0
- package/dist/components/layout/Section/Section.module.js.map +1 -0
- package/dist/components/layout/Section/index.d.ts +2 -0
- package/dist/components/layout/Split/Split.d.ts +32 -0
- package/dist/components/layout/Split/Split.js +26 -0
- package/dist/components/layout/Split/Split.js.map +1 -0
- package/dist/components/layout/Split/Split.module.js +6 -0
- package/dist/components/layout/Split/Split.module.js.map +1 -0
- package/dist/components/layout/Split/index.d.ts +2 -0
- package/dist/components/layout/Stack/Stack.d.ts +21 -0
- package/dist/components/layout/Stack/Stack.js +25 -0
- package/dist/components/layout/Stack/Stack.js.map +1 -0
- package/dist/components/layout/Stack/Stack.module.js +6 -0
- package/dist/components/layout/Stack/Stack.module.js.map +1 -0
- package/dist/components/layout/Stack/index.d.ts +2 -0
- package/dist/components/layout/VisuallyHidden/VisuallyHidden.d.ts +20 -0
- package/dist/components/layout/VisuallyHidden/VisuallyHidden.js +17 -0
- package/dist/components/layout/VisuallyHidden/VisuallyHidden.js.map +1 -0
- package/dist/components/layout/VisuallyHidden/VisuallyHidden.module.js +6 -0
- package/dist/components/layout/VisuallyHidden/VisuallyHidden.module.js.map +1 -0
- package/dist/components/layout/VisuallyHidden/index.d.ts +2 -0
- package/dist/components/navigation/Accordion/Accordion.d.ts +35 -0
- package/dist/components/navigation/Accordion/Accordion.js +68 -0
- package/dist/components/navigation/Accordion/Accordion.js.map +1 -0
- package/dist/components/navigation/Accordion/Accordion.module.js +17 -0
- package/dist/components/navigation/Accordion/Accordion.module.js.map +1 -0
- package/dist/components/navigation/Accordion/index.d.ts +2 -0
- package/dist/components/navigation/BottomNav/BottomNav.d.ts +42 -0
- package/dist/components/navigation/BottomNav/BottomNav.js +67 -0
- package/dist/components/navigation/BottomNav/BottomNav.js.map +1 -0
- package/dist/components/navigation/BottomNav/BottomNav.module.js +16 -0
- package/dist/components/navigation/BottomNav/BottomNav.module.js.map +1 -0
- package/dist/components/navigation/BottomNav/index.d.ts +2 -0
- package/dist/components/navigation/NavLinks/NavLinks.d.ts +32 -0
- package/dist/components/navigation/NavLinks/NavLinks.js +57 -0
- package/dist/components/navigation/NavLinks/NavLinks.js.map +1 -0
- package/dist/components/navigation/NavLinks/NavLinks.module.js +11 -0
- package/dist/components/navigation/NavLinks/NavLinks.module.js.map +1 -0
- package/dist/components/navigation/NavLinks/index.d.ts +2 -0
- package/dist/components/navigation/Stepper/Stepper.d.ts +45 -0
- package/dist/components/navigation/Stepper/Stepper.js +93 -0
- package/dist/components/navigation/Stepper/Stepper.js.map +1 -0
- package/dist/components/navigation/Stepper/Stepper.module.js +19 -0
- package/dist/components/navigation/Stepper/Stepper.module.js.map +1 -0
- package/dist/components/navigation/Stepper/index.d.ts +2 -0
- package/dist/components/navigation/Tabs/Tabs.d.ts +31 -0
- package/dist/components/navigation/Tabs/Tabs.js +47 -0
- package/dist/components/navigation/Tabs/Tabs.js.map +1 -0
- package/dist/components/navigation/Tabs/Tabs.module.js +11 -0
- package/dist/components/navigation/Tabs/Tabs.module.js.map +1 -0
- package/dist/components/navigation/Tabs/index.d.ts +2 -0
- package/dist/components/overlays/Dialog/Dialog.d.ts +49 -0
- package/dist/components/overlays/Dialog/Dialog.js +97 -0
- package/dist/components/overlays/Dialog/Dialog.js.map +1 -0
- package/dist/components/overlays/Dialog/Dialog.module.js +17 -0
- package/dist/components/overlays/Dialog/Dialog.module.js.map +1 -0
- package/dist/components/overlays/Dialog/index.d.ts +2 -0
- package/dist/components/overlays/DropdownMenu/DropdownMenu.d.ts +62 -0
- package/dist/components/overlays/DropdownMenu/DropdownMenu.js +172 -0
- package/dist/components/overlays/DropdownMenu/DropdownMenu.js.map +1 -0
- package/dist/components/overlays/DropdownMenu/DropdownMenu.module.js +19 -0
- package/dist/components/overlays/DropdownMenu/DropdownMenu.module.js.map +1 -0
- package/dist/components/overlays/DropdownMenu/index.d.ts +2 -0
- package/dist/components/overlays/OverlayClose.d.ts +7 -0
- package/dist/components/overlays/OverlayClose.js +20 -0
- package/dist/components/overlays/OverlayClose.js.map +1 -0
- package/dist/components/overlays/OverlayClose.module.js +6 -0
- package/dist/components/overlays/OverlayClose.module.js.map +1 -0
- package/dist/components/overlays/Popover/Popover.d.ts +31 -0
- package/dist/components/overlays/Popover/Popover.js +75 -0
- package/dist/components/overlays/Popover/Popover.js.map +1 -0
- package/dist/components/overlays/Popover/Popover.module.js +13 -0
- package/dist/components/overlays/Popover/Popover.module.js.map +1 -0
- package/dist/components/overlays/Popover/index.d.ts +2 -0
- package/dist/components/overlays/Sheet/Sheet.d.ts +56 -0
- package/dist/components/overlays/Sheet/Sheet.js +105 -0
- package/dist/components/overlays/Sheet/Sheet.js.map +1 -0
- package/dist/components/overlays/Sheet/Sheet.module.js +20 -0
- package/dist/components/overlays/Sheet/Sheet.module.js.map +1 -0
- package/dist/components/overlays/Sheet/index.d.ts +2 -0
- package/dist/components/overlays/Tooltip/Tooltip.d.ts +35 -0
- package/dist/components/overlays/Tooltip/Tooltip.js +64 -0
- package/dist/components/overlays/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/overlays/Tooltip/Tooltip.module.js +11 -0
- package/dist/components/overlays/Tooltip/Tooltip.module.js.map +1 -0
- package/dist/components/overlays/Tooltip/index.d.ts +2 -0
- package/dist/components/overlays/usePortalTheme.d.ts +44 -0
- package/dist/components/overlays/usePortalTheme.js +62 -0
- package/dist/components/overlays/usePortalTheme.js.map +1 -0
- package/dist/components/typography/Amount/Amount.d.ts +27 -0
- package/dist/components/typography/Amount/Amount.js +67 -0
- package/dist/components/typography/Amount/Amount.js.map +1 -0
- package/dist/components/typography/Amount/Amount.module.js +6 -0
- package/dist/components/typography/Amount/Amount.module.js.map +1 -0
- package/dist/components/typography/Amount/index.d.ts +2 -0
- package/dist/components/typography/Code/Code.d.ts +13 -0
- package/dist/components/typography/Code/Code.js +18 -0
- package/dist/components/typography/Code/Code.js.map +1 -0
- package/dist/components/typography/Code/Code.module.js +6 -0
- package/dist/components/typography/Code/Code.module.js.map +1 -0
- package/dist/components/typography/Code/index.d.ts +2 -0
- package/dist/components/typography/Heading/Heading.d.ts +34 -0
- package/dist/components/typography/Heading/Heading.js +46 -0
- package/dist/components/typography/Heading/Heading.js.map +1 -0
- package/dist/components/typography/Heading/Heading.module.js +6 -0
- package/dist/components/typography/Heading/Heading.module.js.map +1 -0
- package/dist/components/typography/Heading/index.d.ts +4 -0
- package/dist/components/typography/Heading/sizes.d.ts +4 -0
- package/dist/components/typography/Heading/sizes.js +13 -0
- package/dist/components/typography/Heading/sizes.js.map +1 -0
- package/dist/components/typography/Kbd/Kbd.d.ts +11 -0
- package/dist/components/typography/Kbd/Kbd.js +18 -0
- package/dist/components/typography/Kbd/Kbd.js.map +1 -0
- package/dist/components/typography/Kbd/Kbd.module.js +6 -0
- package/dist/components/typography/Kbd/Kbd.module.js.map +1 -0
- package/dist/components/typography/Kbd/index.d.ts +2 -0
- package/dist/components/typography/Link/Link.d.ts +26 -0
- package/dist/components/typography/Link/Link.js +32 -0
- package/dist/components/typography/Link/Link.js.map +1 -0
- package/dist/components/typography/Link/Link.module.js +11 -0
- package/dist/components/typography/Link/Link.module.js.map +1 -0
- package/dist/components/typography/Link/index.d.ts +2 -0
- package/dist/components/typography/Numeral/Numeral.d.ts +29 -0
- package/dist/components/typography/Numeral/Numeral.js +41 -0
- package/dist/components/typography/Numeral/Numeral.js.map +1 -0
- package/dist/components/typography/Numeral/Numeral.module.js +9 -0
- package/dist/components/typography/Numeral/Numeral.module.js.map +1 -0
- package/dist/components/typography/Numeral/format.d.ts +16 -0
- package/dist/components/typography/Numeral/format.js +30 -0
- package/dist/components/typography/Numeral/format.js.map +1 -0
- package/dist/components/typography/Numeral/index.d.ts +4 -0
- package/dist/components/typography/Prose/Prose.d.ts +16 -0
- package/dist/components/typography/Prose/Prose.js +17 -0
- package/dist/components/typography/Prose/Prose.js.map +1 -0
- package/dist/components/typography/Prose/Prose.module.js +6 -0
- package/dist/components/typography/Prose/Prose.module.js.map +1 -0
- package/dist/components/typography/Prose/index.d.ts +2 -0
- package/dist/components/typography/Quote/Quote.d.ts +20 -0
- package/dist/components/typography/Quote/Quote.js +34 -0
- package/dist/components/typography/Quote/Quote.js.map +1 -0
- package/dist/components/typography/Quote/Quote.module.js +11 -0
- package/dist/components/typography/Quote/Quote.module.js.map +1 -0
- package/dist/components/typography/Quote/index.d.ts +2 -0
- package/dist/components/typography/SectionHeader/SectionHeader.d.ts +33 -0
- package/dist/components/typography/SectionHeader/SectionHeader.js +42 -0
- package/dist/components/typography/SectionHeader/SectionHeader.js.map +1 -0
- package/dist/components/typography/SectionHeader/SectionHeader.module.js +13 -0
- package/dist/components/typography/SectionHeader/SectionHeader.module.js.map +1 -0
- package/dist/components/typography/SectionHeader/index.d.ts +2 -0
- package/dist/components/typography/Text/Text.d.ts +35 -0
- package/dist/components/typography/Text/Text.js +27 -0
- package/dist/components/typography/Text/Text.js.map +1 -0
- package/dist/components/typography/Text/Text.module.js +6 -0
- package/dist/components/typography/Text/Text.module.js.map +1 -0
- package/dist/components/typography/Text/index.d.ts +2 -0
- package/dist/icons/Icon.d.ts +14 -0
- package/dist/icons/Icon.js +30 -0
- package/dist/icons/Icon.js.map +1 -0
- package/dist/icons/Icon.module.js +6 -0
- package/dist/icons/Icon.module.js.map +1 -0
- package/dist/icons/icons.d.ts +26 -0
- package/dist/icons/icons.js +63 -0
- package/dist/icons/icons.js.map +1 -0
- package/dist/icons/index.d.ts +3 -0
- package/dist/index.d.ts +225 -0
- package/dist/index.js +117 -0
- package/dist/styles.css +2 -0
- package/dist/stylesheets.d.ts +10 -0
- package/dist/theme/ThemeProvider.d.ts +52 -0
- package/dist/theme/ThemeProvider.js +86 -0
- package/dist/theme/ThemeProvider.js.map +1 -0
- package/dist/theme/context.d.ts +20 -0
- package/dist/theme/context.js +19 -0
- package/dist/theme/context.js.map +1 -0
- package/dist/theme/index.d.ts +6 -0
- package/dist/theme/themes.d.ts +31 -0
- package/dist/theme/themes.js +36 -0
- package/dist/theme/themes.js.map +1 -0
- package/dist/themes/fiesta.css +1 -0
- package/dist/themes/ledger.css +1 -0
- package/dist/themes/monograph.css +1 -0
- package/dist/utils/cx.d.ts +5 -0
- package/dist/utils/cx.js +8 -0
- package/dist/utils/cx.js.map +1 -0
- package/dist/utils/heading.d.ts +13 -0
- package/dist/utils/heading.js +16 -0
- package/dist/utils/heading.js.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/responsive.d.ts +28 -0
- package/dist/utils/responsive.js +40 -0
- package/dist/utils/responsive.js.map +1 -0
- package/dist/utils/tokens.d.ts +18 -0
- package/dist/utils/tokens.js +6 -0
- package/dist/utils/tokens.js.map +1 -0
- package/dist/utils/visibility.d.ts +14 -0
- package/dist/utils/visibility.js +21 -0
- package/dist/utils/visibility.js.map +1 -0
- package/dist/utils/visibility.module.js +16 -0
- package/dist/utils/visibility.module.js.map +1 -0
- package/package.json +91 -0
- package/skills/custom-theme/SKILL.md +293 -0
- package/skills/custom-theme/references/colour.md +55 -0
- package/skills/custom-theme/references/motion.md +39 -0
- package/skills/custom-theme/references/tokens.md +199 -0
- package/skills/custom-theme/references/type.md +61 -0
- package/skills/design-rules/SKILL.md +74 -0
- package/skills/layout-composition/SKILL.md +498 -0
- package/skills/layout-composition/references/action-bar.md +59 -0
- package/skills/layout-composition/references/app-shell.md +141 -0
- package/skills/layout-composition/references/aspect-ratio.md +49 -0
- package/skills/layout-composition/references/box.md +49 -0
- package/skills/layout-composition/references/checkout.md +124 -0
- package/skills/layout-composition/references/container.md +59 -0
- package/skills/layout-composition/references/dashboard.md +163 -0
- package/skills/layout-composition/references/divider.md +59 -0
- package/skills/layout-composition/references/settings.md +134 -0
- package/skills/layout-composition/references/visually-hidden.md +41 -0
- package/skills/setup-and-theming/SKILL.md +197 -0
- package/skills/setup-and-theming/references/fiesta.md +32 -0
- package/skills/setup-and-theming/references/ledger.md +32 -0
- package/skills/setup-and-theming/references/monograph.md +39 -0
- package/skills/setup-and-theming/references/paper.md +35 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading.module.js","names":["heading","Heading_module_default"],"sources":["../../../../src/components/typography/Heading/Heading.module.css"],"sourcesContent":["/*\n * Two typographic roles, chosen by size:\n * display (display-lg/md/sm) — --font-display, --display-*, --leading-tight, opsz\n * heading (3xl … sm) — --heading-font/-weight/-tracking/-transform, --leading-snug\n *\n * Responsive size: the component writes --heading-size-{base..xl} (see Stack for the\n * pattern) and data-role-{sm..xl}; a scalar size needs neither and resolves from\n * data-size alone.\n *\n * Component tokens:\n * --heading-display-leading default var(--leading-tight)\n * --heading-leading default var(--leading-snug)\n */\n.heading {\n --_ink: var(--color-ink);\n --_fs: var(--heading-size-base, var(--_size));\n\n margin: 0;\n font-family: var(--_ff);\n font-size: var(--_fs);\n font-weight: var(--_fw);\n font-style: var(--_fst);\n font-stretch: var(--_fstr);\n font-variation-settings: var(--_fvs);\n letter-spacing: var(--_ls);\n text-transform: var(--_tt);\n line-height: var(--_lh);\n color: var(--_ink);\n text-wrap: balance;\n overflow-wrap: break-word;\n font-kerning: normal;\n}\n\n.heading[data-balance='false'] {\n text-wrap: pretty;\n}\n\n/* Sizes → a token on the type scale */\n.heading[data-size='display-lg'] {\n --_size: var(--text-display-lg);\n}\n.heading[data-size='display-md'] {\n --_size: var(--text-display-md);\n}\n.heading[data-size='display-sm'] {\n --_size: var(--text-display-sm);\n}\n.heading[data-size='3xl'] {\n --_size: var(--text-3xl);\n}\n.heading[data-size='2xl'] {\n --_size: var(--text-2xl);\n}\n.heading[data-size='xl'] {\n --_size: var(--text-xl);\n}\n.heading[data-size='lg'] {\n --_size: var(--text-lg);\n}\n.heading[data-size='md'] {\n --_size: var(--text-md);\n}\n.heading[data-size='sm'] {\n --_size: var(--text-sm);\n}\n\n/* Roles */\n.heading[data-role='display'] {\n --_ff: var(--font-display);\n --_fw: var(--display-weight);\n --_fst: var(--display-style);\n --_fstr: var(--display-stretch);\n --_fvs: 'opsz' var(--display-opsz);\n --_ls: var(--display-tracking);\n --_tt: var(--display-transform);\n --_lh: var(--heading-display-leading, var(--leading-tight));\n}\n.heading[data-role='heading'] {\n --_ff: var(--heading-font);\n --_fw: var(--heading-weight);\n --_fst: normal;\n --_fstr: normal;\n --_fvs: normal;\n --_ls: var(--heading-tracking);\n --_tt: var(--heading-transform);\n --_lh: var(--heading-leading, var(--leading-snug));\n}\n\n/* Tones */\n.heading[data-tone='muted'] {\n --_ink: var(--color-ink-muted);\n}\n.heading[data-tone='accent'] {\n --_ink: var(--color-accent-text);\n}\n\n/* Responsive: size var per breakpoint, role attribute per breakpoint */\n@media (min-width: 40em) {\n .heading {\n --_fs: var(--heading-size-sm, var(--_size));\n }\n .heading[data-role-sm='display'] {\n --_ff: var(--font-display);\n --_fw: var(--display-weight);\n --_fst: var(--display-style);\n --_fstr: var(--display-stretch);\n --_fvs: 'opsz' var(--display-opsz);\n --_ls: var(--display-tracking);\n --_tt: var(--display-transform);\n --_lh: var(--heading-display-leading, var(--leading-tight));\n }\n .heading[data-role-sm='heading'] {\n --_ff: var(--heading-font);\n --_fw: var(--heading-weight);\n --_fst: normal;\n --_fstr: normal;\n --_fvs: normal;\n --_ls: var(--heading-tracking);\n --_tt: var(--heading-transform);\n --_lh: var(--heading-leading, var(--leading-snug));\n }\n}\n@media (min-width: 48em) {\n .heading {\n --_fs: var(--heading-size-md, var(--_size));\n }\n .heading[data-role-md='display'] {\n --_ff: var(--font-display);\n --_fw: var(--display-weight);\n --_fst: var(--display-style);\n --_fstr: var(--display-stretch);\n --_fvs: 'opsz' var(--display-opsz);\n --_ls: var(--display-tracking);\n --_tt: var(--display-transform);\n --_lh: var(--heading-display-leading, var(--leading-tight));\n }\n .heading[data-role-md='heading'] {\n --_ff: var(--heading-font);\n --_fw: var(--heading-weight);\n --_fst: normal;\n --_fstr: normal;\n --_fvs: normal;\n --_ls: var(--heading-tracking);\n --_tt: var(--heading-transform);\n --_lh: var(--heading-leading, var(--leading-snug));\n }\n}\n@media (min-width: 64em) {\n .heading {\n --_fs: var(--heading-size-lg, var(--_size));\n }\n .heading[data-role-lg='display'] {\n --_ff: var(--font-display);\n --_fw: var(--display-weight);\n --_fst: var(--display-style);\n --_fstr: var(--display-stretch);\n --_fvs: 'opsz' var(--display-opsz);\n --_ls: var(--display-tracking);\n --_tt: var(--display-transform);\n --_lh: var(--heading-display-leading, var(--leading-tight));\n }\n .heading[data-role-lg='heading'] {\n --_ff: var(--heading-font);\n --_fw: var(--heading-weight);\n --_fst: normal;\n --_fstr: normal;\n --_fvs: normal;\n --_ls: var(--heading-tracking);\n --_tt: var(--heading-transform);\n --_lh: var(--heading-leading, var(--leading-snug));\n }\n}\n@media (min-width: 80em) {\n .heading {\n --_fs: var(--heading-size-xl, var(--_size));\n }\n .heading[data-role-xl='display'] {\n --_ff: var(--font-display);\n --_fw: var(--display-weight);\n --_fst: var(--display-style);\n --_fstr: var(--display-stretch);\n --_fvs: 'opsz' var(--display-opsz);\n --_ls: var(--display-tracking);\n --_tt: var(--display-transform);\n --_lh: var(--heading-display-leading, var(--leading-tight));\n }\n .heading[data-role-xl='heading'] {\n --_ff: var(--heading-font);\n --_fw: var(--heading-weight);\n --_fst: normal;\n --_fstr: normal;\n --_fvs: normal;\n --_ls: var(--heading-tracking);\n --_tt: var(--heading-transform);\n --_lh: var(--heading-leading, var(--leading-snug));\n }\n}\n\n/* Measure: cap the line length with the width tokens. */\n.heading[data-measure='narrow'] {\n max-inline-size: var(--width-narrow);\n}\n.heading[data-measure='text'] {\n max-inline-size: var(--width-text);\n}\n.heading[data-measure='content'] {\n max-inline-size: var(--width-content);\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
2
|
+
export type HeadingSize = 'display-lg' | 'display-md' | 'display-sm' | '3xl' | '2xl' | 'xl' | 'lg' | 'md' | 'sm';
|
|
3
|
+
/** What each level looks like when no `size` is given. */
|
|
4
|
+
export declare const DEFAULT_HEADING_SIZE: Record<HeadingLevel, HeadingSize>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizes.js","names":["DEFAULT_HEADING_SIZE"],"sources":["../../../../src/components/typography/Heading/sizes.ts"],"sourcesContent":["export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6\nexport type HeadingSize =\n 'display-lg' | 'display-md' | 'display-sm' | '3xl' | '2xl' | 'xl' | 'lg' | 'md' | 'sm'\n\n/** What each level looks like when no `size` is given. */\nexport const DEFAULT_HEADING_SIZE: Record<HeadingLevel, HeadingSize> = {\n 1: 'display-md',\n 2: '3xl',\n 3: '2xl',\n 4: 'xl',\n 5: 'lg',\n 6: 'md',\n}\n"],"mappings":";AAKA,IAAaA,IAA0D;CACrE,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACL"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
export type KbdSize = 'sm' | 'md';
|
|
3
|
+
export interface KbdProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
+
/** `sm` for menus and tooltips; `md` (default) inline with body text. */
|
|
5
|
+
size?: KbdSize;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A keyboard key. One key per <Kbd>; write combos as siblings so each key reads
|
|
9
|
+
* separately: <Kbd>⌘</Kbd> <Kbd>K</Kbd>.
|
|
10
|
+
*/
|
|
11
|
+
export declare const Kbd: import("react").ForwardRefExoticComponent<KbdProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { cx as e } from "../../../utils/cx.js";
|
|
2
|
+
import t from "./Kbd.module.js";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/typography/Kbd/Kbd.tsx
|
|
6
|
+
var i = n(function({ size: n = "md", className: i, ...a }, o) {
|
|
7
|
+
return /* @__PURE__ */ r("kbd", {
|
|
8
|
+
ref: o,
|
|
9
|
+
className: e(t.kbd, i),
|
|
10
|
+
"data-kiln-component": "",
|
|
11
|
+
"data-size": n,
|
|
12
|
+
...a
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { i as Kbd };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=Kbd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Kbd.js","names":["styles","Kbd_module_default","Kbd","forwardRef","rest","cx","className","size"],"sources":["../../../../src/components/typography/Kbd/Kbd.tsx"],"sourcesContent":["import { forwardRef, type HTMLAttributes } from 'react'\nimport { cx } from '#utils/cx'\nimport styles from './Kbd.module.css'\n\nexport type KbdSize = 'sm' | 'md'\n\nexport interface KbdProps extends HTMLAttributes<HTMLElement> {\n /** `sm` for menus and tooltips; `md` (default) inline with body text. */\n size?: KbdSize\n}\n\n/**\n * A keyboard key. One key per <Kbd>; write combos as siblings so each key reads\n * separately: <Kbd>⌘</Kbd> <Kbd>K</Kbd>.\n */\nexport const Kbd = forwardRef<HTMLElement, KbdProps>(function Kbd(\n { size = 'md', className, ...rest },\n ref,\n) {\n return (\n <kbd\n ref={ref}\n className={cx(styles.kbd, className)}\n data-kiln-component=\"\"\n data-size={size}\n {...rest}\n />\n )\n})\n"],"mappings":";;;;;AAeA,IAAaE,IAAMC,EAAkC,SACnD,EAAE,UAAO,MAAM,cAAW,GAAGC,KAC7B,GACA;CACA,OACE,kBAAC,OAAD;EACO;EACL,WAAWC,EAAGL,EAAO,KAAKM,CAAS;EACnC,uBAAoB;EACpB,aAAWC;EACX,GAAIH;CACL,CAAA;AAEL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Kbd.module.js","names":["kbd","Kbd_module_default"],"sources":["../../../../src/components/typography/Kbd/Kbd.module.css"],"sourcesContent":["/*\n * A keycap: hairline sides and a heavier bottom edge — the key's travel. One edge\n * treatment (border), no shadow.\n *\n * Component tokens:\n * --kbd-radius default half of --radius-field\n */\n.kbd {\n --_fs: 0.8em;\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-inline-size: 1.75em;\n block-size: 1.75em;\n padding-inline: 0.45em;\n vertical-align: 0.08em;\n border: var(--border-width) solid var(--color-line-strong);\n border-block-end-width: calc(var(--border-width) + 1px);\n border-radius: var(--kbd-radius, calc(var(--radius-field) / 2));\n background: var(--color-surface);\n color: var(--color-ink-muted);\n font-family: var(--font-text);\n font-size: var(--_fs);\n font-weight: var(--label-weight);\n font-variant-numeric: tabular-nums;\n line-height: 1;\n letter-spacing: 0;\n text-transform: none;\n white-space: nowrap;\n}\n\n.kbd[data-size='sm'] {\n --_fs: 0.7em;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type AnchorHTMLAttributes } from 'react';
|
|
2
|
+
export type LinkTone = 'default' | 'accent' | 'muted';
|
|
3
|
+
export type LinkUnderline = 'always' | 'hover';
|
|
4
|
+
export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
5
|
+
/** `default` is ink with a quiet underline; `accent` for the one link that matters; `muted` for meta lines. */
|
|
6
|
+
tone?: LinkTone;
|
|
7
|
+
/** `always` (default) for links inside prose; `hover` for links whose context already says "link" (nav, lists). */
|
|
8
|
+
underline?: LinkUnderline;
|
|
9
|
+
/**
|
|
10
|
+
* Opens in a new tab: sets `target="_blank"` + `rel="noopener noreferrer"`, adds a small
|
|
11
|
+
* arrow and a visually-hidden "(opens in new tab)" for screen readers.
|
|
12
|
+
*/
|
|
13
|
+
external?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Render the single child element instead of an <a>, merging props and styles.
|
|
16
|
+
* Use for router links: `<Link asChild><RouterLink to="/projects">Projects</RouterLink></Link>`.
|
|
17
|
+
*/
|
|
18
|
+
asChild?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Inline text link. Hover thickens the underline instead of changing colour, so the
|
|
22
|
+
* link stays legible in every theme.
|
|
23
|
+
*
|
|
24
|
+
* <Link href="https://github.com/mitcsutt/kiln" external>GitHub</Link>
|
|
25
|
+
*/
|
|
26
|
+
export declare const Link: import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { cx as e } from "../../../utils/cx.js";
|
|
2
|
+
import { ArrowUpRightIcon as t } from "../../../icons/icons.js";
|
|
3
|
+
import n from "./Link.module.js";
|
|
4
|
+
import { forwardRef as r } from "react";
|
|
5
|
+
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import { Slot as s } from "radix-ui";
|
|
7
|
+
//#region src/components/typography/Link/Link.tsx
|
|
8
|
+
var c = r(function({ tone: r = "default", underline: c = "always", external: l = !1, asChild: u = !1, className: d, children: f, target: p, rel: m, ...h }, g) {
|
|
9
|
+
let _ = u ? s.Root : "a";
|
|
10
|
+
return /* @__PURE__ */ o(_, {
|
|
11
|
+
ref: g,
|
|
12
|
+
className: e(n.link, d),
|
|
13
|
+
"data-tone": r,
|
|
14
|
+
"data-underline": c,
|
|
15
|
+
"data-external": l || void 0,
|
|
16
|
+
target: l ? p ?? "_blank" : p,
|
|
17
|
+
rel: l ? m ?? "noopener noreferrer" : m,
|
|
18
|
+
...h,
|
|
19
|
+
children: [/* @__PURE__ */ a(s.Slottable, { children: f }), l ? /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o("span", {
|
|
20
|
+
className: n.iconWrap,
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
children: ["", /* @__PURE__ */ a(t, { className: n.icon })]
|
|
23
|
+
}), /* @__PURE__ */ a("span", {
|
|
24
|
+
className: n.srOnly,
|
|
25
|
+
children: " (opens in new tab)"
|
|
26
|
+
})] }) : null]
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { c as Link };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=Link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.js","names":["styles","_Fragment","Link_module_default","Fragment$1","Link","forwardRef","rest","Comp","asChild","Slot","cx","className","tone","underline","external","target","rel","ArrowUpRightIcon"],"sources":["../../../../src/components/typography/Link/Link.tsx"],"sourcesContent":["import { forwardRef, type AnchorHTMLAttributes } from 'react'\nimport { Slot } from 'radix-ui'\nimport { cx } from '#utils/cx'\nimport { ArrowUpRightIcon } from '#icons'\nimport styles from './Link.module.css'\n\nexport type LinkTone = 'default' | 'accent' | 'muted'\nexport type LinkUnderline = 'always' | 'hover'\n\nexport interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {\n /** `default` is ink with a quiet underline; `accent` for the one link that matters; `muted` for meta lines. */\n tone?: LinkTone\n /** `always` (default) for links inside prose; `hover` for links whose context already says \"link\" (nav, lists). */\n underline?: LinkUnderline\n /**\n * Opens in a new tab: sets `target=\"_blank\"` + `rel=\"noopener noreferrer\"`, adds a small\n * arrow and a visually-hidden \"(opens in new tab)\" for screen readers.\n */\n external?: boolean\n /**\n * Render the single child element instead of an <a>, merging props and styles.\n * Use for router links: `<Link asChild><RouterLink to=\"/projects\">Projects</RouterLink></Link>`.\n */\n asChild?: boolean\n}\n\n/**\n * Inline text link. Hover thickens the underline instead of changing colour, so the\n * link stays legible in every theme.\n *\n * <Link href=\"https://github.com/mitcsutt/kiln\" external>GitHub</Link>\n */\nexport const Link = forwardRef<HTMLAnchorElement, LinkProps>(function Link(\n {\n tone = 'default',\n underline = 'always',\n external = false,\n asChild = false,\n className,\n children,\n target,\n rel,\n ...rest\n },\n ref,\n) {\n const Comp = asChild ? Slot.Root : 'a'\n return (\n <Comp\n ref={ref}\n className={cx(styles.link, className)}\n data-tone={tone}\n data-underline={underline}\n data-external={external || undefined}\n target={external ? (target ?? '_blank') : target}\n rel={external ? (rel ?? 'noopener noreferrer') : rel}\n {...rest}\n >\n <Slot.Slottable>{children}</Slot.Slottable>\n {external ? (\n <>\n {/* The word joiner keeps the arrow from wrapping onto a line of its own */}\n <span className={styles.iconWrap} aria-hidden=\"true\">\n {'\\u2060'}\n <ArrowUpRightIcon className={styles.icon} />\n </span>\n <span className={styles.srOnly}> (opens in new tab)</span>\n </>\n ) : null}\n </Comp>\n )\n})\n"],"mappings":";;;;;;;AAgCA,IAAaI,IAAOC,EAAyC,SAC3D,EACE,UAAO,WACP,eAAY,UACZ,cAAW,IACX,aAAU,IACV,cACA,aACA,WACA,QACA,GAAGC,KAEL,GACA;CACA,IAAMC,IAAOC,IAAUC,EAAK,OAAO;CACnC,OACE,kBAACF,GAAD;EACO;EACL,WAAWG,EAAGV,EAAO,MAAMW,CAAS;EACpC,aAAWC;EACX,kBAAgBC;EAChB,iBAAeC,KAAY,KAAA;EAC3B,QAAQA,IAAYC,KAAU,WAAYA;EAC1C,KAAKD,IAAYE,KAAO,wBAAyBA;EACjD,GAAIV;EARN,UAAA,CAUE,kBAACG,EAAK,WAAN,EAAiB,YAAyB,CAAA,GACzCK,IACC,kBAAAb,GAAA,EAAA,UAAA,CAEE,kBAAC,QAAD;GAAM,WAAWD,EAAO;GAAU,eAAY;GAA9C,UAAA,CACG,KACD,kBAACiB,GAAD,EAAkB,WAAWjB,EAAO,KAAO,CAAA,CACvC;EACN,CAAA,GAAA,kBAAC,QAAD;GAAM,WAAWA,EAAO;GAAQ,UAAA;EAAyB,CAAA,CACzD,EAAA,CAAA,IACA,IACA;;AAEV,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/components/typography/Link/Link.module.css
|
|
2
|
+
var e = "kiln-Link__link", t = "kiln-Link__iconWrap", n = "kiln-Link__icon", r = "kiln-Link__srOnly", i = {
|
|
3
|
+
link: e,
|
|
4
|
+
iconWrap: t,
|
|
5
|
+
icon: n,
|
|
6
|
+
srOnly: r
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { i as default, n as icon, t as iconWrap, e as link, r as srOnly };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=Link.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.module.js","names":["link","iconWrap","icon","srOnly","Link_module_default"],"sources":["../../../../src/components/typography/Link/Link.module.css"],"sourcesContent":["/*\n * Component tokens:\n * --link-thickness resting underline, default max(0.75 × border, 0.065em)\n * --link-thickness-hover default max(border-width, 0.13em)\n * --link-offset default 0.22em\n */\n.link {\n --_ink: var(--color-ink);\n --_ink-hover: var(--_ink);\n --_line: color-mix(in oklch, currentColor 42%, transparent);\n --_line-hover: currentColor;\n\n color: var(--_ink);\n text-decoration-line: underline;\n text-decoration-color: var(--_line);\n text-decoration-thickness: var(--link-thickness, max(calc(var(--border-width) * 0.75), 0.065em));\n text-underline-offset: var(--link-offset, 0.22em);\n text-decoration-skip-ink: auto;\n border-radius: 0.125em;\n cursor: pointer;\n transition:\n color var(--dur-1) var(--ease-out),\n text-decoration-color var(--dur-1) var(--ease-out),\n text-decoration-thickness var(--dur-1) var(--ease-out),\n text-underline-offset var(--dur-1) var(--ease-out);\n}\n\n.link[data-tone='accent'] {\n --_ink: var(--color-accent-text);\n}\n.link[data-tone='muted'] {\n --_ink: var(--color-ink-muted);\n --_ink-hover: var(--color-ink);\n}\n\n.link[data-underline='hover'] {\n text-decoration-color: transparent;\n}\n\n@media (hover: hover) {\n .link:hover {\n color: var(--_ink-hover);\n text-decoration-color: var(--_line-hover);\n text-decoration-thickness: var(--link-thickness-hover, max(var(--border-width), 0.13em));\n }\n}\n\n.link:focus-visible {\n outline: 2px solid var(--color-focus);\n outline-offset: 2px;\n text-decoration-color: var(--_line-hover);\n}\n\n/* The arrow hugs the last word (no wrap point before it) and sits a touch high.\n The glyph's own side-bearing is the gap, so no extra margin. */\n.iconWrap {\n white-space: nowrap;\n}\n.icon {\n display: inline-block;\n inline-size: 0.85em;\n block-size: 0.85em;\n margin-inline: -0.04em -0.12em;\n vertical-align: 0;\n transition: translate var(--dur-1) var(--ease-spring);\n}\n@media (hover: hover) {\n .link:hover .icon {\n translate: 0.08em -0.08em;\n }\n}\n\n.srOnly {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type DataHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
export type NumeralTone = 'auto' | 'default' | 'muted' | 'accent' | 'positive' | 'caution' | 'critical';
|
|
3
|
+
export type NumeralSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'display-sm' | 'display-md' | 'display-lg';
|
|
4
|
+
export interface NumeralProps extends Omit<DataHTMLAttributes<HTMLDataElement>, 'value' | 'children' | 'prefix'> {
|
|
5
|
+
value: number;
|
|
6
|
+
/** Passed straight to `Intl.NumberFormat` (percent, units, fraction digits, compact…). */
|
|
7
|
+
format?: Intl.NumberFormatOptions;
|
|
8
|
+
/** BCP 47 locale. Default `en-AU`. */
|
|
9
|
+
locale?: string;
|
|
10
|
+
/** Shorthand for `format.signDisplay`. `exceptZero` shows +/− on everything but zero. */
|
|
11
|
+
signDisplay?: Intl.NumberFormatOptions['signDisplay'];
|
|
12
|
+
/** `auto` colours by sign: positive → positive tone, negative → critical. Omit to inherit. */
|
|
13
|
+
tone?: NumeralTone;
|
|
14
|
+
/** Step on the type scale. Omit to inherit — figures usually sit inside other text. */
|
|
15
|
+
size?: NumeralSize;
|
|
16
|
+
/** Set before the figures, proportional (not tabular): "≈", "#", "Rank ". Add your own spacing. */
|
|
17
|
+
prefix?: ReactNode;
|
|
18
|
+
/** Set after the figures, proportional: " seats", "×", " km". Add your own spacing. */
|
|
19
|
+
suffix?: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A formatted number. Always tabular, lining figures in the theme's numeric face, and
|
|
23
|
+
* wrapped in <data value> so the machine-readable value travels with it. Separators
|
|
24
|
+
* and symbols are set proportionally: some faces (Schibsted) make a tabular comma as
|
|
25
|
+
* wide as a digit, which reads as "1 , 017". Right-aligned columns still line up.
|
|
26
|
+
*
|
|
27
|
+
* <Numeral value={0.184} format={{ style: 'percent', maximumFractionDigits: 1 }} signDisplay="exceptZero" tone="auto" />
|
|
28
|
+
*/
|
|
29
|
+
export declare const Numeral: import("react").ForwardRefExoticComponent<NumeralProps & import("react").RefAttributes<HTMLDataElement>>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { cx as e } from "../../../utils/cx.js";
|
|
2
|
+
import { formatNumeralParts as t, signOf as n } from "./format.js";
|
|
3
|
+
import r from "./Numeral.module.js";
|
|
4
|
+
import { Fragment as i, forwardRef as a } from "react";
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/typography/Numeral/Numeral.tsx
|
|
7
|
+
var c = a(function({ value: a, format: c, locale: l = "en-AU", signDisplay: u, tone: d, size: f, prefix: p, suffix: m, className: h, ...g }, _) {
|
|
8
|
+
let v = n(a), y = t(a, l, u ? {
|
|
9
|
+
...c,
|
|
10
|
+
signDisplay: u
|
|
11
|
+
} : c), b = d === "auto" ? v === "positive" ? "positive" : v === "negative" ? "critical" : void 0 : d;
|
|
12
|
+
return /* @__PURE__ */ s("data", {
|
|
13
|
+
ref: _,
|
|
14
|
+
value: String(a),
|
|
15
|
+
className: e(r.numeral, h),
|
|
16
|
+
"data-sign": v,
|
|
17
|
+
"data-tone": b,
|
|
18
|
+
"data-size": f,
|
|
19
|
+
...g,
|
|
20
|
+
children: [
|
|
21
|
+
p != null && p !== !1 ? /* @__PURE__ */ o("span", {
|
|
22
|
+
className: r.mark,
|
|
23
|
+
"data-affix": "prefix",
|
|
24
|
+
children: p
|
|
25
|
+
}) : null,
|
|
26
|
+
y.map((e, t) => e.kind === "mark" ? /* @__PURE__ */ o("span", {
|
|
27
|
+
className: r.mark,
|
|
28
|
+
children: e.value
|
|
29
|
+
}, t) : /* @__PURE__ */ o(i, { children: e.value }, t)),
|
|
30
|
+
m != null && m !== !1 ? /* @__PURE__ */ o("span", {
|
|
31
|
+
className: r.mark,
|
|
32
|
+
"data-affix": "suffix",
|
|
33
|
+
children: m
|
|
34
|
+
}) : null
|
|
35
|
+
]
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { c as Numeral };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=Numeral.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Numeral.js","names":["styles","Numeral_module_default","Numeral","forwardRef","rest","sign","signOf","value","parts","formatNumeralParts","locale","signDisplay","format","resolvedTone","tone","cx","className","size","prefix","part","i","Fragment","suffix"],"sources":["../../../../src/components/typography/Numeral/Numeral.tsx"],"sourcesContent":["import { Fragment, forwardRef, type DataHTMLAttributes, type ReactNode } from 'react'\nimport { cx } from '#utils/cx'\nimport { formatNumeralParts, signOf } from './format'\nimport styles from './Numeral.module.css'\n\nexport type NumeralTone =\n 'auto' | 'default' | 'muted' | 'accent' | 'positive' | 'caution' | 'critical'\nexport type NumeralSize =\n 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'display-sm' | 'display-md' | 'display-lg'\n\nexport interface NumeralProps extends Omit<\n DataHTMLAttributes<HTMLDataElement>,\n 'value' | 'children' | 'prefix'\n> {\n value: number\n /** Passed straight to `Intl.NumberFormat` (percent, units, fraction digits, compact…). */\n format?: Intl.NumberFormatOptions\n /** BCP 47 locale. Default `en-AU`. */\n locale?: string\n /** Shorthand for `format.signDisplay`. `exceptZero` shows +/− on everything but zero. */\n signDisplay?: Intl.NumberFormatOptions['signDisplay']\n /** `auto` colours by sign: positive → positive tone, negative → critical. Omit to inherit. */\n tone?: NumeralTone\n /** Step on the type scale. Omit to inherit — figures usually sit inside other text. */\n size?: NumeralSize\n /** Set before the figures, proportional (not tabular): \"≈\", \"#\", \"Rank \". Add your own spacing. */\n prefix?: ReactNode\n /** Set after the figures, proportional: \" seats\", \"×\", \" km\". Add your own spacing. */\n suffix?: ReactNode\n}\n\n/**\n * A formatted number. Always tabular, lining figures in the theme's numeric face, and\n * wrapped in <data value> so the machine-readable value travels with it. Separators\n * and symbols are set proportionally: some faces (Schibsted) make a tabular comma as\n * wide as a digit, which reads as \"1 , 017\". Right-aligned columns still line up.\n *\n * <Numeral value={0.184} format={{ style: 'percent', maximumFractionDigits: 1 }} signDisplay=\"exceptZero\" tone=\"auto\" />\n */\nexport const Numeral = forwardRef<HTMLDataElement, NumeralProps>(function Numeral(\n { value, format, locale = 'en-AU', signDisplay, tone, size, prefix, suffix, className, ...rest },\n ref,\n) {\n const sign = signOf(value)\n const parts = formatNumeralParts(value, locale, signDisplay ? { ...format, signDisplay } : format)\n const resolvedTone =\n tone === 'auto'\n ? sign === 'positive'\n ? 'positive'\n : sign === 'negative'\n ? 'critical'\n : undefined\n : tone\n return (\n <data\n ref={ref}\n value={String(value)}\n className={cx(styles.numeral, className)}\n data-sign={sign}\n data-tone={resolvedTone}\n data-size={size}\n {...rest}\n >\n {prefix != null && prefix !== false ? (\n <span className={styles.mark} data-affix=\"prefix\">\n {prefix}\n </span>\n ) : null}\n {parts.map((part, i) =>\n part.kind === 'mark' ? (\n <span key={i} className={styles.mark}>\n {part.value}\n </span>\n ) : (\n <Fragment key={i}>{part.value}</Fragment>\n ),\n )}\n {suffix != null && suffix !== false ? (\n <span className={styles.mark} data-affix=\"suffix\">\n {suffix}\n </span>\n ) : null}\n </data>\n )\n})\n"],"mappings":";;;;;;AAuCA,IAAaE,IAAUC,EAA0C,SAC/D,EAAE,UAAO,WAAQ,YAAS,SAAS,gBAAa,SAAM,SAAM,WAAQ,WAAQ,cAAW,GAAGC,KAC1F,GACA;CACA,IAAMC,IAAOC,EAAOC,CAAK,GACnBC,IAAQC,EAAmBF,GAAOG,GAAQC,IAAc;EAAE,GAAGC;EAAQ;CAAY,IAAIA,CAAM,GAC3FC,IACJC,MAAS,SACLT,MAAS,aACP,aACAA,MAAS,aACP,aACA,KAAA,IACJS;CACN,OACE,kBAAC,QAAD;EACO;EACL,OAAO,OAAOP,CAAK;EACnB,WAAWQ,EAAGf,EAAO,SAASgB,CAAS;EACvC,aAAWX;EACX,aAAWQ;EACX,aAAWI;EACX,GAAIb;EAPN,UAAA;GASGc,KAAU,QAAQA,MAAW,KAC5B,kBAAC,QAAD;IAAM,WAAWlB,EAAO;IAAM,cAAW;IACtC,UAAAkB;GACG,CAAA,IACJ;GACHV,EAAM,KAAK,GAAM,MAChBW,EAAK,SAAS,SACZ,kBAAC,QAAD;IAAc,WAAWnB,EAAO;IAC7B,UAAAmB,EAAK;GACF,GAFKC,CAEL,IAEN,kBAACC,GAAD,EAAA,UAAmBF,EAAK,MAAgB,GAAzBC,CAAyB,CAE5C;GACCE,KAAU,QAAQA,MAAW,KAC5B,kBAAC,QAAD;IAAM,WAAWtB,EAAO;IAAM,cAAW;IACtC,UAAAsB;GACG,CAAA,IACJ;EACA;;AAEV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/components/typography/Numeral/Numeral.module.css
|
|
2
|
+
var e = "kiln-Numeral__numeral", t = "kiln-Numeral__mark", n = {
|
|
3
|
+
numeral: e,
|
|
4
|
+
mark: t
|
|
5
|
+
};
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default, t as mark, e as numeral };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=Numeral.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Numeral.module.js","names":["numeral","mark","Numeral_module_default"],"sources":["../../../../src/components/typography/Numeral/Numeral.module.css"],"sourcesContent":["/*\n * Figures: --font-numeric, stretched per theme (Ledger's condensed receipt-tape mono),\n * tabular + lining so columns align and live values don't jiggle.\n *\n * Component tokens:\n * --numeral-display-weight default var(--display-weight)\n * --numeral-tracking default 0 (display sizes tighten slightly)\n * --numeral-weight default inherits (a condensed numeric face may want more)\n * --numeral-scale size relative to surrounding text when no `size`, default 1\n */\n.numeral {\n font-family: var(--font-numeric);\n font-stretch: var(--numeric-stretch);\n font-variant-numeric: tabular-nums lining-nums;\n font-feature-settings:\n 'tnum' 1,\n 'lnum' 1;\n font-size: calc(1em * var(--numeral-scale, 1));\n /* No fallback on purpose: unset → the inherited weight */\n font-weight: var(--numeral-weight);\n letter-spacing: var(--numeral-tracking, 0);\n white-space: nowrap;\n}\n\n.numeral[data-tone] {\n color: var(--_ink);\n}\n.numeral[data-tone='default'] {\n --_ink: var(--color-ink);\n}\n.numeral[data-tone='muted'] {\n --_ink: var(--color-ink-muted);\n}\n.numeral[data-tone='accent'] {\n --_ink: var(--color-accent-text);\n}\n.numeral[data-tone='positive'] {\n --_ink: var(--tone-positive-text);\n}\n.numeral[data-tone='caution'] {\n --_ink: var(--tone-caution-text);\n}\n.numeral[data-tone='critical'] {\n --_ink: var(--tone-critical-text);\n}\n\n.numeral[data-size] {\n font-size: var(--_fs);\n line-height: var(--leading-snug);\n}\n.numeral[data-size='xs'] {\n --_fs: var(--text-xs);\n}\n.numeral[data-size='sm'] {\n --_fs: var(--text-sm);\n}\n.numeral[data-size='md'] {\n --_fs: var(--text-md);\n}\n.numeral[data-size='lg'] {\n --_fs: var(--text-lg);\n}\n.numeral[data-size='xl'] {\n --_fs: var(--text-xl);\n}\n.numeral[data-size='2xl'] {\n --_fs: var(--text-2xl);\n}\n.numeral[data-size='3xl'] {\n --_fs: var(--text-3xl);\n}\n.numeral[data-size='display-sm'] {\n --_fs: var(--text-display-sm);\n}\n.numeral[data-size='display-md'] {\n --_fs: var(--text-display-md);\n}\n.numeral[data-size='display-lg'] {\n --_fs: var(--text-display-lg);\n}\n\n.numeral:is([data-size='2xl'], [data-size='3xl'], [data-size^='display']) {\n font-weight: var(--numeral-display-weight, var(--display-weight));\n letter-spacing: var(--numeral-tracking, -0.015em);\n line-height: max(var(--leading-tight), 1);\n}\n\n/* Separators, currency and units: proportional, so they don't open gaps between digits */\n.mark {\n font-variant-numeric: proportional-nums lining-nums;\n font-feature-settings:\n 'tnum' 0,\n 'lnum' 1;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type NumeralSign = 'positive' | 'negative' | 'zero';
|
|
2
|
+
/** Resolve a number's sign, treating -0 as zero. */
|
|
3
|
+
export declare function signOf(value: number): NumeralSign;
|
|
4
|
+
export interface NumeralPart {
|
|
5
|
+
/** `figure` for digits and signs (tabular); `mark` for separators, symbols and units. */
|
|
6
|
+
kind: 'figure' | 'mark';
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Format a number into runs of figures and marks. Hyphens become a true minus sign
|
|
11
|
+
* (U+2212) so negatives are as wide as positives. Adjacent parts of the same kind are
|
|
12
|
+
* merged, so a plain integer is a single run.
|
|
13
|
+
*/
|
|
14
|
+
export declare function formatNumeralParts(value: number, locale?: string, format?: Intl.NumberFormatOptions): NumeralPart[];
|
|
15
|
+
/** Format a number the way <Numeral> shows it, as a plain string. */
|
|
16
|
+
export declare function formatNumeral(value: number, locale?: string, format?: Intl.NumberFormatOptions): string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/components/typography/Numeral/format.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e > 0 ? "positive" : e < 0 ? "negative" : "zero";
|
|
4
|
+
}
|
|
5
|
+
var t = /* @__PURE__ */ new Set([
|
|
6
|
+
"integer",
|
|
7
|
+
"fraction",
|
|
8
|
+
"minusSign",
|
|
9
|
+
"plusSign",
|
|
10
|
+
"nan",
|
|
11
|
+
"infinity"
|
|
12
|
+
]);
|
|
13
|
+
function n(e, n = "en-AU", r) {
|
|
14
|
+
let i = Object.is(e, -0) ? 0 : e, a = [];
|
|
15
|
+
for (let e of new Intl.NumberFormat(n, r).formatToParts(i)) {
|
|
16
|
+
let n = t.has(e.type) ? "figure" : "mark", r = e.type === "minusSign" ? "−" : e.value, i = a[a.length - 1];
|
|
17
|
+
i?.kind === n ? i.value += r : a.push({
|
|
18
|
+
kind: n,
|
|
19
|
+
value: r
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
}
|
|
24
|
+
function r(e, t = "en-AU", r) {
|
|
25
|
+
return n(e, t, r).map((e) => e.value).join("");
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { r as formatNumeral, n as formatNumeralParts, e as signOf };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.js","names":["signOf","value","FIGURE_PARTS","formatNumeralParts","normalised","runs","part","locale","format","kind","text","last","formatNumeral","p"],"sources":["../../../../src/components/typography/Numeral/format.ts"],"sourcesContent":["export type NumeralSign = 'positive' | 'negative' | 'zero'\n\n/** Resolve a number's sign, treating -0 as zero. */\nexport function signOf(value: number): NumeralSign {\n return value > 0 ? 'positive' : value < 0 ? 'negative' : 'zero'\n}\n\nexport interface NumeralPart {\n /** `figure` for digits and signs (tabular); `mark` for separators, symbols and units. */\n kind: 'figure' | 'mark'\n value: string\n}\n\nconst FIGURE_PARTS = new Set<Intl.NumberFormatPartTypes>([\n 'integer',\n 'fraction',\n 'minusSign',\n 'plusSign',\n 'nan',\n 'infinity',\n])\n\n/**\n * Format a number into runs of figures and marks. Hyphens become a true minus sign\n * (U+2212) so negatives are as wide as positives. Adjacent parts of the same kind are\n * merged, so a plain integer is a single run.\n */\nexport function formatNumeralParts(\n value: number,\n locale = 'en-AU',\n format?: Intl.NumberFormatOptions,\n): NumeralPart[] {\n const normalised = Object.is(value, -0) ? 0 : value\n const runs: NumeralPart[] = []\n for (const part of new Intl.NumberFormat(locale, format).formatToParts(normalised)) {\n const kind = FIGURE_PARTS.has(part.type) ? 'figure' : 'mark'\n const text = part.type === 'minusSign' ? '−' : part.value\n const last = runs[runs.length - 1]\n if (last?.kind === kind) last.value += text\n else runs.push({ kind, value: text })\n }\n return runs\n}\n\n/** Format a number the way <Numeral> shows it, as a plain string. */\nexport function formatNumeral(\n value: number,\n locale = 'en-AU',\n format?: Intl.NumberFormatOptions,\n): string {\n return formatNumeralParts(value, locale, format)\n .map((p) => p.value)\n .join('')\n}\n"],"mappings":";AAGA,SAAgBA,EAAO,GAA4B;CACjD,OAAOC,IAAQ,IAAI,aAAaA,IAAQ,IAAI,aAAa;AAC3D;AAQA,IAAMC,oBAAe,IAAI,IAAgC;CACvD;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAOD,SAAgBC,EACd,GACA,IAAS,SACT,GACe;CACf,IAAMC,IAAa,OAAO,GAAGH,GAAO,EAAE,IAAI,IAAIA,GACxCI,IAAsB,CAAC;CAC7B,KAAK,IAAMC,KAAQ,IAAI,KAAK,aAAaC,GAAQC,CAAM,CAAC,CAAC,cAAcJ,CAAU,GAAG;EAClF,IAAMK,IAAOP,EAAa,IAAII,EAAK,IAAI,IAAI,WAAW,QAChDI,IAAOJ,EAAK,SAAS,cAAc,MAAMA,EAAK,OAC9CK,IAAON,EAAKA,EAAK,SAAS;EAChC,AAAIM,GAAM,SAASF,IAAM,EAAK,SAASC,IAClCL,EAAK,KAAK;GAAE;GAAM,OAAOK;EAAK,CAAC;CACtC;CACA,OAAOL;AACT;AAGA,SAAgBO,EACd,GACA,IAAS,SACT,GACQ;CACR,OAAOT,EAAmBF,GAAOM,GAAQC,CAAM,CAAC,CAC7C,KAAK,MAAMK,EAAE,KAAK,CAAC,CACnB,KAAK,EAAE;AACZ"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
export type ProseSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export type ProseElement = 'div' | 'article' | 'section';
|
|
4
|
+
export interface ProseProps extends HTMLAttributes<HTMLElement> {
|
|
5
|
+
/** `md` (default) is the theme's `--prose-size`; `sm` for notes and sidebars, `lg` for essays. */
|
|
6
|
+
size?: ProseSize;
|
|
7
|
+
as?: ProseElement;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Long-form writing. Styles raw HTML/MDX children — headings, lists, quotes, code,
|
|
11
|
+
* figures, tables — in the theme's prose face with a comfortable measure and a
|
|
12
|
+
* vertical rhythm from the space scale.
|
|
13
|
+
*
|
|
14
|
+
* <Prose as="article"><MDXContent /></Prose>
|
|
15
|
+
*/
|
|
16
|
+
export declare const Prose: import("react").ForwardRefExoticComponent<ProseProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { cx as e } from "../../../utils/cx.js";
|
|
2
|
+
import t from "./Prose.module.js";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/typography/Prose/Prose.tsx
|
|
6
|
+
var i = n(function({ size: n = "md", as: i = "div", className: a, ...o }, s) {
|
|
7
|
+
return /* @__PURE__ */ r(i, {
|
|
8
|
+
ref: s,
|
|
9
|
+
className: e(t.prose, a),
|
|
10
|
+
"data-size": n,
|
|
11
|
+
...o
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { i as Prose };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=Prose.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Prose.js","names":["styles","Prose_module_default","Prose","forwardRef","Comp","rest","cx","className","size"],"sources":["../../../../src/components/typography/Prose/Prose.tsx"],"sourcesContent":["import { forwardRef, type HTMLAttributes } from 'react'\nimport { cx } from '#utils/cx'\nimport styles from './Prose.module.css'\n\nexport type ProseSize = 'sm' | 'md' | 'lg'\nexport type ProseElement = 'div' | 'article' | 'section'\n\nexport interface ProseProps extends HTMLAttributes<HTMLElement> {\n /** `md` (default) is the theme's `--prose-size`; `sm` for notes and sidebars, `lg` for essays. */\n size?: ProseSize\n as?: ProseElement\n}\n\n/**\n * Long-form writing. Styles raw HTML/MDX children — headings, lists, quotes, code,\n * figures, tables — in the theme's prose face with a comfortable measure and a\n * vertical rhythm from the space scale.\n *\n * <Prose as=\"article\"><MDXContent /></Prose>\n */\nexport const Prose = forwardRef<HTMLElement, ProseProps>(function Prose(\n { size = 'md', as: Comp = 'div', className, ...rest },\n ref,\n) {\n return (\n <Comp\n // @ts-expect-error — polymorphic ref across a union of intrinsic elements is safe here\n ref={ref}\n className={cx(styles.prose, className)}\n data-size={size}\n {...rest}\n />\n )\n})\n"],"mappings":";;;;;AAoBA,IAAaE,IAAQC,EAAoC,SACvD,EAAE,UAAO,MAAM,IAAIC,IAAO,OAAO,cAAW,GAAGC,KAC/C,GACA;CACA,OACE,kBAACD,GAAD;EAEO;EACL,WAAWE,EAAGN,EAAO,OAAOO,CAAS;EACrC,aAAWC;EACX,GAAIH;CACL,CAAA;AAEL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Prose.module.js","names":["prose","Prose_module_default"],"sources":["../../../../src/components/typography/Prose/Prose.module.css"],"sourcesContent":["/*\n * Long-form writing. Descendant selectors are wrapped in :where() so every rule stays at\n * one-class specificity — a consumer's className (or an MDX component) always wins.\n *\n * Library components placed inside Prose (CodeBlock, Quote, Card, Table, Alert…) carry\n * `data-kiln-component` on their root, and every descendant rule ends in\n * :not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *))\n * so it stops at that boundary — Prose styles raw HTML/MDX, never a component's insides.\n * (`@scope (.prose) to ([data-kiln-component])` says the same thing; :not() is used for\n * broader browser support.) The boundary must sit *inside* this .prose, so a Prose that\n * is itself inside a Card is still styled.\n *\n * Rhythm: paragraphs flow on --space-4; headings take more above than below (they belong\n * to what follows); figures, code and quotes get a wider --space-6 berth.\n *\n * Component tokens:\n * --prose-measure default 68ch\n * --prose-link-line underline colour for links, default accent at 70%\n */\n.prose {\n --_fs: var(--prose-size);\n --_flow: var(--space-4);\n\n max-inline-size: var(--prose-measure, 68ch);\n color: var(--color-ink);\n font-family: var(--font-prose);\n font-size: var(--_fs);\n line-height: var(--prose-leading);\n font-optical-sizing: auto;\n overflow-wrap: break-word;\n}\n.prose[data-size='sm'] {\n --_fs: calc(var(--prose-size) * 0.89);\n --_flow: var(--space-3);\n}\n.prose[data-size='lg'] {\n --_fs: calc(var(--prose-size) * 1.12);\n --_flow: var(--space-5);\n}\n\n/* ── Flow ─────────────────────────────────────────────────────────────── */\n.prose > * {\n margin-block: 0;\n}\n.prose > * + * {\n margin-block-start: var(--_flow);\n}\n.prose > * + :where(figure, pre, blockquote, table, hr),\n.prose > :where(figure, pre, blockquote, table, hr) + * {\n margin-block-start: var(--space-6);\n}\n.prose > * + :where(h2) {\n margin-block-start: var(--space-7);\n}\n.prose > * + :where(h3) {\n margin-block-start: var(--space-6);\n}\n.prose > * + :where(h4, h5, h6) {\n margin-block-start: var(--space-5);\n}\n.prose > :where(h1, h2, h3, h4, h5, h6) + * {\n margin-block-start: var(--space-3);\n}\n\n/* ── Text ─────────────────────────────────────────────────────────────── */\n.prose :where(p, li):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n text-wrap: pretty;\n}\n.prose :where(strong, b):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n font-weight: 650;\n}\n.prose\n :where(h1, h2, h3, h4, h5, h6):not(\n :where(.prose [data-kiln-component], .prose [data-kiln-component] *)\n )\n strong {\n font-weight: inherit;\n}\n.prose :where(mark):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n padding-inline: 0.15em;\n border-radius: 0.15em;\n background: var(--color-highlight);\n color: var(--color-highlight-ink);\n}\n.prose :where(small):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n font-size: 0.84em;\n color: var(--color-ink-muted);\n}\n.prose\n :where(abbr[title]):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n text-decoration: underline dotted;\n text-underline-offset: 0.2em;\n cursor: help;\n}\n\n/* ── Headings: the theme's heading role, scaled from the prose size ────── */\n.prose\n :where(h1, h2, h3):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n font-family: var(--heading-font);\n font-weight: var(--heading-weight);\n letter-spacing: var(--heading-tracking);\n text-transform: var(--heading-transform);\n line-height: var(--leading-snug);\n color: var(--color-ink);\n text-wrap: balance;\n}\n.prose :where(h1):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n font-size: calc(1em * pow(var(--type-ratio), 3));\n}\n.prose :where(h2):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n font-size: calc(1em * pow(var(--type-ratio), 2));\n}\n.prose :where(h3):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n font-size: calc(1em * var(--type-ratio));\n}\n/* Small headings step out of the display face into the text face — a run-in label, not a title. */\n.prose\n :where(h4, h5, h6):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n font-family: var(--font-text);\n font-size: 1em;\n font-weight: var(--label-weight);\n letter-spacing: var(--label-tracking);\n line-height: var(--leading-snug);\n color: var(--color-ink);\n}\n.prose :where(h5, h6):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n font-size: 0.89em;\n color: var(--color-ink-muted);\n}\n\n/* ── Links: ink text, accent rule; hover thickens ─────────────────────── */\n.prose :where(a):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n color: inherit;\n text-decoration-line: underline;\n text-decoration-color: var(\n --prose-link-line,\n color-mix(in oklch, var(--color-accent) 70%, transparent)\n );\n text-decoration-thickness: max(calc(var(--border-width) * 0.75), 0.065em);\n text-underline-offset: 0.22em;\n transition:\n text-decoration-color var(--dur-1) var(--ease-out),\n text-decoration-thickness var(--dur-1) var(--ease-out);\n}\n@media (hover: hover) {\n .prose :where(a):hover {\n text-decoration-color: var(--color-accent);\n text-decoration-thickness: max(var(--border-width), 0.13em);\n }\n}\n.prose\n :where(a):not(\n :where(.prose [data-kiln-component], .prose [data-kiln-component] *)\n ):focus-visible {\n outline: 2px solid var(--color-focus);\n outline-offset: 2px;\n border-radius: 0.125em;\n}\n\n/* ── Lists ────────────────────────────────────────────────────────────── */\n.prose :where(ul, ol):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n padding-inline-start: 1.35em;\n}\n.prose :where(li + li):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)),\n.prose\n :where(li > ul, li > ol):not(\n :where(.prose [data-kiln-component], .prose [data-kiln-component] *)\n ) {\n margin-block-start: var(--space-2);\n}\n.prose\n :where(li):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *))::marker {\n color: var(--color-ink-subtle);\n}\n.prose\n :where(ol > li):not(\n :where(.prose [data-kiln-component], .prose [data-kiln-component] *)\n )::marker {\n font-family: var(--font-numeric);\n font-stretch: var(--numeric-stretch);\n /* Lining but proportional: some faces give a tabular '.' a full figure width */\n font-variant-numeric: lining-nums;\n font-size: 0.9em;\n}\n.prose\n :where(ul > li):not(\n :where(.prose [data-kiln-component], .prose [data-kiln-component] *)\n )::marker {\n content: '\\2013\\00a0\\00a0';\n}\n.prose :where(dl):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n display: grid;\n gap: var(--space-1) var(--space-4);\n}\n.prose :where(dt):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n font-family: var(--font-text);\n font-weight: var(--label-weight);\n}\n.prose :where(dd):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n margin: 0;\n color: var(--color-ink-muted);\n}\n\n/* ── Quotes: a hanging mark in the display face, no rule down the side ── */\n.prose\n :where(blockquote):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n position: relative;\n margin-inline: 0;\n padding-inline-start: 1.25em;\n color: var(--color-ink-muted);\n font-size: 1.06em;\n}\n.prose\n :where(blockquote):not(\n :where(.prose [data-kiln-component], .prose [data-kiln-component] *)\n )::before {\n content: '\\201C';\n position: absolute;\n inset-inline-start: -0.04em;\n inset-block-start: -0.06em;\n color: var(--color-accent-text);\n font-family: var(--font-display);\n font-weight: var(--display-weight);\n font-size: 2.1em;\n line-height: 1;\n}\n.prose\n :where(blockquote):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *))\n > *\n + * {\n margin-block-start: var(--space-3);\n}\n.prose\n :where(blockquote cite, blockquote footer):not(\n :where(.prose [data-kiln-component], .prose [data-kiln-component] *)\n ) {\n display: block;\n font-family: var(--font-text);\n font-size: 0.8em;\n font-style: normal;\n color: var(--color-ink-subtle);\n}\n.prose :where(q):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n quotes: '\\201C' '\\201D' '\\2018' '\\2019';\n}\n\n/* ── Code ─────────────────────────────────────────────────────────────── */\n.prose\n :where(code, kbd, samp):not(\n :where(.prose [data-kiln-component], .prose [data-kiln-component] *)\n ) {\n font-family: var(--font-mono);\n font-stretch: var(--mono-stretch);\n font-size: 0.8em;\n font-variant-ligatures: none;\n letter-spacing: 0;\n text-transform: none;\n}\n.prose\n :where(:not(pre) > code):not(\n :where(.prose [data-kiln-component], .prose [data-kiln-component] *)\n ) {\n padding: 0.08em 0.26em;\n font-size: 0.85em;\n font-weight: 400;\n border-radius: calc(var(--radius-field) / 2);\n background: var(--color-surface-sunken);\n overflow-wrap: anywhere;\n box-decoration-break: clone;\n -webkit-box-decoration-break: clone;\n}\n.prose :where(kbd):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n padding: 0.1em 0.4em;\n border: var(--border-width) solid var(--color-line-strong);\n border-block-end-width: calc(var(--border-width) + 1px);\n border-radius: calc(var(--radius-field) / 2);\n font-family: var(--font-text);\n font-weight: var(--label-weight);\n}\n.prose :where(pre):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n padding: var(--space-4) var(--space-5);\n overflow-x: auto;\n border-radius: var(--radius-media);\n background: var(--color-surface-sunken);\n line-height: 1.65;\n tab-size: 2;\n white-space: pre;\n}\n.prose\n :where(pre):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *))\n :where(code) {\n font-size: 0.78em;\n}\n.prose\n :where(pre):not(\n :where(.prose [data-kiln-component], .prose [data-kiln-component] *)\n ):focus-visible {\n outline: 2px solid var(--color-focus);\n outline-offset: 2px;\n}\n\n/* ── Figures ──────────────────────────────────────────────────────────── */\n.prose\n :where(img, video, svg):not(\n :where(.prose [data-kiln-component], .prose [data-kiln-component] *)\n ) {\n display: block;\n max-inline-size: 100%;\n block-size: auto;\n}\n.prose :where(figure):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n margin-inline: 0;\n}\n.prose\n :where(figure):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *))\n :where(img, video) {\n inline-size: 100%;\n border-radius: var(--radius-media);\n}\n.prose\n :where(figcaption):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n margin-block-start: var(--space-3);\n font-family: var(--font-text);\n font-size: var(--text-sm);\n line-height: var(--leading-snug);\n color: var(--color-ink-muted);\n text-wrap: pretty;\n}\n\n/* ── Rules & tables ───────────────────────────────────────────────────── */\n.prose :where(hr):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n block-size: 0;\n border: 0;\n border-block-start: var(--border-width) solid var(--color-line);\n}\n.prose :where(table):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n inline-size: 100%;\n border-collapse: collapse;\n font-family: var(--font-text);\n font-size: var(--text-sm);\n line-height: var(--leading-snug);\n font-variant-numeric: tabular-nums lining-nums;\n}\n.prose :where(caption):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n padding-block-end: var(--space-2);\n text-align: start;\n color: var(--color-ink-muted);\n}\n.prose :where(th, td):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n padding: var(--space-2) var(--space-3);\n border-block-end: var(--border-width) solid var(--color-line);\n text-align: start;\n vertical-align: top;\n}\n.prose\n :where(th:first-child, td:first-child):not(\n :where(.prose [data-kiln-component], .prose [data-kiln-component] *)\n ) {\n padding-inline-start: 0;\n}\n.prose\n :where(th:last-child, td:last-child):not(\n :where(.prose [data-kiln-component], .prose [data-kiln-component] *)\n ) {\n padding-inline-end: 0;\n}\n.prose :where(thead th):not(:where(.prose [data-kiln-component], .prose [data-kiln-component] *)) {\n border-block-end-color: var(--color-line-strong);\n font-weight: var(--label-weight);\n color: var(--color-ink-muted);\n}\n.prose\n :where(td[align='right'], th[align='right']):not(\n :where(.prose [data-kiln-component], .prose [data-kiln-component] *)\n ),\n.prose\n :where(td[data-numeric], th[data-numeric]):not(\n :where(.prose [data-kiln-component], .prose [data-kiln-component] *)\n ) {\n text-align: end;\n font-family: var(--font-numeric);\n font-stretch: var(--numeric-stretch);\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
export type QuoteSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export interface QuoteProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
+
/** Who said it. A name, or a name plus role: `<>Rosa Nguyen<br />Head of design</>`. */
|
|
5
|
+
cite?: ReactNode;
|
|
6
|
+
/** URL of the source, set on the <blockquote cite> attribute. */
|
|
7
|
+
citeUrl?: string;
|
|
8
|
+
/**
|
|
9
|
+
* `sm` a testimonial in the prose face; `md` (default) a pull quote in the display
|
|
10
|
+
* face; `lg` the one quote a page is built around.
|
|
11
|
+
*/
|
|
12
|
+
size?: QuoteSize;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A pull quote or testimonial. The opening mark hangs in its own column in the display
|
|
16
|
+
* face — the typographer's treatment, not a coloured bar down the side.
|
|
17
|
+
*
|
|
18
|
+
* <Quote cite="Ada Okafor">Software should stay out of the way.</Quote>
|
|
19
|
+
*/
|
|
20
|
+
export declare const Quote: import("react").ForwardRefExoticComponent<QuoteProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { cx as e } from "../../../utils/cx.js";
|
|
2
|
+
import t from "./Quote.module.js";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/typography/Quote/Quote.tsx
|
|
6
|
+
var a = n(function({ cite: n, citeUrl: a, size: o = "md", className: s, children: c, ...l }, u) {
|
|
7
|
+
return /* @__PURE__ */ i("figure", {
|
|
8
|
+
ref: u,
|
|
9
|
+
className: e(t.quote, s),
|
|
10
|
+
"data-kiln-component": "",
|
|
11
|
+
"data-size": o,
|
|
12
|
+
...l,
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ r("span", {
|
|
15
|
+
className: t.mark,
|
|
16
|
+
"aria-hidden": "true",
|
|
17
|
+
children: "“"
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ r("blockquote", {
|
|
20
|
+
className: t.body,
|
|
21
|
+
cite: a,
|
|
22
|
+
children: c
|
|
23
|
+
}),
|
|
24
|
+
n ? /* @__PURE__ */ r("figcaption", {
|
|
25
|
+
className: t.cite,
|
|
26
|
+
children: n
|
|
27
|
+
}) : null
|
|
28
|
+
]
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
export { a as Quote };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=Quote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Quote.js","names":["styles","Quote_module_default","Quote","forwardRef","rest","cx","className","size","citeUrl","cite"],"sources":["../../../../src/components/typography/Quote/Quote.tsx"],"sourcesContent":["import { forwardRef, type HTMLAttributes, type ReactNode } from 'react'\nimport { cx } from '#utils/cx'\nimport styles from './Quote.module.css'\n\nexport type QuoteSize = 'sm' | 'md' | 'lg'\n\nexport interface QuoteProps extends HTMLAttributes<HTMLElement> {\n /** Who said it. A name, or a name plus role: `<>Rosa Nguyen<br />Head of design</>`. */\n cite?: ReactNode\n /** URL of the source, set on the <blockquote cite> attribute. */\n citeUrl?: string\n /**\n * `sm` a testimonial in the prose face; `md` (default) a pull quote in the display\n * face; `lg` the one quote a page is built around.\n */\n size?: QuoteSize\n}\n\n/**\n * A pull quote or testimonial. The opening mark hangs in its own column in the display\n * face — the typographer's treatment, not a coloured bar down the side.\n *\n * <Quote cite=\"Ada Okafor\">Software should stay out of the way.</Quote>\n */\nexport const Quote = forwardRef<HTMLElement, QuoteProps>(function Quote(\n { cite, citeUrl, size = 'md', className, children, ...rest },\n ref,\n) {\n return (\n <figure\n ref={ref}\n className={cx(styles.quote, className)}\n data-kiln-component=\"\"\n data-size={size}\n {...rest}\n >\n <span className={styles.mark} aria-hidden=\"true\">\n {'“'}\n </span>\n <blockquote className={styles.body} cite={citeUrl}>\n {children}\n </blockquote>\n {cite ? <figcaption className={styles.cite}>{cite}</figcaption> : null}\n </figure>\n )\n})\n"],"mappings":";;;;;AAwBA,IAAaE,IAAQC,EAAoC,SACvD,EAAE,SAAM,YAAS,UAAO,MAAM,cAAW,aAAU,GAAGC,KACtD,GACA;CACA,OACE,kBAAC,UAAD;EACO;EACL,WAAWC,EAAGL,EAAO,OAAOM,CAAS;EACrC,uBAAoB;EACpB,aAAWC;EACX,GAAIH;EALN,UAAA;GAOE,kBAAC,QAAD;IAAM,WAAWJ,EAAO;IAAM,eAAY;IACvC,UAAA;GACG,CAAA;GACN,kBAAC,cAAD;IAAY,WAAWA,EAAO;IAAM,MAAMQ;IACvC;GACS,CAAA;GACXC,IAAO,kBAAC,cAAD;IAAY,WAAWT,EAAO;IAAO,UAAAS;GAAiB,CAAA,IAAI;EAC5D;;AAEZ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/components/typography/Quote/Quote.module.css
|
|
2
|
+
var e = "kiln-Quote__quote", t = "kiln-Quote__mark", n = "kiln-Quote__body", r = "kiln-Quote__cite", i = {
|
|
3
|
+
quote: e,
|
|
4
|
+
mark: t,
|
|
5
|
+
body: n,
|
|
6
|
+
cite: r
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as body, r as cite, i as default, t as mark, e as quote };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=Quote.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Quote.module.js","names":["quote","mark","body","cite","Quote_module_default"],"sources":["../../../../src/components/typography/Quote/Quote.module.css"],"sourcesContent":["/*\n * Layout: a two-column grid. The opening quote mark hangs in the first column, so the\n * text keeps a clean left edge and the mark sits in the margin like set type.\n *\n * Component tokens:\n * --quote-mark-color default var(--color-accent-text)\n * --quote-measure default 28ch (md/lg), 60ch (sm)\n */\n/* Zero-specificity reset, so a surrounding flow (Prose, Stack) or a className can space it. */\n:where(.quote) {\n margin: 0;\n}\n.quote {\n --_fs: var(--text-2xl);\n --_measure: var(--quote-measure, 26ch);\n\n display: grid;\n grid-template-columns: 0.62em minmax(0, 1fr);\n column-gap: 0.12em;\n row-gap: var(--space-4);\n font-size: var(--_fs);\n}\n.quote[data-size='sm'] {\n --_fs: var(--text-lg);\n --_measure: var(--quote-measure, 60ch);\n grid-template-columns: 0.75em minmax(0, 1fr);\n row-gap: var(--space-3);\n}\n.quote[data-size='lg'] {\n --_fs: var(--text-display-sm);\n --_measure: var(--quote-measure, 22ch);\n row-gap: var(--space-5);\n}\n\n.mark {\n grid-column: 1;\n grid-row: 1;\n justify-self: end;\n color: var(--quote-mark-color, var(--color-accent-text));\n font-family: var(--font-display);\n font-weight: var(--display-weight);\n font-size: 1.9em;\n line-height: 0.82;\n user-select: none;\n}\n\n.body {\n grid-column: 2;\n grid-row: 1;\n max-inline-size: var(--_measure);\n margin: 0;\n color: var(--color-ink);\n font-family: var(--font-display);\n font-weight: var(--display-weight);\n font-style: var(--display-style);\n font-stretch: var(--display-stretch);\n letter-spacing: calc(var(--display-tracking) * 0.6);\n text-transform: var(--display-transform);\n line-height: calc(var(--leading-tight) + 0.1);\n text-wrap: balance;\n}\n.body > * {\n margin: 0;\n}\n.body > * + * {\n margin-block-start: 0.5em;\n}\n\n/* Testimonials read as prose: the prose face, sentence case, relaxed leading */\n.quote[data-size='sm'] .body {\n font-family: var(--font-prose);\n font-weight: 400;\n font-style: normal;\n letter-spacing: 0;\n text-transform: none;\n line-height: var(--leading-snug);\n text-wrap: pretty;\n}\n.quote[data-size='sm'] .mark {\n font-size: 1.7em;\n line-height: 0.9;\n}\n\n.cite {\n grid-column: 2;\n font-family: var(--font-text);\n font-size: var(--text-sm);\n font-style: normal;\n font-weight: var(--label-weight);\n line-height: var(--leading-snug);\n color: var(--color-ink);\n}\n/* Anything after the name (role, date) steps down */\n.cite :where(br) + *,\n.cite :where(small, span) {\n font-weight: 400;\n color: var(--color-ink-muted);\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import type { Responsive } from '../../../utils/responsive.js';
|
|
3
|
+
import { type HeadingLevel, type HeadingSize } from '../Heading/index.js';
|
|
4
|
+
export type SectionHeaderElement = 'div' | 'header';
|
|
5
|
+
export interface SectionHeaderProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
|
|
6
|
+
/** The section or page title. Rendered as a <Heading>. */
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
/** Heading level. Default 2 (use 1 for a page header). */
|
|
9
|
+
level?: HeadingLevel;
|
|
10
|
+
/** Heading size; defaults from `level`. Responsive. */
|
|
11
|
+
size?: Responsive<HeadingSize>;
|
|
12
|
+
/** A sentence or two under the title. */
|
|
13
|
+
description?: ReactNode;
|
|
14
|
+
/** Buttons or links. Right of the title from `md` up; below it on small screens. */
|
|
15
|
+
actions?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Small context above the title — only when it tells the reader something
|
|
18
|
+
* ("2025–26 financial year", "Sprint 2"). Plain muted text, never a tracked-caps eyebrow.
|
|
19
|
+
*/
|
|
20
|
+
kicker?: ReactNode;
|
|
21
|
+
/** A hairline under the header. */
|
|
22
|
+
divider?: boolean;
|
|
23
|
+
as?: SectionHeaderElement;
|
|
24
|
+
/** Id for the heading, so a surrounding <section aria-labelledby> can point at it. */
|
|
25
|
+
titleId?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The title block for a page or section: optional kicker, heading, description and
|
|
29
|
+
* actions. Title, kicker and description are grouped in an <hgroup>.
|
|
30
|
+
*
|
|
31
|
+
* <SectionHeader title="September invoices" description="$4,182.60 of $5,200 target" actions={<Button>Export CSV</Button>} />
|
|
32
|
+
*/
|
|
33
|
+
export declare const SectionHeader: import("react").ForwardRefExoticComponent<SectionHeaderProps & import("react").RefAttributes<HTMLElement>>;
|