@wonderflow/react-components 10.9.1 → 10.11.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/core/basic.css +1 -1
- package/core/typography.css +1 -1
- package/core.css +1 -1
- package/dist/components/accordion/accordion-context.d.ts +1 -1
- package/dist/components/accordion/accordion-context.d.ts.map +1 -1
- package/dist/components/accordion/accordion-context.js +16 -1
- package/dist/components/accordion/accordion-item.d.ts.map +1 -1
- package/dist/components/accordion/accordion-item.js +15 -0
- package/dist/components/accordion/accordion.d.ts +17 -3
- package/dist/components/accordion/accordion.d.ts.map +1 -1
- package/dist/components/accordion/accordion.js +15 -0
- package/dist/components/accordion/accordion.module.css +1 -1
- package/dist/components/accordion/accordion.stories.d.ts +18 -2
- package/dist/components/accordion/accordion.stories.d.ts.map +1 -1
- package/dist/components/accordion/accordion.stories.js +1 -1
- package/dist/components/accordion/index.d.ts.map +1 -1
- package/dist/components/accordion/index.js +15 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts.map +1 -1
- package/dist/components/aspect-ratio/aspect-ratio.js +15 -0
- package/dist/components/aspect-ratio/aspect-ratio.stories.js +1 -1
- package/dist/components/aspect-ratio/index.d.ts +1 -1
- package/dist/components/aspect-ratio/index.d.ts.map +1 -1
- package/dist/components/aspect-ratio/index.js +15 -0
- package/dist/components/autocomplete/autocomplete-option.d.ts.map +1 -1
- package/dist/components/autocomplete/autocomplete-option.js +15 -0
- package/dist/components/autocomplete/autocomplete.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/components/autocomplete/autocomplete.js +20 -2
- package/dist/components/autocomplete/autocomplete.module.css +1 -1
- package/dist/components/autocomplete/autocomplete.stories.js +2 -2
- package/dist/components/autocomplete/index.d.ts.map +1 -1
- package/dist/components/autocomplete/index.js +15 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/avatar.js +15 -0
- package/dist/components/avatar/avatar.module.css +1 -1
- package/dist/components/avatar/avatar.stories.js +1 -1
- package/dist/components/avatar/index.d.ts.map +1 -1
- package/dist/components/avatar/index.js +15 -0
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +15 -0
- package/dist/components/button/button.module.css +1 -1
- package/dist/components/button/button.stories.js +1 -1
- package/dist/components/button/index.d.ts.map +1 -1
- package/dist/components/button/index.js +15 -0
- package/dist/components/card/card.module.css +1 -1
- package/dist/components/card/index.d.ts.map +1 -1
- package/dist/components/card/index.js +15 -0
- package/dist/components/chip/chip.d.ts.map +1 -1
- package/dist/components/chip/chip.js +15 -0
- package/dist/components/chip/chip.module.css +1 -1
- package/dist/components/chip/chip.stories.js +1 -1
- package/dist/components/chip/index.d.ts.map +1 -1
- package/dist/components/chip/index.js +15 -0
- package/dist/components/circular-progress/circular-progress.d.ts.map +1 -1
- package/dist/components/circular-progress/circular-progress.js +15 -0
- package/dist/components/circular-progress/circular-progress.module.css +1 -1
- package/dist/components/circular-progress/circular-progress.stories.js +1 -1
- package/dist/components/circular-progress/index.d.ts.map +1 -1
- package/dist/components/circular-progress/index.js +15 -0
- package/dist/components/clamp-text/clamp-text.d.ts.map +1 -1
- package/dist/components/clamp-text/clamp-text.js +16 -1
- package/dist/components/clamp-text/clamp-text.module.css +1 -1
- package/dist/components/clamp-text/clamp-text.stories.js +1 -1
- package/dist/components/clamp-text/index.d.ts.map +1 -1
- package/dist/components/clamp-text/index.js +15 -0
- package/dist/components/container/container.d.ts.map +1 -1
- package/dist/components/container/container.js +15 -0
- package/dist/components/container/container.module.css +1 -1
- package/dist/components/container/index.d.ts.map +1 -1
- package/dist/components/container/index.js +15 -0
- package/dist/components/datetime/datetime.d.ts.map +1 -1
- package/dist/components/datetime/datetime.js +15 -0
- package/dist/components/datetime/datetime.stories.js +1 -1
- package/dist/components/datetime/index.d.ts.map +1 -1
- package/dist/components/datetime/index.js +15 -0
- package/dist/components/disclosure/disclosure.d.ts.map +1 -1
- package/dist/components/disclosure/disclosure.js +15 -0
- package/dist/components/disclosure/disclosure.module.css +1 -1
- package/dist/components/disclosure/disclosure.stories.js +1 -1
- package/dist/components/disclosure/index.d.ts.map +1 -1
- package/dist/components/disclosure/index.js +15 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/components/drawer/drawer.js +15 -0
- package/dist/components/drawer/drawer.module.css +1 -1
- package/dist/components/drawer/drawer.stories.js +3 -3
- package/dist/components/drawer/index.d.ts.map +1 -1
- package/dist/components/drawer/index.js +15 -0
- package/dist/components/elevator/elevator.d.ts.map +1 -1
- package/dist/components/elevator/elevator.js +15 -0
- package/dist/components/elevator/elevator.stories.js +1 -1
- package/dist/components/elevator/index.d.ts.map +1 -1
- package/dist/components/elevator/index.js +15 -0
- package/dist/components/expander/expander.d.ts +20 -0
- package/dist/components/expander/expander.d.ts.map +1 -0
- package/dist/components/expander/expander.js +35 -0
- package/dist/components/expander/expander.module.css +1 -0
- package/dist/components/expander/expander.stories.d.ts +7 -0
- package/dist/components/expander/expander.stories.d.ts.map +1 -0
- package/dist/components/expander/expander.stories.js +16 -0
- package/dist/components/expander/index.d.ts +3 -0
- package/dist/components/expander/index.d.ts.map +1 -0
- package/dist/components/expander/index.js +16 -0
- package/dist/components/grid/grid.module.css +1 -1
- package/dist/components/grid/index.d.ts.map +1 -1
- package/dist/components/grid/index.js +15 -0
- package/dist/components/grid/item/grid-item.d.ts.map +1 -1
- package/dist/components/grid/item/grid-item.js +15 -0
- package/dist/components/grid/item/grid-item.module.css +1 -1
- package/dist/components/icon-button/icon-button.d.ts +2 -2
- package/dist/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.js +15 -0
- package/dist/components/icon-button/icon-button.module.css +1 -1
- package/dist/components/icon-button/icon-button.stories.d.ts +1 -1
- package/dist/components/icon-button/icon-button.stories.d.ts.map +1 -1
- package/dist/components/icon-button/icon-button.stories.js +1 -1
- package/dist/components/icon-button/index.d.ts.map +1 -1
- package/dist/components/icon-button/index.js +15 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +16 -0
- package/dist/components/info-state/index.d.ts.map +1 -1
- package/dist/components/info-state/index.js +15 -0
- package/dist/components/info-state/info-state.d.ts.map +1 -1
- package/dist/components/info-state/info-state.js +15 -0
- package/dist/components/info-state/info-state.module.css +1 -1
- package/dist/components/info-state/info-state.stories.js +1 -1
- package/dist/components/input-group/index.d.ts.map +1 -1
- package/dist/components/input-group/index.js +15 -0
- package/dist/components/input-group/input-group.d.ts.map +1 -1
- package/dist/components/input-group/input-group.js +15 -0
- package/dist/components/input-group/input-group.module.css +1 -1
- package/dist/components/input-group/input-group.stories.js +1 -1
- package/dist/components/linear-progress/index.d.ts.map +1 -1
- package/dist/components/linear-progress/index.js +15 -0
- package/dist/components/linear-progress/linear-progress.d.ts.map +1 -1
- package/dist/components/linear-progress/linear-progress.js +15 -0
- package/dist/components/linear-progress/linear-progress.module.css +1 -1
- package/dist/components/linear-progress/linear-progress.stories.js +1 -1
- package/dist/components/list/index.d.ts.map +1 -1
- package/dist/components/list/index.js +15 -0
- package/dist/components/list/list-item.d.ts.map +1 -1
- package/dist/components/list/list-item.js +15 -0
- package/dist/components/list/list.d.ts +3 -3
- package/dist/components/list/list.d.ts.map +1 -1
- package/dist/components/list/list.js +15 -0
- package/dist/components/list/list.module.css +1 -1
- package/dist/components/list/list.stories.js +1 -1
- package/dist/components/masonry/index.d.ts.map +1 -1
- package/dist/components/masonry/index.js +15 -0
- package/dist/components/masonry/masonry.d.ts.map +1 -1
- package/dist/components/masonry/masonry.module.css +1 -1
- package/dist/components/menu/index.d.ts.map +1 -1
- package/dist/components/menu/index.js +15 -0
- package/dist/components/menu/menu-item/menu-item-checkbox.d.ts.map +1 -1
- package/dist/components/menu/menu-item/menu-item-checkbox.js +15 -0
- package/dist/components/menu/menu-item/menu-item.d.ts.map +1 -1
- package/dist/components/menu/menu-item/menu-item.js +18 -3
- package/dist/components/menu/menu-item/menu-item.module.css +1 -1
- package/dist/components/menu/menu-item/menu-item.stories.js +1 -1
- package/dist/components/menu/menu-separator/menu-separator.d.ts.map +1 -1
- package/dist/components/menu/menu-separator/menu-separator.js +15 -0
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/menu/menu.js +15 -0
- package/dist/components/menu/menu.module.css +1 -1
- package/dist/components/menu/menu.stories.js +3 -3
- package/dist/components/modal/content/modal-content.d.ts +0 -4
- package/dist/components/modal/content/modal-content.d.ts.map +1 -1
- package/dist/components/modal/content/modal-content.js +15 -0
- package/dist/components/modal/content/modal-content.module.css +1 -1
- package/dist/components/modal/index.d.ts.map +1 -1
- package/dist/components/modal/index.js +15 -0
- package/dist/components/modal/modal.d.ts.map +1 -1
- package/dist/components/modal/modal.js +15 -0
- package/dist/components/modal/modal.module.css +1 -1
- package/dist/components/modal/modal.stories.js +3 -3
- package/dist/components/overlay-container/index.d.ts.map +1 -1
- package/dist/components/overlay-container/index.js +15 -0
- package/dist/components/overlay-container/overlay-container.d.ts.map +1 -1
- package/dist/components/overlay-container/overlay-container.js +15 -0
- package/dist/components/overlay-container/overlay-container.module.css +1 -1
- package/dist/components/pagination/index.d.ts.map +1 -1
- package/dist/components/pagination/index.js +15 -0
- package/dist/components/pagination/pagination.d.ts.map +1 -1
- package/dist/components/pagination/pagination.js +15 -0
- package/dist/components/pagination/pagination.module.css +1 -1
- package/dist/components/pagination/pagination.stories.js +1 -1
- package/dist/components/popover/index.d.ts.map +1 -1
- package/dist/components/popover/index.js +15 -0
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/popover/popover.js +3 -1
- package/dist/components/popover/popover.module.css +1 -1
- package/dist/components/popover/popover.stories.js +6 -6
- package/dist/components/prose/index.d.ts.map +1 -1
- package/dist/components/prose/index.js +15 -0
- package/dist/components/prose/prose.d.ts.map +1 -1
- package/dist/components/prose/prose.js +15 -0
- package/dist/components/prose/prose.module.css +1 -1
- package/dist/components/prose/prose.stories.js +1 -1
- package/dist/components/select/index.d.ts.map +1 -1
- package/dist/components/select/index.js +15 -0
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/select/select.js +15 -0
- package/dist/components/select/select.module.css +1 -1
- package/dist/components/select/select.stories.js +1 -1
- package/dist/components/selection-controls/checkbox.d.ts.map +1 -1
- package/dist/components/selection-controls/checkbox.js +15 -0
- package/dist/components/selection-controls/checkbox.stories.js +1 -1
- package/dist/components/selection-controls/index.d.ts.map +1 -1
- package/dist/components/selection-controls/index.js +15 -0
- package/dist/components/selection-controls/radio.d.ts.map +1 -1
- package/dist/components/selection-controls/radio.js +15 -0
- package/dist/components/selection-controls/radio.stories.js +1 -1
- package/dist/components/selection-controls/selection-controls.module.css +1 -1
- package/dist/components/selection-controls/toggle.d.ts.map +1 -1
- package/dist/components/selection-controls/toggle.js +15 -0
- package/dist/components/selection-controls/toggle.stories.js +1 -1
- package/dist/components/separator/index.d.ts.map +1 -1
- package/dist/components/separator/index.js +15 -0
- package/dist/components/separator/separator.d.ts.map +1 -1
- package/dist/components/separator/separator.js +15 -0
- package/dist/components/separator/separator.module.css +1 -1
- package/dist/components/skeleton/index.d.ts.map +1 -1
- package/dist/components/skeleton/index.js +15 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton.module.css +1 -1
- package/dist/components/skeleton/skeleton.stories.js +1 -1
- package/dist/components/slider/index.d.ts.map +1 -1
- package/dist/components/slider/index.js +15 -0
- package/dist/components/slider/slider.d.ts.map +1 -1
- package/dist/components/slider/slider.js +15 -0
- package/dist/components/slider/slider.module.css +1 -1
- package/dist/components/slider/slider.stories.js +1 -1
- package/dist/components/snackbar/index.d.ts.map +1 -1
- package/dist/components/snackbar/index.js +15 -0
- package/dist/components/snackbar/snackbar.d.ts.map +1 -1
- package/dist/components/snackbar/snackbar.js +15 -0
- package/dist/components/snackbar/snackbar.module.css +1 -1
- package/dist/components/snackbar/snackbar.stories.js +1 -1
- package/dist/components/spinner/index.d.ts.map +1 -1
- package/dist/components/spinner/index.js +15 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -1
- package/dist/components/spinner/spinner.js +15 -0
- package/dist/components/spinner/spinner.stories.js +1 -1
- package/dist/components/split-button/index.d.ts.map +1 -1
- package/dist/components/split-button/index.js +15 -0
- package/dist/components/split-button/split-button.d.ts.map +1 -1
- package/dist/components/split-button/split-button.js +15 -0
- package/dist/components/split-button/split-button.module.css +1 -1
- package/dist/components/split-button/split-button.stories.js +1 -1
- package/dist/components/stack/index.d.ts.map +1 -1
- package/dist/components/stack/index.js +15 -0
- package/dist/components/stack/stack.d.ts.map +1 -1
- package/dist/components/stack/stack.module.css +1 -1
- package/dist/components/star-meter/index.d.ts.map +1 -1
- package/dist/components/star-meter/index.js +15 -0
- package/dist/components/star-meter/star-meter.d.ts.map +1 -1
- package/dist/components/star-meter/star-meter.js +15 -0
- package/dist/components/star-meter/star-meter.module.css +1 -1
- package/dist/components/star-meter/star-meter.stories.js +1 -1
- package/dist/components/symbol/index.d.ts.map +1 -1
- package/dist/components/symbol/index.js +15 -0
- package/dist/components/symbol/symbol.d.ts.map +1 -1
- package/dist/components/symbol/symbol.module.css +1 -1
- package/dist/components/symbol/symbol.stories.js +1 -1
- package/dist/components/tab/index.d.ts.map +1 -1
- package/dist/components/tab/index.js +15 -0
- package/dist/components/tab/tab.d.ts +2 -1
- package/dist/components/tab/tab.d.ts.map +1 -1
- package/dist/components/tab/tab.js +16 -1
- package/dist/components/tab/tab.module.css +1 -1
- package/dist/components/tab/tab.stories.js +1 -1
- package/dist/components/tab/tabs-panel.d.ts.map +1 -1
- package/dist/components/tab/tabs-panel.js +15 -0
- package/dist/components/table/index.d.ts.map +1 -1
- package/dist/components/table/index.js +15 -0
- package/dist/components/table/table-cell/index.d.ts.map +1 -1
- package/dist/components/table/table-cell/index.js +15 -0
- package/dist/components/table/table-cell/table-cell.d.ts.map +1 -1
- package/dist/components/table/table-cell/table-cell.js +15 -0
- package/dist/components/table/table-cell/table-cell.module.css +1 -1
- package/dist/components/table/table-checkbox/index.d.ts.map +1 -1
- package/dist/components/table/table-checkbox/index.js +15 -0
- package/dist/components/table/table-checkbox/table-checkbox.d.ts.map +1 -1
- package/dist/components/table/table-checkbox/table-checkbox.js +15 -0
- package/dist/components/table/table-checkbox/table-checkbox.module.css +1 -1
- package/dist/components/table/table-controls/index.d.ts.map +1 -1
- package/dist/components/table/table-controls/index.js +15 -0
- package/dist/components/table/table-controls/toggle-columns.d.ts.map +1 -1
- package/dist/components/table/table-controls/toggle-columns.js +18 -3
- package/dist/components/table/table-expand/index.d.ts.map +1 -1
- package/dist/components/table/table-expand/index.js +15 -0
- package/dist/components/table/table-expand/table-expand.module.css +1 -1
- package/dist/components/table/table-header/index.d.ts +1 -1
- package/dist/components/table/table-header/index.d.ts.map +1 -1
- package/dist/components/table/table-header/index.js +15 -0
- package/dist/components/table/table-header/table-header.d.ts.map +1 -1
- package/dist/components/table/table-header/table-header.module.css +1 -1
- package/dist/components/table/table-pagination/index.d.ts +1 -1
- package/dist/components/table/table-pagination/index.d.ts.map +1 -1
- package/dist/components/table/table-pagination/index.js +15 -0
- package/dist/components/table/table-pagination/table-pagination.d.ts.map +1 -1
- package/dist/components/table/table-pagination/table-pagination.js +15 -0
- package/dist/components/table/table-row/index.d.ts.map +1 -1
- package/dist/components/table/table-row/index.js +15 -0
- package/dist/components/table/table-row/table-row.d.ts.map +1 -1
- package/dist/components/table/table-row/table-row.js +17 -2
- package/dist/components/table/table.d.ts +5 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +17 -1
- package/dist/components/table/table.module.css +1 -1
- package/dist/components/table/table.stories.d.ts +16 -16
- package/dist/components/table/table.stories.d.ts.map +1 -1
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/components/table/types.js +15 -0
- package/dist/components/text/index.d.ts.map +1 -1
- package/dist/components/text/index.js +15 -0
- package/dist/components/text/text.d.ts.map +1 -1
- package/dist/components/text/text.module.css +1 -1
- package/dist/components/text/text.stories.js +1 -1
- package/dist/components/textfield/base-field/base-field.d.ts +2 -2
- package/dist/components/textfield/base-field/base-field.d.ts.map +1 -1
- package/dist/components/textfield/base-field/base-field.js +1 -1
- package/dist/components/textfield/base-field/base-field.module.css +1 -1
- package/dist/components/textfield/base-field/index.d.ts.map +1 -1
- package/dist/components/textfield/base-field/index.js +15 -0
- package/dist/components/textfield/index.d.ts.map +1 -1
- package/dist/components/textfield/index.js +15 -0
- package/dist/components/textfield/textfield.d.ts +3 -54
- package/dist/components/textfield/textfield.d.ts.map +1 -1
- package/dist/components/textfield/textfield.js +2 -2
- package/dist/components/textfield/textfield.module.css +1 -1
- package/dist/components/textfield/textfield.stories.d.ts +4 -56
- package/dist/components/textfield/textfield.stories.d.ts.map +1 -1
- package/dist/components/textfield/textfield.stories.js +1 -1
- package/dist/components/title/index.d.ts.map +1 -1
- package/dist/components/title/index.js +15 -0
- package/dist/components/title/title.d.ts.map +1 -1
- package/dist/components/title/title.js +16 -1
- package/dist/components/title/title.module.css +1 -1
- package/dist/components/title/title.stories.d.ts +1 -0
- package/dist/components/title/title.stories.d.ts.map +1 -1
- package/dist/components/title/title.stories.js +10 -1
- package/dist/components/toggle-button/index.d.ts.map +1 -1
- package/dist/components/toggle-button/index.js +15 -0
- package/dist/components/toggle-button/toggle-button.d.ts +4 -3
- package/dist/components/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/toggle-button/toggle-button.js +19 -4
- package/dist/components/toggle-button/toggle-button.module.css +1 -1
- package/dist/components/toggle-button/toggle-button.stories.d.ts +2 -11
- package/dist/components/toggle-button/toggle-button.stories.d.ts.map +1 -1
- package/dist/components/toggle-button/toggle-button.stories.js +1 -1
- package/dist/components/tooltip/index.d.ts.map +1 -1
- package/dist/components/tooltip/index.js +15 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.js +3 -1
- package/dist/components/tooltip/tooltip.module.css +1 -1
- package/dist/components/tooltip/tooltip.stories.js +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -0
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.js +15 -0
- package/dist/providers/overlay.d.ts.map +1 -1
- package/dist/providers/overlay.js +15 -0
- package/dist/providers/responsive.d.ts.map +1 -1
- package/dist/providers/responsive.js +15 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +15 -0
- package/dist/types/polymorphic/index.d.ts +1 -6
- package/dist/types/polymorphic/index.d.ts.map +1 -1
- package/dist/types/polymorphic/index.js +15 -0
- package/package.json +6 -6
|
@@ -3,7 +3,7 @@ import { useState } from 'react';
|
|
|
3
3
|
import { Button, Menu, Textfield, Title, } from '../..';
|
|
4
4
|
import { Popover } from './popover';
|
|
5
5
|
const story = {
|
|
6
|
-
title: '
|
|
6
|
+
title: 'Dialogs/Popover',
|
|
7
7
|
component: Popover,
|
|
8
8
|
args: {
|
|
9
9
|
placement: 'auto-start',
|
|
@@ -12,8 +12,8 @@ const story = {
|
|
|
12
12
|
};
|
|
13
13
|
export default story;
|
|
14
14
|
const DefaultTemplate = (args) => {
|
|
15
|
-
const [
|
|
16
|
-
return (_jsx(Popover, { ...args, children: _jsxs(Menu, { children: [_jsx(Menu.Item, { autoFocus: true, icon: "arrow-right", description: _jsx(_Fragment, { children: "Description for this item" }), value: "1", children: "Sample long menu item" }), _jsx(Menu.ItemCheckbox, { onClick: () =>
|
|
15
|
+
const [isChecked, setIsChecked] = useState(false);
|
|
16
|
+
return (_jsx(Popover, { ...args, children: _jsxs(Menu, { children: [_jsx(Menu.Item, { autoFocus: true, icon: "arrow-right", description: _jsx(_Fragment, { children: "Description for this item" }), value: "1", children: "Sample long menu item" }), _jsx(Menu.ItemCheckbox, { onClick: () => setIsChecked(val => !val), checked: isChecked, icon: isChecked ? 'check' : undefined, value: "2", children: "Checkbox item" }), _jsx(Menu.Item, { icon: "user", value: "3", description: (_jsxs(_Fragment, { children: [_jsx(Title, { as: "h2", level: "5", children: "Sample H2 Title longlonglonglonglonglonglonglonglonglonglong" }), _jsx("p", { children: "long text content placeholder to test wrapping and sizes" }), _jsx("img", { style: { width: '100%' }, alt: "", src: "https://images.unsplash.com/photo-1593963171957-d87a6279226d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80" })] })), children: "Short menu label" }), _jsx(Menu.Separator, {}), _jsx(Menu.Item, { value: "4", icon: "arrow-down-to-bracket", children: "Even shorter" }), _jsx(Menu.Item, { value: "5", disabled: true, children: "Really?" })] }) }));
|
|
17
17
|
};
|
|
18
18
|
export const Default = DefaultTemplate.bind({});
|
|
19
19
|
const CustomTemplate = args => (_jsxs(_Fragment, { children: [_jsx(Popover, { ...args, children: _jsx("div", { style: {
|
|
@@ -36,10 +36,10 @@ WithField.args = {
|
|
|
36
36
|
placement: 'bottom-start',
|
|
37
37
|
};
|
|
38
38
|
const ControlledTemplate = (args) => {
|
|
39
|
-
const [
|
|
40
|
-
return (_jsx(Popover, { ...args, trigger: (_jsx(Button, { onClick: () =>
|
|
39
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
40
|
+
return (_jsx(Popover, { ...args, trigger: (_jsx(Button, { onClick: () => setIsOpen(val => !val), children: `${isOpen ? 'Close' : 'Open'} Popover` })), onOpenChange: state => setIsOpen(state), open: isOpen, children: _jsxs("div", { style: {
|
|
41
41
|
background: 'var(--global-vibrancy-background)', backdropFilter: 'blur(10px)', border: '2px solid black', padding: 24,
|
|
42
|
-
}, children: ["Lorem ipsum dolor, sit amet consectetur adipisicing elit. Magni error unde sapiente beatae! Nostrum praesentium similique veniam non ut nulla, incidunt velit et, placeat cupiditate, aliquid saepe. Atque, provident perferendis?", _jsx("button", { type: "button", onClick: () =>
|
|
42
|
+
}, children: ["Lorem ipsum dolor, sit amet consectetur adipisicing elit. Magni error unde sapiente beatae! Nostrum praesentium similique veniam non ut nulla, incidunt velit et, placeat cupiditate, aliquid saepe. Atque, provident perferendis?", _jsx("button", { type: "button", onClick: () => setIsOpen(val => !val), children: "Close popover" })] }) }));
|
|
43
43
|
};
|
|
44
44
|
export const Controlled = ControlledTemplate.bind({});
|
|
45
45
|
Controlled.args = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/prose/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/prose/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export { Prose } from './prose';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prose.d.ts","sourceRoot":"","sources":["../../../src/components/prose/prose.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prose.d.ts","sourceRoot":"","sources":["../../../src/components/prose/prose.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,oBAAY,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAGhD,aAAK,gBAAgB,GAAG,WAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AAEnE,eAAO,MAAM,KAAK,kBAaI,CAAC"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
2
17
|
import clsx from 'clsx';
|
|
3
18
|
import { forwardRef } from 'react';
|
|
4
19
|
import * as styles from './prose.module.css';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.Prose>h1:is(h1,h2,h3,h4,h5,h6),.Prose>h2:is(h1,h2,h3,h4,h5,h6),.Prose>h3:is(h1,h2,h3,h4,h5,h6),.Prose>h4:is(h1,h2,h3,h4,h5,h6),.Prose>h5:is(h1,h2,h3,h4,h5,h6),.Prose>h6:is(h1,h2,h3,h4,h5,h6){margin-block-end:0}.Prose>blockquote:where(:not(:first-child)),.Prose>dd:where(:not(:first-child)),.Prose>fieldset:where(:not(:first-child)),.Prose>figure:where(:not(:first-child)),.Prose>h1:where(:not(:first-child)),.Prose>h2:where(:not(:first-child)),.Prose>h3:where(:not(:first-child)),.Prose>h4:where(:not(:first-child)),.Prose>h5:where(:not(:first-child)),.Prose>h6:where(:not(:first-child)),.Prose>hgroup:where(:not(:first-child)),.Prose>img:where(:not(:first-child)),.Prose>ol:where(:not(:first-child)),.Prose>p:where(:not(:first-child)),.Prose>picture:where(:not(:first-child)),.Prose>pre:where(:not(:first-child)),.Prose>table:where(:not(:first-child)),.Prose>ul:where(:not(:first-child)){margin-block-end:2em;margin-block-start:2em}.Prose>h1:first-child,.Prose>h2:first-child,.Prose>h3:first-child,.Prose>h4:first-child,.Prose>h5:first-child,.Prose>h6:first-child{margin-block-start:0}.Prose>h1+*,.Prose>h2+*,.Prose>h3+*,.Prose>h4+*,.Prose>h5+*,.Prose>h6+*{margin-block-start:1.3em}
|
|
1
|
+
@layer components{.Prose>h1:is(h1,h2,h3,h4,h5,h6),.Prose>h2:is(h1,h2,h3,h4,h5,h6),.Prose>h3:is(h1,h2,h3,h4,h5,h6),.Prose>h4:is(h1,h2,h3,h4,h5,h6),.Prose>h5:is(h1,h2,h3,h4,h5,h6),.Prose>h6:is(h1,h2,h3,h4,h5,h6){margin-block-end:0}.Prose>blockquote:where(:not(:first-child)),.Prose>dd:where(:not(:first-child)),.Prose>fieldset:where(:not(:first-child)),.Prose>figure:where(:not(:first-child)),.Prose>h1:where(:not(:first-child)),.Prose>h2:where(:not(:first-child)),.Prose>h3:where(:not(:first-child)),.Prose>h4:where(:not(:first-child)),.Prose>h5:where(:not(:first-child)),.Prose>h6:where(:not(:first-child)),.Prose>hgroup:where(:not(:first-child)),.Prose>img:where(:not(:first-child)),.Prose>ol:where(:not(:first-child)),.Prose>p:where(:not(:first-child)),.Prose>picture:where(:not(:first-child)),.Prose>pre:where(:not(:first-child)),.Prose>table:where(:not(:first-child)),.Prose>ul:where(:not(:first-child)){margin-block-end:2em;margin-block-start:2em}.Prose>h1:first-child,.Prose>h2:first-child,.Prose>h3:first-child,.Prose>h4:first-child,.Prose>h5:first-child,.Prose>h6:first-child{margin-block-start:0}.Prose>h1+*,.Prose>h2+*,.Prose>h3+*,.Prose>h4+*,.Prose>h5+*,.Prose>h6+*{margin-block-start:1.3em}}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Container, Separator, Text, Title, } from '../..';
|
|
3
3
|
import { Prose } from './prose';
|
|
4
4
|
const story = {
|
|
5
|
-
title: '
|
|
5
|
+
title: 'Typography/Prose',
|
|
6
6
|
component: Prose,
|
|
7
7
|
args: {
|
|
8
8
|
as: 'section',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/select/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/select/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export { Select } from './select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACL,WAAW,EAAc,SAAS,EAAE,oBAAoB,EACzD,MAAM,OAAO,CAAC;AAGf,OAAO,EACU,WAAW,EAC3B,MAAM,cAAc,CAAC;AAItB,oBAAY,WAAW,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IAClE;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAC5D,CAAA;AAED,eAAO,MAAM,MAAM;IA9BjB;;OAEG;cACO,SAAS;IACnB;;OAEG;;IAEH;;OAEG;YACK,SAAS;IACjB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;wBACgB,YAAY,iBAAiB,CAAC,KAAK,IAAI;qDA4D1D,CAAC"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
2
17
|
import clsx from 'clsx';
|
|
3
18
|
import { forwardRef, } from 'react';
|
|
4
19
|
import { useUIDSeed } from 'react-uid';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.Select{appearance:none;padding:0;position:relative}.Select[data-select-dimension=small]{--field-height:1.50rem;--field-padding:0.33rem;--font-size:0.88rem}.Select[data-select-dimension=regular]{--field-height:2.50rem;--field-padding:1.00rem;--font-size:1.00rem}.Select[data-select-dimension=big]{--field-height:3.00rem;--field-padding:1.00rem;--font-size:1.13rem}.FieldContainer{color:var(--global-vibrancy-foreground);inline-size:100%;position:relative}.Select[aria-disabled=true] .FieldContainer{color:var(--global-disabled-foreground)}.Field{appearance:none;-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background:linear-gradient(to bottom,var(--global-vibrancy-background),var(--global-vibrancy-background));block-size:var(--field-height);border:0;border-radius:.25rem;box-sizing:border-box;color:inherit;display:block;font-family:inherit;font-size:var(--font-size);margin:0;min-inline-size:100%;overflow:hidden;padding:0 calc(var(--field-padding)*3.5) 0 var(--field-padding);text-overflow:ellipsis}.Field:disabled{background:linear-gradient(to bottom,var(--global-disabled-background),var(--global-disabled-background));color:var(--global-disabled-foreground);cursor:not-allowed}.Field option{color:#000}.Field optgroup{color:initial}.Field[multiple]{block-size:auto;overflow:auto;padding:.5rem 1rem}.Field[multiple] option{color:currentcolor;padding:calc(var(--field-padding)/2) var(--field-padding)}.Field[multiple] option:checked{background:#9ea5b3 linear-gradient(180deg,#9ea5b3 0,#9ea5b3);background-color:#9ea5b3;color:var(--global-background)}.Field[multiple] optgroup{color:currentcolor;font-family:inherit;font-size:inherit;line-height:inherit;margin:0 0 1rem}.Icon{border-radius:.25rem;pointer-events:none;position:absolute;right:calc(var(--field-padding) - var(--field-padding)/3);top:calc(var(--field-height)/2);transform:translateY(-50%)}
|
|
1
|
+
@layer components{.Select{appearance:none;padding:0;position:relative}.Select[data-select-dimension=small]{--field-height:1.50rem;--field-padding:0.33rem;--font-size:0.88rem}.Select[data-select-dimension=regular]{--field-height:2.50rem;--field-padding:1.00rem;--font-size:1.00rem}.Select[data-select-dimension=big]{--field-height:3.00rem;--field-padding:1.00rem;--font-size:1.13rem}.FieldContainer{color:var(--global-vibrancy-foreground);inline-size:100%;position:relative}.Select[aria-disabled=true] .FieldContainer{color:var(--global-disabled-foreground)}.Field{appearance:none;-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background:linear-gradient(to bottom,var(--global-vibrancy-background),var(--global-vibrancy-background));block-size:var(--field-height);border:0;border-radius:.25rem;box-sizing:border-box;color:inherit;display:block;font-family:inherit;font-size:var(--font-size);margin:0;min-inline-size:100%;overflow:hidden;padding:0 calc(var(--field-padding)*3.5) 0 var(--field-padding);text-overflow:ellipsis}.Field:disabled{background:linear-gradient(to bottom,var(--global-disabled-background),var(--global-disabled-background));color:var(--global-disabled-foreground);cursor:not-allowed}.Field option{color:#000}.Field optgroup{color:initial}.Field[multiple]{block-size:auto;overflow:auto;padding:.5rem 1rem}.Field[multiple] option{color:currentcolor;padding:calc(var(--field-padding)/2) var(--field-padding)}.Field[multiple] option:checked{background:#9ea5b3 linear-gradient(180deg,#9ea5b3 0,#9ea5b3);background-color:#9ea5b3;color:var(--global-background)}.Field[multiple] optgroup{color:currentcolor;font-family:inherit;font-size:inherit;line-height:inherit;margin:0 0 1rem}.Icon{border-radius:.25rem;pointer-events:none;position:absolute;right:calc(var(--field-padding) - var(--field-padding)/3);top:calc(var(--field-height)/2);transform:translateY(-50%)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/selection-controls/checkbox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/selection-controls/checkbox.tsx"],"names":[],"mappings":"AAkBA,OAAO,EACL,WAAW,EAAc,mBAAmB,EAC7C,MAAM,OAAO,CAAC;AAIf,oBAAY,aAAa,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IAClE;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC3D,CAAA;AAED,eAAO,MAAM,QAAQ;IApBnB;;OAEG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;;OAGG;wBACgB,YAAY,gBAAgB,CAAC,KAAK,IAAI;oDA0CzD,CAAC"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
2
17
|
import clsx from 'clsx';
|
|
3
18
|
import { domAnimation, LazyMotion, m } from 'framer-motion';
|
|
4
19
|
import { forwardRef, useEffect, useRef, } from 'react';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/selection-controls/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/selection-controls/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export { Checkbox } from './checkbox';
|
|
2
17
|
export { Radio } from './radio';
|
|
3
18
|
export { Toggle } from './toggle';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/components/selection-controls/radio.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/components/selection-controls/radio.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,WAAW,EAAc,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAIrE,oBAAY,UAAU,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IAC/D;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC3D,CAAA;AAED,eAAO,MAAM,KAAK;IAfhB;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;wBACgB,YAAY,gBAAgB,CAAC,KAAK,IAAI;oDA+BzD,CAAC"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
2
17
|
import clsx from 'clsx';
|
|
3
18
|
import { domAnimation, LazyMotion, m } from 'framer-motion';
|
|
4
19
|
import { forwardRef } from 'react';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.InputWrapper{display:inline-block;line-height:0}.InputWrapper[data-radio-control=true]{position:absolute}.CheckboxInput{--w:24px;--h:24px;appearance:none;-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background);block-size:var(--h);border-radius:.25rem;box-shadow:0 0 0 1px var(--global-background),inset 0 0 0 1px var(--dimmed-2);color:var(--global-background);inline-size:var(--w);max-block-size:var(--h);max-inline-size:var(--w);position:relative}.CheckboxInput:after{block-size:27%;border-bottom:2px solid;border-left:2px solid;content:"";display:none;inline-size:50%;left:50%;position:absolute;top:50%;transform:translate(-50%,-80%) rotate(-45deg)}.CheckboxInput:active{background-color:var(--global-vibrancy-background-hard)}.CheckboxInput:checked,.CheckboxInput:indeterminate{background:var(--dimmed-7);box-shadow:0 0 0 1px var(--global-background),inset 0 0 0 1px transparent}.CheckboxInput:checked:after,.CheckboxInput:indeterminate:after{display:block}.CheckboxInput:disabled{background-color:var(--global-disabled-background);color:var(--global-disabled-foreground);cursor:not-allowed}.CheckboxInput[data-control-dimension=small]{--w:16px;--h:16px}.CheckboxInput:indeterminate:after{block-size:2px;border-left:0;transform:translate(-50%,-50%)}.RadioInput{composes:CheckboxInput;border-radius:100%}.RadioInput:after{background-color:currentcolor;block-size:50%;border:0;border-radius:100%;inline-size:50%;transform:translate(-50%,-50%)}.Toggle{--w:44px;--h:24px;--p:2px;composes:RadioInput;border-radius:200px;color:var(--dimmed-7)}.Toggle:checked{color:var(--global-background)}.Toggle:disabled{color:var(--global-disabled-foreground)}.Toggle:after{block-size:calc(var(--h) - var(--p)*2);bottom:var(--p);display:block;inline-size:calc(var(--h) - var(--p)*2);left:var(--p);top:var(--p);transform:none;transition:transform .1s cubic-bezier(.3,.07,.34,1),background-color .1s cubic-bezier(.3,.07,.34,1)}.Toggle:checked:after{display:block;transform:translateX(100%)}.Toggle[data-control-dimension=small]{--w:28px;--h:16px}
|
|
1
|
+
@layer components{.InputWrapper{display:inline-block;line-height:0}.InputWrapper[data-radio-control=true]{position:absolute}.CheckboxInput{--w:24px;--h:24px;appearance:none;-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background);block-size:var(--h);border-radius:.25rem;box-shadow:0 0 0 1px var(--global-background),inset 0 0 0 1px var(--dimmed-2);color:var(--global-background);inline-size:var(--w);max-block-size:var(--h);max-inline-size:var(--w);position:relative}.CheckboxInput:after{block-size:27%;border-bottom:2px solid;border-left:2px solid;content:"";display:none;inline-size:50%;left:50%;position:absolute;top:50%;transform:translate(-50%,-80%) rotate(-45deg)}.CheckboxInput:active{background-color:var(--global-vibrancy-background-hard)}.CheckboxInput:checked,.CheckboxInput:indeterminate{background:var(--dimmed-7);box-shadow:0 0 0 1px var(--global-background),inset 0 0 0 1px transparent}.CheckboxInput:checked:after,.CheckboxInput:indeterminate:after{display:block}.CheckboxInput:disabled{background-color:var(--global-disabled-background);color:var(--global-disabled-foreground);cursor:not-allowed}.CheckboxInput[data-control-dimension=small]{--w:16px;--h:16px}.CheckboxInput:indeterminate:after{block-size:2px;border-left:0;transform:translate(-50%,-50%)}.RadioInput{composes:CheckboxInput;border-radius:100%}.RadioInput:after{background-color:currentcolor;block-size:50%;border:0;border-radius:100%;inline-size:50%;transform:translate(-50%,-50%)}.Toggle{--w:44px;--h:24px;--p:2px;composes:RadioInput;border-radius:200px;color:var(--dimmed-7)}.Toggle:checked{color:var(--global-background)}.Toggle:disabled{color:var(--global-disabled-foreground)}.Toggle:after{block-size:calc(var(--h) - var(--p)*2);bottom:var(--p);display:block;inline-size:calc(var(--h) - var(--p)*2);left:var(--p);top:var(--p);transform:none;transition:transform .1s cubic-bezier(.3,.07,.34,1),background-color .1s cubic-bezier(.3,.07,.34,1)}.Toggle:checked:after{display:block;transform:translateX(100%)}.Toggle[data-control-dimension=small]{--w:28px;--h:16px}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/selection-controls/toggle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/selection-controls/toggle.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAc,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAIrE,oBAAY,WAAW,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IAChE;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC3D,CAAA;AAED,eAAO,MAAM,MAAM;IAfjB;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;wBACgB,YAAY,gBAAgB,CAAC,KAAK,IAAI;oDAoBzD,CAAC"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
2
17
|
import clsx from 'clsx';
|
|
3
18
|
import { forwardRef } from 'react';
|
|
4
19
|
import * as styles from './selection-controls.module.css';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/separator/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/separator/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export { Separator } from './separator';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/separator/separator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/separator/separator.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAc,cAAc,EAAE,MAAM,OAAO,CAAC;AAInD,oBAAY,cAAc,GAAG,cAAc,CAAC,aAAa,CAAC,CAAA;AAE1D,eAAO,MAAM,SAAS,0GASpB,CAAC"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
2
17
|
import clsx from 'clsx';
|
|
3
18
|
import { forwardRef } from 'react';
|
|
4
19
|
import * as styles from './separator.module.css';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.Separator{block-size:1px;border:0;border-bottom:1px solid var(--dimmed-1);margin:0}
|
|
1
|
+
@layer components{.Separator{block-size:1px;border:0;border-bottom:1px solid var(--dimmed-1);margin:0}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export { Skeleton } from './skeleton';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/skeleton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/skeleton.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAO/D,oBAAY,aAAa,GAAG;IAC1B;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IACrC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,GAAG,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CAC5B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,eAAe,CAAC,aAAa,CAuDnD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.SkeletonItem{--base-color:var(--dimmed-1);--highlight-color:var(--dimmed-0);--animation-duration:1.5s;--animation-direction:normal;background-color:var(--base-color);border-radius:var(--radius,2rem);display:inline-flex;height:var(--height);line-height:1;overflow:hidden;position:relative;width:var(--width,100%);z-index:1}.SkeletonItem+br+.SkeletonItem{margin-top:var(--gap,0)}.SkeletonItem:after{background-image:linear-gradient(to right,var(--base-color),var(--highlight-color),var(--base-color));background-repeat:no-repeat;content:" ";display:block;height:100%;left:0;position:absolute;right:0;transform:translateX(-100%)}.SkeletonItem[data-skeleton-animated=true]:after{animation-direction:normal;animation-duration:1.5s;animation-iteration-count:infinite;animation-name:skeleton-shimmer;animation-timing-function:ease-in-out}.SkeletonItem[data-skeleton-circle=true]{border-radius:100%}@keyframes skeleton-shimmer{to{transform:translateX(100%)}}
|
|
1
|
+
@layer components{.SkeletonItem{--base-color:var(--dimmed-1);--highlight-color:var(--dimmed-0);--animation-duration:1.5s;--animation-direction:normal;background-color:var(--base-color);border-radius:var(--radius,2rem);display:inline-flex;height:var(--height);line-height:1;overflow:hidden;position:relative;width:var(--width,100%);z-index:1}.SkeletonItem+br+.SkeletonItem{margin-top:var(--gap,0)}.SkeletonItem:after{background-image:linear-gradient(to right,var(--base-color),var(--highlight-color),var(--base-color));background-repeat:no-repeat;content:" ";display:block;height:100%;left:0;position:absolute;right:0;transform:translateX(-100%)}.SkeletonItem[data-skeleton-animated=true]:after{animation-direction:normal;animation-duration:1.5s;animation-iteration-count:infinite;animation-name:skeleton-shimmer;animation-timing-function:ease-in-out}.SkeletonItem[data-skeleton-circle=true]{border-radius:100%}}@keyframes skeleton-shimmer{to{transform:translateX(100%)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/slider/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/slider/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export { Slider } from './slider';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/slider/slider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/slider/slider.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACO,mBAAmB,EAChC,MAAM,OAAO,CAAC;AAEf,OAAO,EACU,WAAW,EAC3B,MAAM,cAAc,CAAC;AAItB,oBAAY,WAAW,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IAChE;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACjC,CAAA;AAED,eAAO,MAAM,MAAM;IA1CjB;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;uBACe,MAAM,KAAK,IAAI;IACjC;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;OAEG;;oDA0DH,CAAC"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
2
17
|
import clsx from 'clsx';
|
|
3
18
|
import { forwardRef, useCallback, useState, } from 'react';
|
|
4
19
|
import { Stack, Symbol, Text, Textfield, } from '../..';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.Slider svg{flex-shrink:0}.Input{--track-color:var(--global-vibrancy-background);--progress-color:var(--dimmed-3);--thumb-size:24px;--progress-direction:calc(-9999px - var(--thumb-size)/2);appearance:none;background:transparent;border-radius:100px;height:var(--thumb-size);overflow:hidden;width:100%}[dir=rtl] .Input{--progress-direction:calc(9999px + var(--thumb-size)/2)}.Slider[data-slider-dimension=small] .Input{--thumb-size:16px}.Input::-webkit-slider-runnable-track{background:var(--track-color);cursor:pointer;height:var(--thumb-size);-webkit-transition:background-color .2s ease-out;transition:background-color .2s ease-out;width:100%}.Input::-moz-range-track{background:var(--track-color);cursor:pointer;height:var(--thumb-size);-moz-transition:background-color .2s ease-out;transition:background-color .2s ease-out;width:100%}.Input::-moz-focus-outer{border:0}.Input::-webkit-slider-thumb{appearance:none;background-color:var(--dimmed-7);border:0;border-radius:100%;box-shadow:var(--progress-direction) 0 0 9999px var(--progress-color);height:var(--thumb-size);outline-offset:-2px;-webkit-transition:box-shadow .1s ease-out,background-color .1s ease-out;transition:box-shadow .1s ease-out,background-color .1s ease-out;width:var(--thumb-size)}.Input::-webkit-slider-thumb:active,.Input::-webkit-slider-thumb:focus{background-color:var(--dimmed-6)}.Input::-moz-range-thumb{appearance:none;background-color:var(--dimmed-7);border:0;border-radius:100%;box-shadow:var(--progress-direction) 0 0 9999px var(--progress-color);height:var(--thumb-size);outline-offset:-2px;-moz-transition:box-shadow .1s ease-out,background-color .1s ease-out;transition:box-shadow .1s ease-out,background-color .1s ease-out;width:var(--thumb-size)}.Input::-moz-range-thumb:active,.Input::-moz-range-thumb:focus{background-color:var(--dimmed-6)}.Input:active::-webkit-slider-thumb{background-color:var(--dimmed-7);box-shadow:var(--progress-direction) 0 0 9999px var(--progress-color);cursor:grabbing}.Input:active::-moz-range-thumb{background-color:var(--dimmed-7);box-shadow:var(--progress-direction) 0 0 9999px var(--progress-color);cursor:grabbing}.Input:disabled::-webkit-slider-runnable-track{background:var(--global-disabled-background);cursor:not-allowed}.Input:disabled::-moz-range-track{background:var(--global-disabled-background);cursor:not-allowed}.Input:disabled::-webkit-slider-thumb{background:none var(--global-disabled-foreground);box-shadow:var(--progress-direction) 0 0 9999px transparent;cursor:not-allowed}.Input:disabled::-moz-range-thumb{background:none var(--global-disabled-foreground);box-shadow:var(--progress-direction) 0 0 9999px transparent;cursor:not-allowed}.CurrentValue,.Value{flex-shrink:0}
|
|
1
|
+
@layer components{.Slider svg{flex-shrink:0}.Input{--track-color:var(--global-vibrancy-background);--progress-color:var(--dimmed-3);--thumb-size:24px;--progress-direction:calc(-9999px - var(--thumb-size)/2);appearance:none;background:transparent;border-radius:100px;height:var(--thumb-size);overflow:hidden;width:100%}[dir=rtl] .Input{--progress-direction:calc(9999px + var(--thumb-size)/2)}.Slider[data-slider-dimension=small] .Input{--thumb-size:16px}.Input::-webkit-slider-runnable-track{background:var(--track-color);cursor:pointer;height:var(--thumb-size);-webkit-transition:background-color .2s ease-out;transition:background-color .2s ease-out;width:100%}.Input::-moz-range-track{background:var(--track-color);cursor:pointer;height:var(--thumb-size);-moz-transition:background-color .2s ease-out;transition:background-color .2s ease-out;width:100%}.Input::-moz-focus-outer{border:0}.Input::-webkit-slider-thumb{appearance:none;background-color:var(--dimmed-7);border:0;border-radius:100%;box-shadow:var(--progress-direction) 0 0 9999px var(--progress-color);height:var(--thumb-size);outline-offset:-2px;-webkit-transition:box-shadow .1s ease-out,background-color .1s ease-out;transition:box-shadow .1s ease-out,background-color .1s ease-out;width:var(--thumb-size)}.Input::-webkit-slider-thumb:active,.Input::-webkit-slider-thumb:focus{background-color:var(--dimmed-6)}.Input::-moz-range-thumb{appearance:none;background-color:var(--dimmed-7);border:0;border-radius:100%;box-shadow:var(--progress-direction) 0 0 9999px var(--progress-color);height:var(--thumb-size);outline-offset:-2px;-moz-transition:box-shadow .1s ease-out,background-color .1s ease-out;transition:box-shadow .1s ease-out,background-color .1s ease-out;width:var(--thumb-size)}.Input::-moz-range-thumb:active,.Input::-moz-range-thumb:focus{background-color:var(--dimmed-6)}.Input:active::-webkit-slider-thumb{background-color:var(--dimmed-7);box-shadow:var(--progress-direction) 0 0 9999px var(--progress-color);cursor:grabbing}.Input:active::-moz-range-thumb{background-color:var(--dimmed-7);box-shadow:var(--progress-direction) 0 0 9999px var(--progress-color);cursor:grabbing}.Input:disabled::-webkit-slider-runnable-track{background:var(--global-disabled-background);cursor:not-allowed}.Input:disabled::-moz-range-track{background:var(--global-disabled-background);cursor:not-allowed}.Input:disabled::-webkit-slider-thumb{background:none var(--global-disabled-foreground);box-shadow:var(--progress-direction) 0 0 9999px transparent;cursor:not-allowed}.Input:disabled::-moz-range-thumb{background:none var(--global-disabled-foreground);box-shadow:var(--progress-direction) 0 0 9999px transparent;cursor:not-allowed}.CurrentValue,.Value{flex-shrink:0}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/snackbar/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/snackbar/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export { Snackbar } from './snackbar';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snackbar.d.ts","sourceRoot":"","sources":["../../../src/components/snackbar/snackbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"snackbar.d.ts","sourceRoot":"","sources":["../../../src/components/snackbar/snackbar.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,EACG,WAAW,EAAiB,WAAW,EAEhD,MAAM,cAAc,CAAC;AAItB,oBAAY,aAAa,GAAG;IAC1B;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC9D;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAA;AAED,aAAK,mBAAmB,GAAG,WAAW,CAAC,mBAAmB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;AAEpF,eAAO,MAAM,QAAQ,qBA8CI,CAAC"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
2
17
|
import clsx from 'clsx';
|
|
3
18
|
import { forwardRef } from 'react';
|
|
4
19
|
import { Button, Stack, Symbol, Text, Title, } from '../..';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.Snackbar{background:var(--global-background);border:1px solid var(--global-vibrancy-background);border-radius:.5rem;display:block;overflow:hidden;padding:.5rem 1rem}.Snackbar p{font-size:1rem}.Snackbar[data-snackbar-kind=neutral]{--heading-foreground:var(--highlight-gray-foreground);--snackbar-bg:var(--highlight-gray-background);--snackbar-fg:var(--highlight-gray-foreground)}.Snackbar[data-snackbar-kind=positive]{--heading-foreground:var(--highlight-green-foreground);--snackbar-bg:var(--highlight-green-background);--snackbar-fg:var(--highlight-green-foreground)}.Snackbar[data-snackbar-kind=warning]{--heading-foreground:var(--highlight-yellow-foreground);--snackbar-bg:var(--highlight-yellow-background);--snackbar-fg:var(--highlight-yellow-foreground)}.Snackbar[data-snackbar-kind=info]{--heading-foreground:var(--highlight-blue-foreground);--snackbar-bg:var(--highlight-blue-background);--snackbar-fg:var(--highlight-blue-foreground)}.Snackbar[data-snackbar-kind=danger]{--heading-foreground:var(--highlight-red-foreground);--snackbar-bg:var(--highlight-red-background);--snackbar-fg:var(--highlight-red-foreground)}.Icon{color:var(--snackbar-fg);flex-grow:0;flex-shrink:0;height:1rem;margin-top:.5rem;max-width:1rem;width:1rem}.Action
|
|
1
|
+
@layer components{.Snackbar{background:var(--global-background);border:1px solid var(--global-vibrancy-background);border-radius:.5rem;display:block;overflow:hidden;padding:.5rem 1rem}.Snackbar p{font-size:1rem}.Snackbar[data-snackbar-kind=neutral]{--heading-foreground:var(--highlight-gray-foreground);--snackbar-bg:var(--highlight-gray-background);--snackbar-fg:var(--highlight-gray-foreground)}.Snackbar[data-snackbar-kind=positive]{--heading-foreground:var(--highlight-green-foreground);--snackbar-bg:var(--highlight-green-background);--snackbar-fg:var(--highlight-green-foreground)}.Snackbar[data-snackbar-kind=warning]{--heading-foreground:var(--highlight-yellow-foreground);--snackbar-bg:var(--highlight-yellow-background);--snackbar-fg:var(--highlight-yellow-foreground)}.Snackbar[data-snackbar-kind=info]{--heading-foreground:var(--highlight-blue-foreground);--snackbar-bg:var(--highlight-blue-background);--snackbar-fg:var(--highlight-blue-foreground)}.Snackbar[data-snackbar-kind=danger]{--heading-foreground:var(--highlight-red-foreground);--snackbar-bg:var(--highlight-red-background);--snackbar-fg:var(--highlight-red-foreground)}.Icon{color:var(--snackbar-fg);flex-grow:0;flex-shrink:0;height:1rem;margin-top:.5rem;max-width:1rem;width:1rem}}@layer overrides{.Action{background-color:var(--snackbar-fg);color:var(--snackbar-bg)}.Action:is(:active,:hover){background-color:var(--snackbar-fg);color:var(--snackbar-bg);opacity:.8}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/index.ts"],"names":[],"mappings":"AAgBA,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -1 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 Wonderflow <authored by Mattia Astorino>
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export { Spinner } from './spinner';
|