@eldrajs/ui 0.2.6 → 0.2.8
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/CHANGELOG.md +8 -0
- package/README.md +25 -16
- package/dist/{VariantPicker-C56GlM1e.js → VariantPicker-CjWUVhlm.js} +84 -136
- package/dist/components/accordion/Accordion.vue.d.ts +6 -4
- package/dist/components/accordion/AccordionItem.vue.d.ts +5 -3
- package/dist/components/avatar/Avatar.vue.d.ts +1 -1
- package/dist/components/badge/Badge.vue.d.ts +5 -3
- package/dist/components/button/Button.vue.d.ts +9 -7
- package/dist/components/button/ButtonGroup.vue.d.ts +6 -4
- package/dist/components/card/ContentCard.vue.d.ts +13 -11
- package/dist/components/card/FeatureCard.vue.d.ts +11 -9
- package/dist/components/carousel/Carousel.vue.d.ts +7 -5
- package/dist/components/checkbox/Checkbox.vue.d.ts +7 -5
- package/dist/components/chip/Chip.vue.d.ts +159 -9
- package/dist/components/chip/ChipGroup.vue.d.ts +6 -4
- package/dist/components/container/Container.vue.d.ts +6 -4
- package/dist/components/currency-input/CurrencyInput.vue.d.ts +5 -3
- package/dist/components/dialog/Dialog.vue.d.ts +156 -6
- package/dist/components/drawer/Drawer.vue.d.ts +158 -8
- package/dist/components/empty-state/EmptyState.vue.d.ts +7 -5
- package/dist/components/field-wrapper/FieldError.vue.d.ts +5 -3
- package/dist/components/field-wrapper/FieldWrapper.vue.d.ts +11 -9
- package/dist/components/filter-panel/FilterGroup.vue.d.ts +154 -4
- package/dist/components/filter-panel/FilterPanel.vue.d.ts +149 -2
- package/dist/components/filter-panel/facets/ColourFacet.vue.d.ts +149 -1
- package/dist/components/filter-panel/facets/ListFacet.vue.d.ts +149 -1
- package/dist/components/filter-panel/facets/RangeFacet.vue.d.ts +149 -1
- package/dist/components/filter-panel/facets/SizeFacet.vue.d.ts +149 -1
- package/dist/components/filter-panel/facets/ToggleFacet.vue.d.ts +149 -1
- package/dist/components/form-layout/FormLayout.vue.d.ts +9 -7
- package/dist/components/icon/Icon.vue.d.ts +1 -1
- package/dist/components/image/Image.vue.d.ts +1 -1
- package/dist/components/input/Input.vue.d.ts +9 -7
- package/dist/components/lightbox/Lightbox.vue.d.ts +149 -1
- package/dist/components/link/Link.vue.d.ts +5 -3
- package/dist/components/nav-menu/NavMenu.vue.d.ts +149 -1
- package/dist/components/nav-menu/NavMenuPanel.vue.d.ts +2 -0
- package/dist/components/nav-menu/navLinks.d.ts +2 -2
- package/dist/components/nav-menu/types.d.ts +19 -3
- package/dist/components/popover/Popover.vue.d.ts +7 -5
- package/dist/components/price/Price.vue.d.ts +1 -1
- package/dist/components/radio/RadioGroup.vue.d.ts +15 -13
- package/dist/components/range-slider/RangeSlider.vue.d.ts +150 -25
- package/dist/components/rating/Rating.vue.d.ts +5 -3
- package/dist/components/search-bar/SearchBar.vue.d.ts +161 -11
- package/dist/components/search-bar/SearchResultsPanel.vue.d.ts +12 -10
- package/dist/components/search-modal/SearchModal.vue.d.ts +160 -10
- package/dist/components/section/Section.vue.d.ts +6 -4
- package/dist/components/select/MultiSelect.vue.d.ts +169 -19
- package/dist/components/select/Select.vue.d.ts +165 -15
- package/dist/components/select/SelectPanel.vue.d.ts +16 -14
- package/dist/components/site-form/SiteForm.vue.d.ts +149 -2
- package/dist/components/switch/Switch.vue.d.ts +7 -5
- package/dist/components/tabler-icon/TablerIcon.vue.d.ts +1 -1
- package/dist/components/tabs/Tab.vue.d.ts +5 -3
- package/dist/components/tabs/TabPanel.vue.d.ts +6 -4
- package/dist/components/tabs/Tabs.vue.d.ts +7 -5
- package/dist/components/toast/Toast.vue.d.ts +149 -1
- package/dist/components/toast/Toaster.vue.d.ts +149 -1
- package/dist/components/unit-input/UnitInput.vue.d.ts +8 -6
- package/dist/components/variant-picker/VariantPicker.vue.d.ts +1 -1
- package/dist/components/visually-hidden/VisuallyHidden.vue.d.ts +6 -4
- package/dist/components.css +47 -27
- package/dist/composables/useDialog.d.ts +9 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +235 -314
- package/dist/{listFormat-1UrH38f2.js → listFormat-D9ecpDMT.js} +1 -2
- package/dist/messages/is-IS.js +2 -3
- package/dist/resolver.js +2 -4
- package/dist/style.css +47 -27
- package/dist/tabler-icons/000.js +0 -1
- package/dist/tabler-icons/001.js +0 -1
- package/dist/tabler-icons/002.js +0 -1
- package/dist/tabler-icons/003.js +0 -1
- package/dist/tabler-icons/004.js +0 -1
- package/dist/tabler-icons/005.js +0 -1
- package/dist/tabler-icons/006.js +0 -1
- package/dist/tabler-icons/007.js +0 -1
- package/dist/tabler-icons/008.js +0 -1
- package/dist/tabler-icons/009.js +0 -1
- package/dist/tabler-icons/010.js +0 -1
- package/dist/tabler-icons/011.js +0 -1
- package/dist/tabler-icons/012.js +0 -1
- package/dist/tabler-icons/013.js +0 -1
- package/dist/tabler-icons/014.js +0 -1
- package/dist/tabler-icons/015.js +0 -1
- package/dist/tabler-icons/016.js +0 -1
- package/dist/tabler-icons/017.js +0 -1
- package/dist/tabler-icons/018.js +0 -1
- package/dist/tabler-icons/019.js +0 -1
- package/dist/tabler-icons/020.js +0 -1
- package/dist/tabler-icons/021.js +0 -1
- package/dist/tabler-icons/022.js +0 -1
- package/dist/tabler-icons/023.js +0 -1
- package/dist/tabler-icons/024.js +0 -1
- package/dist/tabler-icons/025.js +0 -1
- package/dist/tabler-icons/026.js +0 -1
- package/dist/tabler-icons/027.js +0 -1
- package/dist/tabler-icons/028.js +0 -1
- package/dist/tabler-icons/029.js +0 -1
- package/dist/tabler-icons/030.js +0 -1
- package/dist/tabler-icons/031.js +0 -1
- package/dist/tabler-icons/032.js +0 -1
- package/dist/tabler-icons/033.js +0 -1
- package/dist/tabler-icons/034.js +0 -1
- package/dist/tabler-icons/035.js +0 -1
- package/dist/tabler-icons/036.js +0 -1
- package/dist/tabler-icons/037.js +0 -1
- package/dist/tabler-icons/038.js +0 -1
- package/dist/tabler-icons/039.js +0 -1
- package/dist/tabler-icons/040.js +0 -1
- package/dist/tabler-icons/041.js +0 -1
- package/dist/tabler-icons/042.js +0 -1
- package/dist/tabler-icons/043.js +0 -1
- package/dist/tabler-icons/044.js +0 -1
- package/dist/tabler-icons/045.js +0 -1
- package/dist/tabler-icons/046.js +0 -1
- package/dist/tabler-icons/047.js +0 -1
- package/dist/tabler-icons/048.js +0 -1
- package/dist/tabler-icons/049.js +0 -1
- package/dist/tabler-icons/050.js +0 -1
- package/dist/tabler-icons/051.js +0 -1
- package/dist/tabler-icons/052.js +0 -1
- package/dist/tabler-icons/053.js +0 -1
- package/dist/tabler-icons/054.js +0 -1
- package/dist/tabler-icons/055.js +0 -1
- package/dist/tabler-icons/056.js +0 -1
- package/dist/tabler-icons/057.js +0 -1
- package/dist/tabler-icons/058.js +0 -1
- package/dist/tabler-icons/059.js +0 -1
- package/dist/tabler-icons/060.js +0 -1
- package/dist/tabler-icons/061.js +0 -1
- package/dist/tabler-icons/062.js +0 -1
- package/dist/tabler-icons/063.js +0 -1
- package/dist/tabler-icons/064.js +0 -1
- package/dist/tabler-icons/065.js +0 -1
- package/dist/tabler-icons/066.js +0 -1
- package/dist/tabler-icons/067.js +0 -1
- package/dist/tabler-icons/068.js +0 -1
- package/dist/tabler-icons/069.js +0 -1
- package/dist/tabler-icons/070.js +0 -1
- package/dist/tabler-icons/071.js +0 -1
- package/dist/tabler-icons/072.js +0 -1
- package/dist/tabler-icons/073.js +0 -1
- package/dist/tabler-icons/074.js +0 -1
- package/dist/tabler-icons/075.js +0 -1
- package/dist/tabler-icons/076.js +0 -1
- package/dist/tabler-icons/077.js +0 -1
- package/dist/tabler-icons/078.js +0 -1
- package/dist/tabler-icons/079.js +0 -1
- package/dist/tabler-icons/080.js +0 -1
- package/dist/tabler-icons/081.js +0 -1
- package/dist/tabler-icons/082.js +0 -1
- package/dist/tabler-icons/083.js +0 -1
- package/dist/tabler-icons/084.js +0 -1
- package/dist/tabler-icons/085.js +0 -1
- package/dist/tabler-icons/086.js +0 -1
- package/dist/tabler-icons/087.js +0 -1
- package/dist/tabler-icons/088.js +0 -1
- package/dist/tabler-icons/089.js +0 -1
- package/dist/tabler-icons/090.js +0 -1
- package/dist/tabler-icons/091.js +0 -1
- package/dist/tabler-icons/092.js +0 -1
- package/dist/tabler-icons/093.js +0 -1
- package/dist/tabler-icons/094.js +0 -1
- package/dist/tabler-icons/095.js +0 -1
- package/dist/tabler-icons/096.js +0 -1
- package/dist/tabler-icons/097.js +0 -1
- package/dist/tabler-icons/098.js +0 -1
- package/dist/tabler-icons/099.js +0 -1
- package/dist/tabler-icons/100.js +0 -1
- package/dist/tabler-icons/101.js +0 -1
- package/dist/tabler-icons/102.js +0 -1
- package/dist/tabler-icons/103.js +0 -1
- package/dist/tabler-icons/104.js +0 -1
- package/dist/tabler-icons/105.js +0 -1
- package/dist/tabler-icons/106.js +0 -1
- package/dist/tabler-icons/107.js +0 -1
- package/dist/tabler-icons/108.js +0 -1
- package/dist/tabler-icons/109.js +0 -1
- package/dist/tabler-icons/110.js +0 -1
- package/dist/tabler-icons/111.js +0 -1
- package/dist/tabler-icons/112.js +0 -1
- package/dist/tabler-icons/113.js +0 -1
- package/dist/tabler-icons/114.js +0 -1
- package/dist/tabler-icons/115.js +0 -1
- package/dist/tabler-icons/116.js +0 -1
- package/dist/tabler-icons/117.js +0 -1
- package/dist/tabler-icons/118.js +0 -1
- package/dist/tabler-icons/119.js +0 -1
- package/dist/tabler-icons/120.js +0 -1
- package/dist/tabler-icons/121.js +0 -1
- package/dist/tabler-icons/122.js +0 -1
- package/dist/tabler-icons/123.js +0 -1
- package/dist/tabler-icons/124.js +0 -1
- package/dist/tabler-icons/125.js +0 -1
- package/dist/tabler-icons/126.js +0 -1
- package/dist/tabler-icons/127.js +0 -1
- package/dist/tabler-icons/128.js +0 -1
- package/dist/tabler-icons/129.js +0 -1
- package/dist/tabler-icons/130.js +0 -1
- package/dist/tabler-icons/131.js +0 -1
- package/dist/tabler-icons/132.js +0 -1
- package/dist/tabler-icons/133.js +0 -1
- package/dist/tabler-icons/134.js +0 -1
- package/dist/tabler-icons/135.js +0 -1
- package/dist/tabler-icons/136.js +0 -1
- package/dist/tabler-icons/137.js +0 -1
- package/dist/tabler-icons/138.js +0 -1
- package/dist/tabler-icons/139.js +0 -1
- package/dist/tabler-icons/140.js +0 -1
- package/dist/tabler-icons/141.js +0 -1
- package/dist/tabler-icons/142.js +0 -1
- package/dist/tabler-icons/143.js +0 -1
- package/dist/tabler-icons/144.js +0 -1
- package/dist/tabler-icons/145.js +0 -1
- package/dist/tabler-icons/146.js +0 -1
- package/dist/tabler-icons/147.js +0 -1
- package/dist/tabler-icons/148.js +0 -1
- package/dist/tabler-icons/149.js +0 -1
- package/dist/tabler-icons/150.js +0 -1
- package/dist/tabler-icons/151.js +0 -1
- package/dist/tabler-icons/152.js +0 -1
- package/dist/tabler-icons/153.js +0 -1
- package/dist/tabler-icons/154.js +0 -1
- package/dist/tabler-icons/155.js +0 -1
- package/dist/tabler-icons/156.js +0 -1
- package/dist/tabler-icons/157.js +0 -1
- package/dist/tabler-icons/158.js +0 -1
- package/dist/tabler-icons/159.js +0 -1
- package/dist/tabler-icons/160.js +0 -1
- package/dist/tabler-icons/161.js +0 -1
- package/dist/tabler-icons/162.js +0 -1
- package/dist/tabler-icons/163.js +0 -1
- package/dist/tabler-icons/164.js +0 -1
- package/dist/tabler-icons/165.js +0 -1
- package/dist/tabler-icons/166.js +0 -1
- package/dist/tabler-icons/167.js +0 -1
- package/dist/tabler-icons/168.js +0 -1
- package/dist/tabler-icons/169.js +0 -1
- package/dist/tabler-icons/170.js +0 -1
- package/dist/tabler-icons/171.js +0 -1
- package/dist/tabler-icons/172.js +0 -1
- package/dist/tabler-icons/173.js +0 -1
- package/dist/tabler-icons/174.js +0 -1
- package/dist/tabler-icons/175.js +0 -1
- package/dist/tabler-icons/176.js +0 -1
- package/dist/tabler-icons/177.js +0 -1
- package/dist/tabler-icons/178.js +0 -1
- package/dist/tabler-icons/179.js +0 -1
- package/dist/tabler-icons/180.js +0 -1
- package/dist/tabler-icons/181.js +0 -1
- package/dist/tabler-icons/182.js +0 -1
- package/dist/tabler-icons/183.js +0 -1
- package/dist/tabler-icons/184.js +0 -1
- package/dist/tabler-icons/185.js +0 -1
- package/dist/tabler-icons/186.js +0 -1
- package/dist/tabler-icons/187.js +0 -1
- package/dist/tabler-icons/188.js +0 -1
- package/dist/tabler-icons/189.js +0 -1
- package/dist/tabler-icons/190.js +0 -1
- package/dist/tabler-icons/191.js +0 -1
- package/dist/tabler-icons/192.js +0 -1
- package/dist/tabler-icons/193.js +0 -1
- package/dist/tabler-icons/194.js +0 -1
- package/dist/tabler-icons/195.js +0 -1
- package/dist/tabler-icons/196.js +0 -1
- package/dist/tabler-icons/197.js +0 -1
- package/dist/tabler-icons/198.js +0 -1
- package/dist/tabler-icons/199.js +0 -1
- package/dist/tabler-icons/200.js +0 -1
- package/dist/tabler-icons/201.js +0 -1
- package/dist/tabler-icons/202.js +0 -1
- package/dist/tabler-icons/203.js +0 -1
- package/dist/tabler-icons/204.js +0 -1
- package/dist/tabler-icons/205.js +0 -1
- package/dist/tabler-icons/206.js +0 -1
- package/dist/tabler-icons/207.js +0 -1
- package/dist/tabler-icons/208.js +0 -1
- package/dist/tabler-icons/209.js +0 -1
- package/dist/tabler-icons/210.js +0 -1
- package/dist/tabler-icons/211.js +0 -1
- package/dist/tabler-icons/212.js +0 -1
- package/dist/tabler-icons/213.js +0 -1
- package/dist/tabler-icons/214.js +0 -1
- package/dist/tabler-icons/215.js +0 -1
- package/dist/tabler-icons/216.js +0 -1
- package/dist/tabler-icons/217.js +0 -1
- package/dist/tabler-icons/218.js +0 -1
- package/dist/tabler-icons/219.js +0 -1
- package/dist/tabler-icons/220.js +0 -1
- package/dist/tabler-icons/221.js +0 -1
- package/dist/tabler-icons/222.js +0 -1
- package/dist/tabler-icons/223.js +0 -1
- package/dist/tabler-icons/224.js +0 -1
- package/dist/tabler-icons/225.js +0 -1
- package/dist/tabler-icons/226.js +0 -1
- package/dist/tabler-icons/227.js +0 -1
- package/dist/tabler-icons/228.js +0 -1
- package/dist/tabler-icons/229.js +0 -1
- package/dist/tabler-icons/230.js +0 -1
- package/dist/tabler-icons/231.js +0 -1
- package/dist/tabler-icons/232.js +0 -1
- package/dist/tabler-icons/233.js +0 -1
- package/dist/tabler-icons/234.js +0 -1
- package/dist/tabler-icons/235.js +0 -1
- package/dist/tabler-icons/236.js +0 -1
- package/dist/tabler-icons/237.js +0 -1
- package/dist/tabler-icons/238.js +0 -1
- package/dist/tabler-icons/239.js +0 -1
- package/dist/tabler-icons/240.js +0 -1
- package/dist/tabler-icons/241.js +0 -1
- package/dist/tabler-icons/242.js +0 -1
- package/dist/tabler-icons/243.js +0 -1
- package/dist/tabler-icons/244.js +0 -1
- package/dist/tabler-icons/245.js +0 -1
- package/dist/tabler-icons/246.js +0 -1
- package/dist/tabler-icons/247.js +0 -1
- package/dist/tabler-icons/248.js +0 -1
- package/dist/tabler-icons/249.js +0 -1
- package/dist/tabler-icons/250.js +0 -1
- package/dist/tabler-icons/251.js +0 -1
- package/dist/tabler-icons/252.js +0 -1
- package/dist/tabler-icons/253.js +0 -1
- package/dist/tabler-icons/254.js +0 -1
- package/dist/tabler-icons/255.js +0 -1
- package/dist/tabler-icons/256.js +0 -1
- package/dist/tabler-icons/257.js +0 -1
- package/dist/tabler-icons/258.js +0 -1
- package/dist/tabler-icons/259.js +0 -1
- package/dist/tabler-icons/260.js +0 -1
- package/dist/tabler-icons/261.js +0 -1
- package/dist/tabler-icons/262.js +0 -1
- package/dist/tabler-icons/263.js +0 -1
- package/dist/tabler-icons/264.js +0 -1
- package/dist/tabler-icons/265.js +0 -1
- package/dist/tabler-icons/266.js +0 -1
- package/dist/tabler-icons/267.js +0 -1
- package/dist/tabler-icons/268.js +0 -1
- package/dist/tabler-icons/269.js +0 -1
- package/dist/tabler-icons/270.js +0 -1
- package/dist/tabler-icons/271.js +0 -1
- package/dist/tabler-icons/272.js +0 -1
- package/dist/tabler-icons/273.js +0 -1
- package/dist/tabler-icons/274.js +0 -1
- package/dist/tabler-icons/275.js +0 -1
- package/dist/tabler-icons/276.js +0 -1
- package/dist/tabler-icons/277.js +0 -1
- package/dist/tabler-icons/278.js +0 -1
- package/dist/tabler-icons/279.js +0 -1
- package/dist/tabler-icons/280.js +0 -1
- package/dist/tabler-icons/281.js +0 -1
- package/dist/tabler-icons/282.js +0 -1
- package/dist/tabler-icons/283.js +0 -1
- package/dist/tabler-icons/284.js +0 -1
- package/dist/tabler-icons/285.js +0 -1
- package/dist/tabler-icons/286.js +0 -1
- package/dist/tabler-icons/287.js +0 -1
- package/dist/tabler-icons/288.js +0 -1
- package/dist/tabler-icons/289.js +0 -1
- package/dist/tabler-icons/290.js +0 -1
- package/dist/tabler-icons/291.js +0 -1
- package/dist/tabler-icons/292.js +0 -1
- package/dist/tabler-icons/293.js +0 -1
- package/dist/tabler-icons/294.js +0 -1
- package/dist/tabler-icons/295.js +0 -1
- package/dist/tabler-icons/296.js +0 -1
- package/dist/tabler-icons/297.js +0 -1
- package/dist/tabler-icons/298.js +0 -1
- package/dist/tabler-icons/299.js +0 -1
- package/dist/tabler-icons/300.js +0 -1
- package/dist/tabler-icons/301.js +0 -1
- package/dist/tabler-icons/302.js +0 -1
- package/dist/tabler-icons/303.js +0 -1
- package/dist/tabler-icons/304.js +0 -1
- package/dist/tabler-icons/305.js +0 -1
- package/dist/tabler-icons/306.js +0 -1
- package/dist/tabler-icons/307.js +0 -1
- package/dist/tabler-icons/308.js +0 -1
- package/dist/tabler-icons/309.js +0 -1
- package/dist/tabler-icons/310.js +0 -1
- package/dist/tabler-icons/311.js +0 -1
- package/dist/tabler-icons/312.js +0 -1
- package/dist/tabler-icons/313.js +0 -1
- package/dist/tabler-icons/314.js +0 -1
- package/dist/tabler-icons/315.js +0 -1
- package/dist/tabler-icons/316.js +0 -1
- package/dist/tabler-icons/317.js +0 -1
- package/dist/tabler-icons/318.js +0 -1
- package/dist/tabler-icons/319.js +0 -1
- package/dist/tabler-icons/320.js +0 -1
- package/dist/tabler-icons/321.js +0 -1
- package/dist/tabler-icons/322.js +0 -1
- package/dist/tabler-icons/323.js +0 -1
- package/dist/tabler-icons/324.js +0 -1
- package/dist/tabler-icons/325.js +0 -1
- package/dist/tabler-icons/326.js +0 -1
- package/dist/tabler-icons/327.js +0 -1
- package/dist/tabler-icons/328.js +0 -1
- package/dist/tabler-icons/329.js +0 -1
- package/dist/tabler-icons/330.js +0 -1
- package/dist/tabler-icons/331.js +0 -1
- package/dist/tabler-icons/332.js +0 -1
- package/dist/tabler-icons/333.js +0 -1
- package/dist/tabler-icons/334.js +0 -1
- package/dist/tabler-icons/335.js +0 -1
- package/dist/tabler-icons/336.js +0 -1
- package/dist/tabler-icons/337.js +0 -1
- package/dist/tabler-icons/338.js +0 -1
- package/dist/tabler-icons/339.js +0 -1
- package/dist/tabler-icons/340.js +0 -1
- package/dist/tabler-icons/341.js +0 -1
- package/dist/tabler-icons/342.js +0 -1
- package/dist/tabler-icons/343.js +0 -1
- package/dist/tabler-icons/344.js +0 -1
- package/dist/tabler-icons/345.js +0 -1
- package/dist/tabler-icons/346.js +0 -1
- package/dist/tabler-icons/347.js +0 -1
- package/dist/tabler-icons/348.js +0 -1
- package/dist/tabler-icons/349.js +0 -1
- package/dist/tabler-icons/350.js +0 -1
- package/dist/tabler-icons/351.js +0 -1
- package/dist/tabler-icons/352.js +0 -1
- package/dist/tabler-icons/353.js +0 -1
- package/dist/tabler-icons/354.js +0 -1
- package/dist/tabler-icons/355.js +0 -1
- package/dist/tabler-icons/356.js +0 -1
- package/dist/tabler-icons/357.js +0 -1
- package/dist/tabler-icons/358.js +0 -1
- package/dist/tabler-icons/359.js +0 -1
- package/dist/tabler-icons/360.js +0 -1
- package/dist/tabler-icons/361.js +0 -1
- package/dist/tabler-icons/362.js +0 -1
- package/dist/tabler-icons/363.js +0 -1
- package/dist/tabler-icons/364.js +0 -1
- package/dist/tabler-icons/365.js +0 -1
- package/dist/tabler-icons/366.js +0 -1
- package/dist/tabler-icons/367.js +0 -1
- package/dist/tabler-icons/368.js +0 -1
- package/dist/tabler-icons/369.js +0 -1
- package/dist/tabler-icons/370.js +0 -1
- package/dist/tabler-icons/371.js +0 -1
- package/dist/tabler-icons/372.js +0 -1
- package/dist/tabler-icons/373.js +0 -1
- package/dist/tabler-icons/374.js +0 -1
- package/dist/tabler-icons/375.js +0 -1
- package/dist/tabler-icons/376.js +0 -1
- package/dist/tabler-icons/377.js +0 -1
- package/dist/tabler-icons/378.js +0 -1
- package/dist/tabler-icons/379.js +0 -1
- package/dist/tabler-icons/380.js +0 -1
- package/dist/tabler-icons/381.js +0 -1
- package/dist/tabler-icons/382.js +0 -1
- package/dist/tabler-icons/383.js +0 -1
- package/dist/tabler-icons/384.js +0 -1
- package/dist/tabler-icons/385.js +0 -1
- package/dist/tabler-icons/386.js +0 -1
- package/dist/tabler-icons/387.js +0 -1
- package/dist/tabler-icons/388.js +0 -1
- package/dist/tabler-icons/389.js +0 -1
- package/dist/tabler-icons/390.js +0 -1
- package/dist/tabler-icons/391.js +0 -1
- package/dist/tabler-icons/392.js +0 -1
- package/dist/tabler-icons/393.js +0 -1
- package/dist/tabler-icons/394.js +0 -1
- package/dist/tabler-icons/395.js +0 -1
- package/dist/tabler-icons/396.js +0 -1
- package/dist/tabler-icons/397.js +0 -1
- package/dist/tabler-icons/398.js +0 -1
- package/dist/tabler-icons/399.js +0 -1
- package/dist/tabler-icons/400.js +0 -1
- package/dist/tabler-icons/401.js +0 -1
- package/dist/tabler-icons/402.js +0 -1
- package/dist/tabler-icons/403.js +0 -1
- package/dist/tabler-icons/404.js +0 -1
- package/dist/tabler-icons/405.js +0 -1
- package/dist/tabler-icons/406.js +0 -1
- package/dist/tabler-icons/407.js +0 -1
- package/dist/tabler-icons/408.js +0 -1
- package/dist/tabler-icons/409.js +0 -1
- package/dist/tabler-icons/410.js +0 -1
- package/dist/tabler-icons/411.js +0 -1
- package/dist/tabler-icons/412.js +0 -1
- package/dist/tabler-icons/413.js +0 -1
- package/dist/tabler-icons/414.js +0 -1
- package/dist/tabler-icons/415.js +0 -1
- package/dist/tabler-icons/416.js +0 -1
- package/dist/tabler-icons/417.js +0 -1
- package/dist/tabler-icons/418.js +0 -1
- package/dist/tabler-icons/419.js +0 -1
- package/dist/tabler-icons/420.js +0 -1
- package/dist/tabler-icons/421.js +0 -1
- package/dist/tabler-icons/422.js +0 -1
- package/dist/tabler-icons/423.js +0 -1
- package/dist/tabler-icons/424.js +0 -1
- package/dist/tabler-icons/425.js +0 -1
- package/dist/tabler-icons/426.js +0 -1
- package/dist/tabler-icons/427.js +0 -1
- package/dist/tabler-icons/428.js +0 -1
- package/dist/tabler-icons/429.js +0 -1
- package/dist/tabler-icons/430.js +0 -1
- package/dist/tabler-icons/431.js +0 -1
- package/dist/tabler-icons/432.js +0 -1
- package/dist/tabler-icons/433.js +0 -1
- package/dist/tabler-icons/434.js +0 -1
- package/dist/tabler-icons/435.js +0 -1
- package/dist/tabler-icons/436.js +0 -1
- package/dist/tabler-icons/437.js +0 -1
- package/dist/tabler-icons/438.js +0 -1
- package/dist/tabler-icons/439.js +0 -1
- package/dist/tabler-icons/440.js +0 -1
- package/dist/tabler-icons/441.js +0 -1
- package/dist/tabler-icons/442.js +0 -1
- package/dist/tabler-icons/443.js +0 -1
- package/dist/tabler-icons/444.js +0 -1
- package/dist/tabler-icons/445.js +0 -1
- package/dist/tabler-icons/446.js +0 -1
- package/dist/tabler-icons/447.js +0 -1
- package/dist/tabler-icons/448.js +0 -1
- package/dist/tabler-icons/449.js +0 -1
- package/dist/tabler-icons/450.js +0 -1
- package/dist/tabler-icons/451.js +0 -1
- package/dist/tabler-icons/452.js +0 -1
- package/dist/tabler-icons/453.js +0 -1
- package/dist/tabler-icons/454.js +0 -1
- package/dist/tabler-icons/455.js +0 -1
- package/dist/tabler-icons/456.js +0 -1
- package/dist/tabler-icons/457.js +0 -1
- package/dist/tabler-icons/458.js +0 -1
- package/dist/tabler-icons/459.js +0 -1
- package/dist/tabler-icons/460.js +0 -1
- package/dist/tabler-icons/461.js +0 -1
- package/dist/tabler-icons/462.js +0 -1
- package/dist/tabler-icons/463.js +0 -1
- package/dist/tabler-icons/464.js +0 -1
- package/dist/tabler-icons/465.js +0 -1
- package/dist/tabler-icons/466.js +0 -1
- package/dist/tabler-icons/467.js +0 -1
- package/dist/tabler-icons/468.js +0 -1
- package/dist/tabler-icons/469.js +0 -1
- package/dist/tabler-icons/470.js +0 -1
- package/dist/tabler-icons/471.js +0 -1
- package/dist/tabler-icons/472.js +0 -1
- package/dist/tabler-icons/473.js +0 -1
- package/dist/tabler-icons/474.js +0 -1
- package/dist/tabler-icons/475.js +0 -1
- package/dist/tabler-icons/476.js +0 -1
- package/dist/tabler-icons/477.js +0 -1
- package/dist/tabler-icons/478.js +0 -1
- package/dist/tabler-icons/479.js +0 -1
- package/dist/tabler-icons/480.js +0 -1
- package/dist/tabler-icons/481.js +0 -1
- package/dist/tabler-icons/482.js +0 -1
- package/dist/tabler-icons/483.js +0 -1
- package/dist/tabler-icons/484.js +0 -1
- package/dist/tabler-icons/485.js +0 -1
- package/dist/tabler-icons/486.js +0 -1
- package/dist/tabler-icons/487.js +0 -1
- package/dist/tabler-icons/488.js +0 -1
- package/dist/tabler-icons/489.js +0 -1
- package/dist/tabler-icons/490.js +0 -1
- package/dist/tabler-icons/491.js +0 -1
- package/dist/tabler-icons/492.js +0 -1
- package/dist/tabler-icons/493.js +0 -1
- package/dist/tabler-icons/494.js +0 -1
- package/dist/tabler-icons/495.js +0 -1
- package/dist/tabler-icons/496.js +0 -1
- package/dist/tabler-icons/497.js +0 -1
- package/dist/tabler-icons/498.js +0 -1
- package/dist/tabler-icons/499.js +0 -1
- package/dist/tabler-icons/500.js +0 -1
- package/dist/tabler-icons/501.js +0 -1
- package/dist/tabler-icons/502.js +0 -1
- package/dist/tabler-icons/503.js +0 -1
- package/dist/tabler-icons/504.js +0 -1
- package/dist/tabler-icons/505.js +0 -1
- package/dist/tabler-icons/506.js +0 -1
- package/dist/tabler-icons/507.js +0 -1
- package/dist/tabler-icons/508.js +0 -1
- package/dist/tabler-icons/509.js +0 -1
- package/dist/tabler-icons/510.js +0 -1
- package/dist/tabler-icons/511.js +0 -1
- package/dist/{tablerIconData-CQubY1fX.js → tablerIconData-J6TGCmkT.js} +1 -3
- package/dist/tailwind.css +43 -0
- package/dist/vee-validate/FieldCheckbox.vue.d.ts +5 -3
- package/dist/vee-validate/FieldCheckboxGroup.vue.d.ts +5 -3
- package/dist/vee-validate/FieldCurrencyInput.vue.d.ts +5 -3
- package/dist/vee-validate/FieldInput.vue.d.ts +5 -3
- package/dist/vee-validate/FieldMultiSelect.vue.d.ts +5 -3
- package/dist/vee-validate/FieldQuantityStepper.vue.d.ts +5 -3
- package/dist/vee-validate/FieldRadioGroup.vue.d.ts +5 -3
- package/dist/vee-validate/FieldSearchBar.vue.d.ts +5 -3
- package/dist/vee-validate/FieldSelect.vue.d.ts +5 -3
- package/dist/vee-validate/FieldSwitch.vue.d.ts +5 -3
- package/dist/vee-validate/FieldTextarea.vue.d.ts +5 -3
- package/dist/vee-validate/FieldUnitInput.vue.d.ts +5 -3
- package/dist/vee-validate/FieldVariantPicker.vue.d.ts +5 -3
- package/dist/vee-validate.js +18 -35
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { $ as useEldraUiLocale, A as FIELD_BASE, B as formatCurrency, C as filterNumericBeforeInput, Ct as partClass, D as stripMask, E as defaultCharacterMeaning, F as FIELD_SIZE, G as useSlotPresence, H as formatUnit, I as createNumberFormat, J as DEFAULT_UI_LOCALE, K as useHeadingTag, L as currencyFractionDigits, M as FIELD_DISABLED, N as FIELD_LIVE, O as CurrencyInput_default, P as FIELD_SEARCH_APPEARANCE, Q as useEldraUiCurrency, R as currencySymbol, S as VisuallyHidden_default, St as cx, T as applyMask, U as localeSeparators, V as formatNumber, W as parseLocaleNumber, X as provideEldraUiCurrency, Y as LOCALE_KEY, Z as provideEldraUiLocale, _ as normalizeText, _t as useMessages, a as claimShortcut, at as FieldError_default, b as focusInvalid, bt as joinIds, c as SearchResultsPanel_default, ct as Button_default, d as MultiSelect_default, dt as ICON_SIZE_CLASS, et as TAG_FILL, f as usePopover, ft as ICON_STROKE_WIDTH$4, g as matchRange, gt as provideEldraUiMessages, h as useFloating, ht as MESSAGES_KEY, i as SearchBar_default, it as CheckboxGroup_default, j as FIELD_CLEAR_BUTTON, k as UnitInput_default, l as RadioGroup_default, lt as Spinner_default, m as useTeleportTarget, mt as FORM_SUBMITTING_KEY, n as Textarea_default, nt as TAG_SHAPE, o as ownsShortcut, ot as Checkbox_default, p as useOverlay, pt as FORM_LAYOUT_KEY, q as CURRENCY_KEY, r as Select_default, rt as tagPadding, s as releaseShortcut, st as FIELD_KEY, t as VariantPicker_default, tt as TAG_REMOVE_BUTTON, u as QuantityStepper_default, ut as Icon_default, v as useListbox, vt as enUS, w as Input_default, x as Switch_default, xt as useUiId, y as FormLayout_default, yt as useControllableModel, z as defaultUnitFormat } from "./VariantPicker-
|
|
1
|
+
import { $ as useEldraUiLocale, A as FIELD_BASE, B as formatCurrency, C as filterNumericBeforeInput, Ct as partClass, D as stripMask, E as defaultCharacterMeaning, F as FIELD_SIZE, G as useSlotPresence, H as formatUnit, I as createNumberFormat, J as DEFAULT_UI_LOCALE, K as useHeadingTag, L as currencyFractionDigits, M as FIELD_DISABLED, N as FIELD_LIVE, O as CurrencyInput_default, P as FIELD_SEARCH_APPEARANCE, Q as useEldraUiCurrency, R as currencySymbol, S as VisuallyHidden_default, St as cx, T as applyMask, U as localeSeparators, V as formatNumber, W as parseLocaleNumber, X as provideEldraUiCurrency, Y as LOCALE_KEY, Z as provideEldraUiLocale, _ as normalizeText, _t as useMessages, a as claimShortcut, at as FieldError_default, b as focusInvalid, bt as joinIds, c as SearchResultsPanel_default, ct as Button_default, d as MultiSelect_default, dt as ICON_SIZE_CLASS, et as TAG_FILL, f as usePopover, ft as ICON_STROKE_WIDTH$4, g as matchRange, gt as provideEldraUiMessages, h as useFloating, ht as MESSAGES_KEY, i as SearchBar_default, it as CheckboxGroup_default, j as FIELD_CLEAR_BUTTON, k as UnitInput_default, l as RadioGroup_default, lt as Spinner_default, m as useTeleportTarget, mt as FORM_SUBMITTING_KEY, n as Textarea_default, nt as TAG_SHAPE, o as ownsShortcut, ot as Checkbox_default, p as useOverlay, pt as FORM_LAYOUT_KEY, q as CURRENCY_KEY, r as Select_default, rt as tagPadding, s as releaseShortcut, st as FIELD_KEY, t as VariantPicker_default, tt as TAG_REMOVE_BUTTON, u as QuantityStepper_default, ut as Icon_default, v as useListbox, vt as enUS, w as Input_default, x as Switch_default, xt as useUiId, y as FormLayout_default, yt as useControllableModel, z as defaultUnitFormat } from "./VariantPicker-CjWUVhlm.js";
|
|
2
2
|
import { Comment, Fragment, Teleport, Text, Transition, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, isRef, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, onServerPrefetch, onUnmounted, onUpdated, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRef, toValue, unref, useAttrs, useId, useSlots, useTemplateRef, vModelText, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
3
3
|
import { dateTimeFormat } from "@eldrajs/sdk/format/date";
|
|
4
|
-
|
|
4
|
+
// src/components/accordion/context.ts
|
|
5
5
|
/** The key an `Accordion` provides its `AccordionContext` on. */
|
|
6
6
|
var ACCORDION_KEY = Symbol("eldra-ui:accordion");
|
|
7
|
-
|
|
8
|
-
//#region src/components/accordion/Accordion.vue
|
|
7
|
+
// src/components/accordion/Accordion.vue
|
|
9
8
|
var Accordion_default = /* @__PURE__ */ defineComponent({
|
|
10
9
|
__name: "Accordion",
|
|
11
10
|
props: {
|
|
@@ -44,8 +43,7 @@ var Accordion_default = /* @__PURE__ */ defineComponent({
|
|
|
44
43
|
};
|
|
45
44
|
}
|
|
46
45
|
});
|
|
47
|
-
|
|
48
|
-
//#region src/components/accordion/detailsExclusivity.ts
|
|
46
|
+
// src/components/accordion/detailsExclusivity.ts
|
|
49
47
|
/**
|
|
50
48
|
* Whether this engine closes the previously open sibling itself when a same-`name` `<details>`
|
|
51
49
|
* opens — the native "exclusive accordion group" behaviour every current browser (Chromium,
|
|
@@ -104,8 +102,7 @@ function supportsExclusiveDetailsGroups() {
|
|
|
104
102
|
}
|
|
105
103
|
return cached;
|
|
106
104
|
}
|
|
107
|
-
|
|
108
|
-
//#region src/utils/cssTiming.ts
|
|
105
|
+
// src/utils/cssTiming.ts
|
|
109
106
|
/**
|
|
110
107
|
* Reading the package's motion tokens off a real element, for the two places that animate in
|
|
111
108
|
* JavaScript rather than in CSS (`AccordionItem`'s panel height, a refreshed value's fade-in).
|
|
@@ -158,8 +155,7 @@ function parseCssDurationMs(raw) {
|
|
|
158
155
|
if (!Number.isFinite(value) || value <= 0) return null;
|
|
159
156
|
return match[2] === "s" ? value * 1e3 : value;
|
|
160
157
|
}
|
|
161
|
-
|
|
162
|
-
//#region src/components/accordion/heightTransition.ts
|
|
158
|
+
// src/components/accordion/heightTransition.ts
|
|
163
159
|
/**
|
|
164
160
|
* Creates a stateful height-animation controller for one `AccordionItem`'s panel — one instance
|
|
165
161
|
* per item, reused for that panel's whole lifetime (see `AccordionItem.vue`'s own lazily-created,
|
|
@@ -237,15 +233,13 @@ function createPanelHeightAnimator(panel) {
|
|
|
237
233
|
close: () => run(panel.scrollHeight, 0, "--eldra-duration-base", "--eldra-ease-in")
|
|
238
234
|
};
|
|
239
235
|
}
|
|
240
|
-
|
|
241
|
-
//#region src/components/accordion/AccordionItem.vue?vue&type=script&setup=true&lang.ts
|
|
236
|
+
// src/components/accordion/AccordionItem.vue?vue&type=script&setup=true&lang.ts
|
|
242
237
|
var _hoisted_1$40 = ["href"];
|
|
243
238
|
var _hoisted_2$26 = { class: "min-w-0 flex-1" };
|
|
244
239
|
var _hoisted_3$17 = ["name", "open"];
|
|
245
240
|
var _hoisted_4$12 = { class: "min-w-0 flex-1" };
|
|
246
241
|
var TRIGGER_BASE$1 = "group flex w-full items-center justify-between gap-4 min-h-14 py-4 rounded-sm text-start cursor-pointer eldra-focus";
|
|
247
|
-
|
|
248
|
-
//#region src/components/accordion/AccordionItem.vue
|
|
242
|
+
// src/components/accordion/AccordionItem.vue
|
|
249
243
|
var AccordionItem_default = /* @__PURE__ */ defineComponent({
|
|
250
244
|
__name: "AccordionItem",
|
|
251
245
|
props: {
|
|
@@ -503,8 +497,7 @@ var AccordionItem_default = /* @__PURE__ */ defineComponent({
|
|
|
503
497
|
};
|
|
504
498
|
}
|
|
505
499
|
});
|
|
506
|
-
|
|
507
|
-
//#region src/utils/avatar.ts
|
|
500
|
+
// src/utils/avatar.ts
|
|
508
501
|
/**
|
|
509
502
|
* `Avatar`'s own initials logic (spec "Avatar" → Properties, `name` row: "first letter of given
|
|
510
503
|
* and family name, uppercase"; Do/Don't: "keep initials to two letters"), pulled out of the
|
|
@@ -525,11 +518,9 @@ function initialsFromName(name) {
|
|
|
525
518
|
if (words.length === 1) return words[0].slice(0, 2).toUpperCase();
|
|
526
519
|
return `${words[0].charAt(0)}${words[words.length - 1].charAt(0)}`.toUpperCase();
|
|
527
520
|
}
|
|
528
|
-
|
|
529
|
-
//#region src/components/avatar/Avatar.vue?vue&type=script&setup=true&lang.ts
|
|
521
|
+
// src/components/avatar/Avatar.vue?vue&type=script&setup=true&lang.ts
|
|
530
522
|
var _hoisted_1$39 = ["src"];
|
|
531
|
-
|
|
532
|
-
//#region src/components/avatar/Avatar.vue
|
|
523
|
+
// src/components/avatar/Avatar.vue
|
|
533
524
|
var Avatar_default = /* @__PURE__ */ defineComponent({
|
|
534
525
|
__name: "Avatar",
|
|
535
526
|
props: {
|
|
@@ -652,8 +643,7 @@ var Avatar_default = /* @__PURE__ */ defineComponent({
|
|
|
652
643
|
};
|
|
653
644
|
}
|
|
654
645
|
});
|
|
655
|
-
|
|
656
|
-
//#region src/components/avatar/AvatarGroup.vue?vue&type=script&setup=true&lang.ts
|
|
646
|
+
// src/components/avatar/AvatarGroup.vue?vue&type=script&setup=true&lang.ts
|
|
657
647
|
var _hoisted_1$38 = ["aria-labelledby"];
|
|
658
648
|
var _hoisted_2$25 = ["id"];
|
|
659
649
|
var ITEM_SIZE = "sm";
|
|
@@ -663,8 +653,7 @@ var ITEM_SIZE_CLASS = "size-8";
|
|
|
663
653
|
/** 25% of the `sm` diameter (spec "Avatar" → Sizes: "each following avatar is pulled back by 25%
|
|
664
654
|
* of the diameter") — `size-8` is 2rem, so `-ml-2` (0.5rem) is exact, not a derived literal. */
|
|
665
655
|
var OVERLAP_CLASS = "-ml-2";
|
|
666
|
-
|
|
667
|
-
//#region src/components/avatar/AvatarGroup.vue
|
|
656
|
+
// src/components/avatar/AvatarGroup.vue
|
|
668
657
|
var AvatarGroup_default = /* @__PURE__ */ defineComponent({
|
|
669
658
|
__name: "AvatarGroup",
|
|
670
659
|
props: {
|
|
@@ -736,16 +725,14 @@ var AvatarGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
736
725
|
};
|
|
737
726
|
}
|
|
738
727
|
});
|
|
739
|
-
|
|
740
|
-
//#region src/components/badge/Badge.vue?vue&type=script&setup=true&lang.ts
|
|
728
|
+
// src/components/badge/Badge.vue?vue&type=script&setup=true&lang.ts
|
|
741
729
|
var ICON_STROKE_WIDTH$3 = 2.25;
|
|
742
730
|
/**
|
|
743
731
|
* `variant` overrides `tone` (spec "Badge" → Properties): `sale` always reads as `accent`, `new`
|
|
744
732
|
* always as `primary`, whatever `tone` was passed alongside it.
|
|
745
733
|
*/
|
|
746
734
|
var OUTLINE_CLASS = "bg-background text-text border-border-strong";
|
|
747
|
-
|
|
748
|
-
//#region src/components/badge/Badge.vue
|
|
735
|
+
// src/components/badge/Badge.vue
|
|
749
736
|
var Badge_default = /* @__PURE__ */ defineComponent({
|
|
750
737
|
__name: "Badge",
|
|
751
738
|
props: {
|
|
@@ -831,12 +818,10 @@ var Badge_default = /* @__PURE__ */ defineComponent({
|
|
|
831
818
|
};
|
|
832
819
|
}
|
|
833
820
|
});
|
|
834
|
-
|
|
835
|
-
//#region src/components/breadcrumb/Breadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
821
|
+
// src/components/breadcrumb/Breadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
836
822
|
var _hoisted_1$37 = ["aria-label"];
|
|
837
823
|
var _hoisted_2$24 = ["aria-label"];
|
|
838
|
-
|
|
839
|
-
//#region src/components/breadcrumb/Breadcrumb.vue
|
|
824
|
+
// src/components/breadcrumb/Breadcrumb.vue
|
|
840
825
|
var Breadcrumb_default = /* @__PURE__ */ defineComponent({
|
|
841
826
|
__name: "Breadcrumb",
|
|
842
827
|
props: {
|
|
@@ -1236,13 +1221,11 @@ var Breadcrumb_default = /* @__PURE__ */ defineComponent({
|
|
|
1236
1221
|
};
|
|
1237
1222
|
}
|
|
1238
1223
|
});
|
|
1239
|
-
|
|
1240
|
-
//#region src/components/button/ButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
1224
|
+
// src/components/button/ButtonGroup.vue?vue&type=script&setup=true&lang.ts
|
|
1241
1225
|
var _hoisted_1$36 = ["role"];
|
|
1242
1226
|
var BASE$2 = "@container flex items-center";
|
|
1243
1227
|
var LOOSE = "flex-wrap gap-3";
|
|
1244
|
-
|
|
1245
|
-
//#region src/components/button/ButtonGroup.vue
|
|
1228
|
+
// src/components/button/ButtonGroup.vue
|
|
1246
1229
|
var ButtonGroup_default = /* @__PURE__ */ defineComponent({
|
|
1247
1230
|
__name: "ButtonGroup",
|
|
1248
1231
|
props: {
|
|
@@ -1282,8 +1265,7 @@ var ButtonGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
1282
1265
|
};
|
|
1283
1266
|
}
|
|
1284
1267
|
});
|
|
1285
|
-
|
|
1286
|
-
//#region src/components/carousel/useCarousel.ts
|
|
1268
|
+
// src/components/carousel/useCarousel.ts
|
|
1287
1269
|
/**
|
|
1288
1270
|
* Normalises `CarouselProps['perView']` into the three breakpoint slots, `base` always present.
|
|
1289
1271
|
* Exported so `Carousel.vue` and a future `Lightbox` share one reading of the prop rather than
|
|
@@ -2228,8 +2210,7 @@ function useCarousel(options) {
|
|
|
2228
2210
|
toggle
|
|
2229
2211
|
};
|
|
2230
2212
|
}
|
|
2231
|
-
|
|
2232
|
-
//#region src/components/carousel/Carousel.vue?vue&type=script&setup=true&lang.ts
|
|
2213
|
+
// src/components/carousel/Carousel.vue?vue&type=script&setup=true&lang.ts
|
|
2233
2214
|
var _hoisted_1$35 = ["aria-label", "aria-describedby"];
|
|
2234
2215
|
var _hoisted_2$23 = ["id"];
|
|
2235
2216
|
var _hoisted_3$16 = {
|
|
@@ -2238,7 +2219,7 @@ var _hoisted_3$16 = {
|
|
|
2238
2219
|
};
|
|
2239
2220
|
var _hoisted_4$11 = ["disabled", "aria-label"];
|
|
2240
2221
|
var _hoisted_5$8 = ["disabled", "aria-label"];
|
|
2241
|
-
var _hoisted_6$
|
|
2222
|
+
var _hoisted_6$2 = ["tabindex", "aria-label"];
|
|
2242
2223
|
var _hoisted_7$2 = {
|
|
2243
2224
|
key: 2,
|
|
2244
2225
|
class: "flex items-center justify-between gap-4"
|
|
@@ -2259,8 +2240,7 @@ var _hoisted_13 = ["disabled", "aria-label"];
|
|
|
2259
2240
|
var _hoisted_14 = ["disabled", "aria-label"];
|
|
2260
2241
|
var _hoisted_15 = { key: 5 };
|
|
2261
2242
|
var ARROW_BASE = "inline-flex size-11 shrink-0 cursor-pointer items-center justify-center rounded-full border border-border-strong bg-background text-text eldra-focus hover:border-text hover:bg-surface disabled:cursor-not-allowed disabled:opacity-45 disabled:hover:border-border-strong disabled:hover:bg-background";
|
|
2262
|
-
|
|
2263
|
-
//#region src/components/carousel/Carousel.vue
|
|
2243
|
+
// src/components/carousel/Carousel.vue
|
|
2264
2244
|
var Carousel_default = /* @__PURE__ */ defineComponent({
|
|
2265
2245
|
__name: "Carousel",
|
|
2266
2246
|
props: {
|
|
@@ -2534,7 +2514,7 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
|
|
|
2534
2514
|
class: normalizeClass(trackClass.value),
|
|
2535
2515
|
style: normalizeStyle(trackStyle.value),
|
|
2536
2516
|
onKeydown: _cache[2] || (_cache[2] = (...args) => unref(onTrackKeydown) && unref(onTrackKeydown)(...args))
|
|
2537
|
-
}, [renderSlot(_ctx.$slots, "default")], 46, _hoisted_6$
|
|
2517
|
+
}, [renderSlot(_ctx.$slots, "default")], 46, _hoisted_6$2),
|
|
2538
2518
|
showBelowRow.value ? (openBlock(), createElementBlock("div", _hoisted_7$2, [
|
|
2539
2519
|
showPause.value ? (openBlock(), createElementBlock("button", {
|
|
2540
2520
|
key: 0,
|
|
@@ -2612,12 +2592,10 @@ var Carousel_default = /* @__PURE__ */ defineComponent({
|
|
|
2612
2592
|
};
|
|
2613
2593
|
}
|
|
2614
2594
|
});
|
|
2615
|
-
|
|
2616
|
-
//#region src/components/chip/context.ts
|
|
2595
|
+
// src/components/chip/context.ts
|
|
2617
2596
|
/** The key a `ChipGroup` provides its `ChipGroupContext` on. */
|
|
2618
2597
|
var CHIP_GROUP_KEY = Symbol("eldra-ui:chip-group");
|
|
2619
|
-
|
|
2620
|
-
//#region src/components/chip/Chip.vue?vue&type=script&setup=true&lang.ts
|
|
2598
|
+
// src/components/chip/Chip.vue?vue&type=script&setup=true&lang.ts
|
|
2621
2599
|
var _hoisted_1$34 = ["aria-label", "disabled"];
|
|
2622
2600
|
var FILL_SELECTED = "bg-primary text-primary-contrast";
|
|
2623
2601
|
var FILL_DISABLED = "bg-surface-strong text-muted cursor-not-allowed";
|
|
@@ -2627,8 +2605,7 @@ var HOVER_SELECTED = "hover:bg-[color-mix(in_oklab,var(--eldra-color-primary),va
|
|
|
2627
2605
|
* toward `text` instead of a 94%-transparent overlay of it. */
|
|
2628
2606
|
var HOVER_BASE = "hover:bg-[color-mix(in_oklab,var(--eldra-color-surface-strong),var(--eldra-color-text)_6%)]";
|
|
2629
2607
|
var PRESS = "active:scale-[0.98] motion-reduce:active:scale-100";
|
|
2630
|
-
|
|
2631
|
-
//#region src/components/chip/Chip.vue
|
|
2608
|
+
// src/components/chip/Chip.vue
|
|
2632
2609
|
var Chip_default = /* @__PURE__ */ defineComponent({
|
|
2633
2610
|
__name: "Chip",
|
|
2634
2611
|
props: {
|
|
@@ -2921,11 +2898,9 @@ var Chip_default = /* @__PURE__ */ defineComponent({
|
|
|
2921
2898
|
};
|
|
2922
2899
|
}
|
|
2923
2900
|
});
|
|
2924
|
-
|
|
2925
|
-
//#region src/components/chip/ChipGroup.vue?vue&type=script&setup=true&lang.ts
|
|
2901
|
+
// src/components/chip/ChipGroup.vue?vue&type=script&setup=true&lang.ts
|
|
2926
2902
|
var _hoisted_1$33 = ["aria-label", "aria-disabled"];
|
|
2927
|
-
|
|
2928
|
-
//#region src/components/chip/ChipGroup.vue
|
|
2903
|
+
// src/components/chip/ChipGroup.vue
|
|
2929
2904
|
var ChipGroup_default = /* @__PURE__ */ defineComponent({
|
|
2930
2905
|
__name: "ChipGroup",
|
|
2931
2906
|
props: {
|
|
@@ -2983,11 +2958,9 @@ var ChipGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
2983
2958
|
};
|
|
2984
2959
|
}
|
|
2985
2960
|
});
|
|
2986
|
-
|
|
2987
|
-
//#region src/components/container/Container.vue?vue&type=script&setup=true&lang.ts
|
|
2961
|
+
// src/components/container/Container.vue?vue&type=script&setup=true&lang.ts
|
|
2988
2962
|
var GUTTER = "px-[var(--eldra-gutter-mobile)] @tablet:px-[var(--eldra-gutter-tablet)] @content:px-[var(--eldra-gutter-desktop)]";
|
|
2989
|
-
|
|
2990
|
-
//#region src/components/container/Container.vue
|
|
2963
|
+
// src/components/container/Container.vue
|
|
2991
2964
|
var Container_default = /* @__PURE__ */ defineComponent({
|
|
2992
2965
|
__name: "Container",
|
|
2993
2966
|
props: {
|
|
@@ -3041,8 +3014,7 @@ var Container_default = /* @__PURE__ */ defineComponent({
|
|
|
3041
3014
|
};
|
|
3042
3015
|
}
|
|
3043
3016
|
});
|
|
3044
|
-
|
|
3045
|
-
//#region src/utils/date.ts
|
|
3017
|
+
// src/utils/date.ts
|
|
3046
3018
|
var DEFAULT_PARTS = {
|
|
3047
3019
|
day: "numeric",
|
|
3048
3020
|
month: "short",
|
|
@@ -3074,8 +3046,7 @@ function formatDate(iso, locale, options) {
|
|
|
3074
3046
|
}
|
|
3075
3047
|
}
|
|
3076
3048
|
}
|
|
3077
|
-
|
|
3078
|
-
//#region src/utils/ratio.ts
|
|
3049
|
+
// src/utils/ratio.ts
|
|
3079
3050
|
/**
|
|
3080
3051
|
* The CSS `aspect-ratio` value for every fixed preset (spec "Image" → Sizes). Written as
|
|
3081
3052
|
* `"<w> / <h>"` rather than a decimal so the frame's own ratio reads the same in the DOM as it
|
|
@@ -3114,8 +3085,7 @@ function frameAspectRatio(ratio, media) {
|
|
|
3114
3085
|
if (!media) return RATIO_VALUES["4x3"];
|
|
3115
3086
|
return "auto";
|
|
3116
3087
|
}
|
|
3117
|
-
|
|
3118
|
-
//#region src/utils/sizes.ts
|
|
3088
|
+
// src/utils/sizes.ts
|
|
3119
3089
|
/** Multiplies every length in an `<img sizes>` list by `zoom`, keeping its media conditions. */
|
|
3120
3090
|
function zoomSizes(sizes, zoom) {
|
|
3121
3091
|
if (!Number.isFinite(zoom) || zoom <= 1) return sizes;
|
|
@@ -3170,8 +3140,7 @@ function zoomEntry(entry, zoom) {
|
|
|
3170
3140
|
if (start < 0 || /^(?:auto|0)$/i.test(entry.slice(start))) return entry;
|
|
3171
3141
|
return `${entry.slice(0, start)}calc(${entry.slice(start)} * ${zoom})`;
|
|
3172
3142
|
}
|
|
3173
|
-
|
|
3174
|
-
//#region src/components/image/Image.vue?vue&type=script&setup=true&lang.ts
|
|
3143
|
+
// src/components/image/Image.vue?vue&type=script&setup=true&lang.ts
|
|
3175
3144
|
var _hoisted_1$32 = [
|
|
3176
3145
|
"src",
|
|
3177
3146
|
"width",
|
|
@@ -3193,8 +3162,7 @@ var _hoisted_3$15 = [
|
|
|
3193
3162
|
"aria-label"
|
|
3194
3163
|
];
|
|
3195
3164
|
var _hoisted_4$10 = { "aria-hidden": "true" };
|
|
3196
|
-
|
|
3197
|
-
//#region src/components/image/Image.vue
|
|
3165
|
+
// src/components/image/Image.vue
|
|
3198
3166
|
var Image_default = /* @__PURE__ */ defineComponent({
|
|
3199
3167
|
inheritAttrs: false,
|
|
3200
3168
|
__name: "Image",
|
|
@@ -3279,7 +3247,7 @@ var Image_default = /* @__PURE__ */ defineComponent({
|
|
|
3279
3247
|
if (zoom <= 1 && !rule) return style;
|
|
3280
3248
|
const scale = Math.max(1, zoom);
|
|
3281
3249
|
return Object.assign(style, {
|
|
3282
|
-
position: "
|
|
3250
|
+
position: "absolute",
|
|
3283
3251
|
left: percent(focal.x * (1 - scale)),
|
|
3284
3252
|
top: percent(focal.y * (1 - scale)),
|
|
3285
3253
|
width: percent(scale * 100),
|
|
@@ -3433,12 +3401,10 @@ var Image_default = /* @__PURE__ */ defineComponent({
|
|
|
3433
3401
|
};
|
|
3434
3402
|
}
|
|
3435
3403
|
});
|
|
3436
|
-
|
|
3437
|
-
//#region src/components/skeleton/Skeleton.vue?vue&type=script&setup=true&lang.ts
|
|
3404
|
+
// src/components/skeleton/Skeleton.vue?vue&type=script&setup=true&lang.ts
|
|
3438
3405
|
var TITLE_WIDTH_CLASS = "w-[60%]";
|
|
3439
3406
|
var PART = "line";
|
|
3440
|
-
|
|
3441
|
-
//#region src/components/skeleton/Skeleton.vue
|
|
3407
|
+
// src/components/skeleton/Skeleton.vue
|
|
3442
3408
|
var Skeleton_default = /* @__PURE__ */ defineComponent({
|
|
3443
3409
|
__name: "Skeleton",
|
|
3444
3410
|
props: {
|
|
@@ -3553,8 +3519,7 @@ var Skeleton_default = /* @__PURE__ */ defineComponent({
|
|
|
3553
3519
|
};
|
|
3554
3520
|
}
|
|
3555
3521
|
});
|
|
3556
|
-
|
|
3557
|
-
//#region src/components/card/stretchedLink.ts
|
|
3522
|
+
// src/components/card/stretchedLink.ts
|
|
3558
3523
|
/**
|
|
3559
3524
|
* The "whole card is one link" pattern shared by every card whose entire surface is a single tab
|
|
3560
3525
|
* stop: `ContentCard` and `FeatureCard` here, and `ProductCard` (built in the same wave, and
|
|
@@ -3600,8 +3565,7 @@ var Skeleton_default = /* @__PURE__ */ defineComponent({
|
|
|
3600
3565
|
var CARD_FOCUS_PROXY = "group relative rounded-lg eldra-focus eldra-focus-proxy";
|
|
3601
3566
|
var STRETCHED_LINK = "after:absolute after:inset-0";
|
|
3602
3567
|
var STRETCHED_LINK_OUTLINE = "outline-none";
|
|
3603
|
-
|
|
3604
|
-
//#region src/components/card/cueArrow.ts
|
|
3568
|
+
// src/components/card/cueArrow.ts
|
|
3605
3569
|
/**
|
|
3606
3570
|
* The link cue's arrow (spec "Content card"/"Feature card" → States, Hover: "cue arrow moves 2px
|
|
3607
3571
|
* right (`duration-fast`)"), shared by `ContentCard.vue` and `FeatureCard.vue` — both draw the
|
|
@@ -3616,13 +3580,11 @@ var CUE_ARROW_PATHS = [
|
|
|
3616
3580
|
"M13 18l6 -6",
|
|
3617
3581
|
"M13 6l6 6"
|
|
3618
3582
|
];
|
|
3619
|
-
|
|
3620
|
-
//#region src/components/card/ContentCard.vue?vue&type=script&setup=true&lang.ts
|
|
3583
|
+
// src/components/card/ContentCard.vue?vue&type=script&setup=true&lang.ts
|
|
3621
3584
|
var _hoisted_1$31 = ["aria-label"];
|
|
3622
3585
|
var _hoisted_2$21 = ["datetime"];
|
|
3623
3586
|
var _hoisted_3$14 = ["d"];
|
|
3624
|
-
|
|
3625
|
-
//#region src/components/card/ContentCard.vue
|
|
3587
|
+
// src/components/card/ContentCard.vue
|
|
3626
3588
|
var ContentCard_default = /* @__PURE__ */ defineComponent({
|
|
3627
3589
|
__name: "ContentCard",
|
|
3628
3590
|
props: {
|
|
@@ -3867,8 +3829,7 @@ var ContentCard_default = /* @__PURE__ */ defineComponent({
|
|
|
3867
3829
|
};
|
|
3868
3830
|
}
|
|
3869
3831
|
});
|
|
3870
|
-
|
|
3871
|
-
//#region src/composables/dialogStack.ts
|
|
3832
|
+
// src/composables/dialogStack.ts
|
|
3872
3833
|
/** Bottom to top: `stack[0]` opened first, `stack.at(-1)` is the current top. */
|
|
3873
3834
|
var stack = [];
|
|
3874
3835
|
/** The `<html>` inline `overflow` this module overwrote, restored when the lock is released. */
|
|
@@ -3950,8 +3911,7 @@ function isOpenDialog(dialog) {
|
|
|
3950
3911
|
function currentDialog() {
|
|
3951
3912
|
return stack.at(-1)?.dialog ?? null;
|
|
3952
3913
|
}
|
|
3953
|
-
|
|
3954
|
-
//#region src/composables/useDialog.ts
|
|
3914
|
+
// src/composables/useDialog.ts
|
|
3955
3915
|
/**
|
|
3956
3916
|
* Every element the platform lets a keyboard user reach, the same list `useOverlay` builds for its
|
|
3957
3917
|
* own (non-modal) overlays. Duplicated rather than imported: `useOverlay`'s copy is private to that
|
|
@@ -3974,6 +3934,26 @@ function isReachable(element) {
|
|
|
3974
3934
|
* (`Dialog` today; `Drawer`/`Lightbox`/`SearchModal` next) names its own close button the same way,
|
|
3975
3935
|
* so this exclusion works for all of them without a second constant to keep in sync.
|
|
3976
3936
|
*/
|
|
3937
|
+
var lastInputWasPointer = false;
|
|
3938
|
+
var trackingInput = false;
|
|
3939
|
+
function trackInputModality() {
|
|
3940
|
+
if (trackingInput || typeof document === "undefined") return;
|
|
3941
|
+
trackingInput = true;
|
|
3942
|
+
document.addEventListener("pointerdown", () => lastInputWasPointer = true, true);
|
|
3943
|
+
document.addEventListener("keydown", () => lastInputWasPointer = false, true);
|
|
3944
|
+
}
|
|
3945
|
+
trackInputModality();
|
|
3946
|
+
var TEXT_ENTRY = "input:not([type=\"button\"], [type=\"submit\"], [type=\"reset\"], [type=\"checkbox\"], [type=\"radio\"], [type=\"range\"], [type=\"color\"], [type=\"file\"], [type=\"image\"]), textarea, [contenteditable]:not([contenteditable=\"false\"])";
|
|
3947
|
+
function takesFocusOnTap(element) {
|
|
3948
|
+
return element != null && (element.hasAttribute("autofocus") || element.matches(TEXT_ENTRY));
|
|
3949
|
+
}
|
|
3950
|
+
function focusSurface(dialog) {
|
|
3951
|
+
if (!dialog.hasAttribute("tabindex")) dialog.setAttribute("tabindex", "-1");
|
|
3952
|
+
dialog.focus({ preventScroll: true });
|
|
3953
|
+
}
|
|
3954
|
+
function autofocusControl(root) {
|
|
3955
|
+
return [...root.querySelectorAll("[autofocus]")].find(isReachable);
|
|
3956
|
+
}
|
|
3977
3957
|
function firstMeaningfulControl(root) {
|
|
3978
3958
|
return [...root.querySelectorAll(FOCUSABLE)].find((element) => isReachable(element) && element.closest("[data-part=\"close\"]") === null);
|
|
3979
3959
|
}
|
|
@@ -4001,9 +3981,11 @@ function firstMeaningfulControl(root) {
|
|
|
4001
3981
|
* composable): the page behind does not scroll while the stack is non-empty (released only once
|
|
4002
3982
|
* every open modal has closed), and `TOAST_HOST_KEY` tracks the **topmost** dialog a `Toaster`
|
|
4003
3983
|
* should render into.
|
|
4004
|
-
* - **Initial focus**: `initialFocus`, else
|
|
4005
|
-
* see `firstMeaningfulControl` above), else the close
|
|
4006
|
-
* whatever the platform already focused.
|
|
3984
|
+
* - **Initial focus**: `initialFocus`, else a reachable control marked `autofocus`, else the first
|
|
3985
|
+
* meaningful control (never the close button — see `firstMeaningfulControl` above), else the close
|
|
3986
|
+
* button itself as a last resort, else whatever the platform already focused. Opened by a tap or
|
|
3987
|
+
* click, the dialog focuses itself instead unless that target is a text field or marked
|
|
3988
|
+
* `autofocus`, because Safari rings a control script focuses after a tap. Applied a tick after `showModal()`, so slot content that
|
|
4007
3989
|
* mounts alongside the dialog (a form's first field) already exists in the DOM to focus.
|
|
4008
3990
|
* - **Focus return**: whatever had focus immediately before `showModal()` gets it back the moment
|
|
4009
3991
|
* the dialog actually closes, by any route — the page's own opener for the bottom of the stack,
|
|
@@ -4043,12 +4025,13 @@ function useDialog(options) {
|
|
|
4043
4025
|
function focusInitial() {
|
|
4044
4026
|
const el = dialog.value;
|
|
4045
4027
|
if (el === null) return;
|
|
4046
|
-
const
|
|
4047
|
-
if (
|
|
4048
|
-
|
|
4028
|
+
const target = options.initialFocus?.value ?? autofocusControl(el) ?? firstMeaningfulControl(el) ?? el.querySelector("[data-part=\"close\"]");
|
|
4029
|
+
if (lastInputWasPointer && !takesFocusOnTap(target)) {
|
|
4030
|
+
focusSurface(el);
|
|
4049
4031
|
return;
|
|
4050
4032
|
}
|
|
4051
|
-
|
|
4033
|
+
target?.focus();
|
|
4034
|
+
if (target != null && document.activeElement !== target) focusSurface(el);
|
|
4052
4035
|
}
|
|
4053
4036
|
function show() {
|
|
4054
4037
|
const el = dialog.value;
|
|
@@ -4121,14 +4104,12 @@ function useDialog(options) {
|
|
|
4121
4104
|
isTop: computed(() => dialog.value !== null && isOpenDialog(dialog.value))
|
|
4122
4105
|
};
|
|
4123
4106
|
}
|
|
4124
|
-
|
|
4125
|
-
//#region src/components/dialog/Dialog.vue?vue&type=script&setup=true&lang.ts
|
|
4107
|
+
// src/components/dialog/Dialog.vue?vue&type=script&setup=true&lang.ts
|
|
4126
4108
|
var _hoisted_1$30 = ["aria-labelledby", "aria-describedby"];
|
|
4127
4109
|
var _hoisted_2$20 = ["id"];
|
|
4128
4110
|
var _hoisted_3$13 = ["aria-label"];
|
|
4129
4111
|
var _hoisted_4$9 = ["id"];
|
|
4130
|
-
|
|
4131
|
-
//#region src/components/dialog/Dialog.vue
|
|
4112
|
+
// src/components/dialog/Dialog.vue
|
|
4132
4113
|
var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
4133
4114
|
__name: "Dialog",
|
|
4134
4115
|
props: {
|
|
@@ -4203,7 +4184,7 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
4203
4184
|
close,
|
|
4204
4185
|
isTop
|
|
4205
4186
|
});
|
|
4206
|
-
const rootClass = computed(() => partClass(cx("hidden open:block m-auto border-0 bg-transparent p-0 text-text", "backdrop:bg-overlay", "animate-eldra-dialog-in motion-reduce:animate-eldra-dialog-in-reduced"), props.classes, "root"));
|
|
4187
|
+
const rootClass = computed(() => partClass(cx("hidden open:block m-auto border-0 bg-transparent p-0 text-text", "backdrop:bg-overlay focus:outline-none", "animate-eldra-dialog-in motion-reduce:animate-eldra-dialog-in-reduced"), props.classes, "root"));
|
|
4207
4188
|
/**
|
|
4208
4189
|
* The visible box (spec "Dialog" → Sizes): the `<dialog>` itself stays transparent and unsized
|
|
4209
4190
|
* above, so this inner flex column carries the border/shadow/radius and the width/max-height
|
|
@@ -4285,14 +4266,12 @@ var Dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
4285
4266
|
};
|
|
4286
4267
|
}
|
|
4287
4268
|
});
|
|
4288
|
-
|
|
4289
|
-
//#region src/components/drawer/Drawer.vue?vue&type=script&setup=true&lang.ts
|
|
4269
|
+
// src/components/drawer/Drawer.vue?vue&type=script&setup=true&lang.ts
|
|
4290
4270
|
var _hoisted_1$29 = ["aria-labelledby", "aria-label"];
|
|
4291
4271
|
var _hoisted_2$19 = ["id"];
|
|
4292
4272
|
var _hoisted_3$12 = ["aria-label"];
|
|
4293
4273
|
var titleAreaClass = "min-w-0 flex-1";
|
|
4294
|
-
|
|
4295
|
-
//#region src/components/drawer/Drawer.vue
|
|
4274
|
+
// src/components/drawer/Drawer.vue
|
|
4296
4275
|
var Drawer_default = /* @__PURE__ */ defineComponent({
|
|
4297
4276
|
__name: "Drawer",
|
|
4298
4277
|
props: {
|
|
@@ -4397,19 +4376,20 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
|
|
|
4397
4376
|
* for a closed `<dialog>` loses to *any* author `display` utility regardless of specificity, so
|
|
4398
4377
|
* `flex` alone painted the box even with the `open` attribute gone.
|
|
4399
4378
|
*/
|
|
4400
|
-
const rootClass = computed(() => partClass(cx("fixed inset-0 m-0 hidden open:flex h-auto max-h-none w-full max-w-none border-0 bg-transparent p-0 text-text", props.side === "left" ? "justify-start" : "justify-end", "backdrop:bg-overlay", props.side === "left" ? "animate-eldra-drawer-in-left motion-reduce:animate-eldra-dialog-in-reduced" : "animate-eldra-drawer-in-right motion-reduce:animate-eldra-dialog-in-reduced"), props.classes, "root"));
|
|
4379
|
+
const rootClass = computed(() => partClass(cx("fixed inset-0 m-0 hidden open:flex h-auto max-h-none w-full max-w-none border-0 bg-transparent p-0 text-text", props.side === "left" ? "justify-start" : "justify-end", "backdrop:bg-overlay focus:outline-none", props.side === "left" ? "animate-eldra-drawer-in-left motion-reduce:animate-eldra-dialog-in-reduced" : "animate-eldra-drawer-in-right motion-reduce:animate-eldra-dialog-in-reduced"), props.classes, "root"));
|
|
4401
4380
|
/**
|
|
4402
4381
|
* The visible sheet (spec "Drawer" → Sizes): full viewport height pinned to its edge, the width
|
|
4403
4382
|
* variable clamp (`eldra-drawer-width`, which also carries the full-screen-below-48rem-viewport
|
|
4404
4383
|
* media query — see its own comment in `tailwind.css`), radius none, `shadow-md`, and a 1px
|
|
4405
4384
|
* `border` on the *inner* edge only — the left edge for a right drawer, the right edge for a left
|
|
4406
|
-
* one, since the outer edge is the viewport boundary itself
|
|
4385
|
+
* one, since the outer edge is the viewport boundary itself — and none below 48rem, where the
|
|
4386
|
+
* sheet covers the screen and that edge is the viewport's too.
|
|
4407
4387
|
*/
|
|
4408
|
-
const panelClass = computed(() => partClass(cx("flex h-full max-h-full min-w-0 flex-col bg-background text-text shadow-md", "eldra-drawer-width", props.side === "left" ? "border-r border-border" : "border-l border-border"), props.classes, "panel"));
|
|
4388
|
+
const panelClass = computed(() => partClass(cx("flex h-full max-h-full min-w-0 flex-col bg-background text-text shadow-md", "eldra-drawer-width", props.side === "left" ? "border-r border-border max-md:border-r-0" : "border-l border-border max-md:border-l-0"), props.classes, "panel"));
|
|
4409
4389
|
/** `--eldra-drawer-width` from the `width` prop, left unset so the utility's own literal default
|
|
4410
4390
|
* (28rem) applies when the prop is omitted. */
|
|
4411
4391
|
const panelStyle = computed(() => props.width === void 0 ? void 0 : { "--eldra-drawer-width": props.width });
|
|
4412
|
-
const headerClass = computed(() => partClass("flex
|
|
4392
|
+
const headerClass = computed(() => partClass(cx("flex shrink-0 items-center gap-4 border-b border-border", "eldra-drawer-header-height eldra-drawer-gutter eldra-drawer-header-top eldra-drawer-header-bottom"), props.classes, "header"));
|
|
4413
4393
|
/** A plain layout spacer, not a named part: `flex-1` so it claims every pixel the title does not
|
|
4414
4394
|
* need, which is what pushes the close button to the row's end even when there is no `title` to
|
|
4415
4395
|
* share the row with (the menu drawer, `ariaLabel` only) — simpler than an `ms-auto` on the close
|
|
@@ -4427,8 +4407,8 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
|
|
|
4427
4407
|
* active state is a 2% scale instead of a translate).
|
|
4428
4408
|
*/
|
|
4429
4409
|
const closeClass = computed(() => partClass(cx("inline-flex size-10 max-md:size-11 shrink-0 cursor-pointer items-center justify-center rounded-sm", "text-text eldra-focus", "hover:bg-[color-mix(in_oklab,var(--eldra-color-text),transparent_94%)]", "active:scale-[0.98] active:bg-[color-mix(in_oklab,var(--eldra-color-text),transparent_89%)]"), props.classes, "close"));
|
|
4430
|
-
const bodyClass = computed(() => partClass("min-h-0 flex-1 overflow-y-auto
|
|
4431
|
-
const footerClass = computed(() => partClass("flex shrink-0 flex-wrap items-center gap-3 border-t border-border bg-background
|
|
4410
|
+
const bodyClass = computed(() => partClass(cx("min-h-0 flex-1 overflow-y-auto pt-6 eldra-drawer-gutter eldra-drawer-body-bottom"), props.classes, "body"));
|
|
4411
|
+
const footerClass = computed(() => partClass(cx("flex shrink-0 flex-wrap items-center gap-3 border-t border-border bg-background pt-5", "eldra-drawer-gutter eldra-drawer-footer-bottom"), props.classes, "footer"));
|
|
4432
4412
|
return (_ctx, _cache) => {
|
|
4433
4413
|
return openBlock(), createElementBlock("dialog", {
|
|
4434
4414
|
ref_key: "dialogEl",
|
|
@@ -4488,8 +4468,7 @@ var Drawer_default = /* @__PURE__ */ defineComponent({
|
|
|
4488
4468
|
};
|
|
4489
4469
|
}
|
|
4490
4470
|
});
|
|
4491
|
-
|
|
4492
|
-
//#region src/components/empty-state/EditorPlaceholder.vue
|
|
4471
|
+
// src/components/empty-state/EditorPlaceholder.vue
|
|
4493
4472
|
var EditorPlaceholder_default = /* @__PURE__ */ defineComponent({
|
|
4494
4473
|
__name: "EditorPlaceholder",
|
|
4495
4474
|
props: {
|
|
@@ -4546,8 +4525,7 @@ var EditorPlaceholder_default = /* @__PURE__ */ defineComponent({
|
|
|
4546
4525
|
};
|
|
4547
4526
|
}
|
|
4548
4527
|
});
|
|
4549
|
-
|
|
4550
|
-
//#region src/icons/paths.ts
|
|
4528
|
+
// src/icons/paths.ts
|
|
4551
4529
|
/**
|
|
4552
4530
|
* Inline SVG path data for a handful of Tabler icons this package draws directly rather than
|
|
4553
4531
|
* depending on `@tabler/icons-vue` at runtime (the same decision `StockBadge.vue`'s own comment
|
|
@@ -4562,13 +4540,11 @@ var ALERT_TRIANGLE_PATHS = [
|
|
|
4562
4540
|
"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",
|
|
4563
4541
|
"M12 16h.01"
|
|
4564
4542
|
];
|
|
4565
|
-
|
|
4566
|
-
//#region src/components/empty-state/EmptyState.vue?vue&type=script&setup=true&lang.ts
|
|
4543
|
+
// src/components/empty-state/EmptyState.vue?vue&type=script&setup=true&lang.ts
|
|
4567
4544
|
var _hoisted_1$28 = ["role"];
|
|
4568
4545
|
var _hoisted_2$18 = ["d"];
|
|
4569
4546
|
var ICON_STROKE_WIDTH$2 = 1.5;
|
|
4570
|
-
|
|
4571
|
-
//#region src/components/empty-state/EmptyState.vue
|
|
4547
|
+
// src/components/empty-state/EmptyState.vue
|
|
4572
4548
|
var EmptyState_default = /* @__PURE__ */ defineComponent({
|
|
4573
4549
|
__name: "EmptyState",
|
|
4574
4550
|
props: {
|
|
@@ -4705,11 +4681,9 @@ var EmptyState_default = /* @__PURE__ */ defineComponent({
|
|
|
4705
4681
|
};
|
|
4706
4682
|
}
|
|
4707
4683
|
});
|
|
4708
|
-
|
|
4709
|
-
//#region src/components/card/FeatureCard.vue?vue&type=script&setup=true&lang.ts
|
|
4684
|
+
// src/components/card/FeatureCard.vue?vue&type=script&setup=true&lang.ts
|
|
4710
4685
|
var _hoisted_1$27 = ["d"];
|
|
4711
|
-
|
|
4712
|
-
//#region src/components/card/FeatureCard.vue
|
|
4686
|
+
// src/components/card/FeatureCard.vue
|
|
4713
4687
|
var FeatureCard_default = /* @__PURE__ */ defineComponent({
|
|
4714
4688
|
__name: "FeatureCard",
|
|
4715
4689
|
props: {
|
|
@@ -4845,8 +4819,7 @@ var FeatureCard_default = /* @__PURE__ */ defineComponent({
|
|
|
4845
4819
|
};
|
|
4846
4820
|
}
|
|
4847
4821
|
});
|
|
4848
|
-
|
|
4849
|
-
//#region src/components/field-wrapper/FieldWrapper.vue?vue&type=script&setup=true&lang.ts
|
|
4822
|
+
// src/components/field-wrapper/FieldWrapper.vue?vue&type=script&setup=true&lang.ts
|
|
4850
4823
|
var _hoisted_1$26 = ["id"];
|
|
4851
4824
|
var _hoisted_2$17 = ["id"];
|
|
4852
4825
|
var GROUP_INLINE = "grid min-w-0 flex-[1_1_14rem] content-start gap-1";
|
|
@@ -4860,8 +4833,7 @@ var INLINE_ROW = "order-1 w-full basis-full";
|
|
|
4860
4833
|
* the `padding-inline` a `<legend>` carries by default removed.
|
|
4861
4834
|
*/
|
|
4862
4835
|
var LABEL_TYPE = "text-label text-text block w-fit";
|
|
4863
|
-
|
|
4864
|
-
//#region src/components/field-wrapper/FieldWrapper.vue
|
|
4836
|
+
// src/components/field-wrapper/FieldWrapper.vue
|
|
4865
4837
|
var FieldWrapper_default = /* @__PURE__ */ defineComponent({
|
|
4866
4838
|
__name: "FieldWrapper",
|
|
4867
4839
|
props: {
|
|
@@ -5114,8 +5086,7 @@ var FieldWrapper_default = /* @__PURE__ */ defineComponent({
|
|
|
5114
5086
|
};
|
|
5115
5087
|
}
|
|
5116
5088
|
});
|
|
5117
|
-
|
|
5118
|
-
//#region src/components/filter-panel/swatchInk.ts
|
|
5089
|
+
// src/components/filter-panel/swatchInk.ts
|
|
5119
5090
|
/**
|
|
5120
5091
|
* The spec's own threshold. Above it the swatch is light enough for the dark `text` check; at it
|
|
5121
5092
|
* or below, the white `focus-inner` one.
|
|
@@ -5281,8 +5252,7 @@ function swatchInk(swatch) {
|
|
|
5281
5252
|
if (luminance === null) return "focus-inner";
|
|
5282
5253
|
return luminance > .35 ? "text" : "focus-inner";
|
|
5283
5254
|
}
|
|
5284
|
-
|
|
5285
|
-
//#region src/components/filter-panel/useFilterPanel.ts
|
|
5255
|
+
// src/components/filter-panel/useFilterPanel.ts
|
|
5286
5256
|
/**
|
|
5287
5257
|
* How many values a `list` facet shows before **Show all N** (spec → Variants, `list` facet row:
|
|
5288
5258
|
* "More than 6 values: the first 6, then **Show all N**").
|
|
@@ -5649,8 +5619,7 @@ function isValueDisabled(value, selection, facetId) {
|
|
|
5649
5619
|
function clearedSelection() {
|
|
5650
5620
|
return {};
|
|
5651
5621
|
}
|
|
5652
|
-
|
|
5653
|
-
//#region src/components/filter-panel/facets/shared.ts
|
|
5622
|
+
// src/components/filter-panel/facets/shared.ts
|
|
5654
5623
|
/**
|
|
5655
5624
|
* Spec "Filter panel" → Sizes, Option row: "Count 0.8125rem `muted`, tabular figures, pushed to
|
|
5656
5625
|
* the end." The same count sits at the end of a swatch row and a switch row, so it is written
|
|
@@ -5672,8 +5641,7 @@ var FACET_ROW_HOVER = "hover:bg-[color-mix(in_oklab,var(--eldra-color-text),tran
|
|
|
5672
5641
|
var FACET_ROW_GUTTER = "-mx-2 px-2";
|
|
5673
5642
|
/** The same, at the swatch row's own tighter 0.375rem padding (spec → Sizes, Swatch row). */
|
|
5674
5643
|
var FACET_SWATCH_GUTTER = "-mx-1.5 px-1.5";
|
|
5675
|
-
|
|
5676
|
-
//#region src/components/filter-panel/facets/ColourFacet.vue?vue&type=script&setup=true&lang.ts
|
|
5644
|
+
// src/components/filter-panel/facets/ColourFacet.vue?vue&type=script&setup=true&lang.ts
|
|
5677
5645
|
var _hoisted_1$25 = ["data-part", "data-value"];
|
|
5678
5646
|
var _hoisted_2$16 = [
|
|
5679
5647
|
"value",
|
|
@@ -5722,8 +5690,7 @@ var TILE_NAME_BASE = "min-w-0 break-words text-center text-caption";
|
|
|
5722
5690
|
var TILE_COUNT_BASE = "text-center text-filter-tile-count tabular-nums";
|
|
5723
5691
|
/** The control, invisible but focusable, stretched over the whole row or tile. */
|
|
5724
5692
|
var CONTROL$1 = "absolute inset-0 m-0 size-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed";
|
|
5725
|
-
|
|
5726
|
-
//#region src/components/filter-panel/facets/ColourFacet.vue
|
|
5693
|
+
// src/components/filter-panel/facets/ColourFacet.vue
|
|
5727
5694
|
var ColourFacet_default = /* @__PURE__ */ defineComponent({
|
|
5728
5695
|
__name: "ColourFacet",
|
|
5729
5696
|
props: {
|
|
@@ -5888,8 +5855,7 @@ var ColourFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
5888
5855
|
};
|
|
5889
5856
|
}
|
|
5890
5857
|
});
|
|
5891
|
-
|
|
5892
|
-
//#region src/components/filter-panel/facets/ListFacet.vue?vue&type=script&setup=true&lang.ts
|
|
5858
|
+
// src/components/filter-panel/facets/ListFacet.vue?vue&type=script&setup=true&lang.ts
|
|
5893
5859
|
var _hoisted_1$24 = {
|
|
5894
5860
|
"data-eldra-ui": "",
|
|
5895
5861
|
class: "min-w-0"
|
|
@@ -5920,8 +5886,7 @@ var ROW_LABEL_CHECKED = "font-semibold";
|
|
|
5920
5886
|
var SHOW_ALL_BASE = "mt-1.5";
|
|
5921
5887
|
/** A nested child list, one indent in. */
|
|
5922
5888
|
var CHILDREN_BASE = "ms-6 flex min-w-0 flex-col gap-0.5";
|
|
5923
|
-
|
|
5924
|
-
//#region src/components/filter-panel/facets/ListFacet.vue
|
|
5889
|
+
// src/components/filter-panel/facets/ListFacet.vue
|
|
5925
5890
|
var ListFacet_default = /* @__PURE__ */ defineComponent({
|
|
5926
5891
|
__name: "ListFacet",
|
|
5927
5892
|
props: {
|
|
@@ -6143,8 +6108,7 @@ var ListFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
6143
6108
|
};
|
|
6144
6109
|
}
|
|
6145
6110
|
});
|
|
6146
|
-
|
|
6147
|
-
//#region src/components/range-slider/useRangeSlider.ts
|
|
6111
|
+
// src/components/range-slider/useRangeSlider.ts
|
|
6148
6112
|
/**
|
|
6149
6113
|
* How many fraction digits a number is written with, exponent form included (`1e-7` is 7).
|
|
6150
6114
|
*
|
|
@@ -6298,8 +6262,7 @@ function rangeKeyTransition(key, shiftKey, thumb, value, math) {
|
|
|
6298
6262
|
default: return null;
|
|
6299
6263
|
}
|
|
6300
6264
|
}
|
|
6301
|
-
|
|
6302
|
-
//#region src/components/range-slider/RangeSlider.vue?vue&type=script&setup=true&lang.ts
|
|
6265
|
+
// src/components/range-slider/RangeSlider.vue?vue&type=script&setup=true&lang.ts
|
|
6303
6266
|
var _hoisted_1$23 = ["id"];
|
|
6304
6267
|
var _hoisted_2$14 = ["aria-labelledby"];
|
|
6305
6268
|
var _hoisted_3$9 = [
|
|
@@ -6381,8 +6344,7 @@ var THUMB_DISABLED = "cursor-not-allowed border-border bg-surface-strong shadow-
|
|
|
6381
6344
|
var INPUTS_BASE = "mt-3 grid grid-cols-[1fr_auto_1fr] items-end gap-2";
|
|
6382
6345
|
/** Spec → Anatomy item 6: the word "to", 0.875rem `muted`. */
|
|
6383
6346
|
var SEPARATOR_BASE$1 = "self-center text-center text-body-sm text-muted";
|
|
6384
|
-
|
|
6385
|
-
//#region src/components/range-slider/RangeSlider.vue
|
|
6347
|
+
// src/components/range-slider/RangeSlider.vue
|
|
6386
6348
|
var RangeSlider_default = /* @__PURE__ */ defineComponent({
|
|
6387
6349
|
__name: "RangeSlider",
|
|
6388
6350
|
props: {
|
|
@@ -6878,8 +6840,7 @@ var RangeSlider_default = /* @__PURE__ */ defineComponent({
|
|
|
6878
6840
|
};
|
|
6879
6841
|
}
|
|
6880
6842
|
});
|
|
6881
|
-
|
|
6882
|
-
//#region src/components/filter-panel/Histogram.vue?vue&type=script&setup=true&lang.ts
|
|
6843
|
+
// src/components/filter-panel/Histogram.vue?vue&type=script&setup=true&lang.ts
|
|
6883
6844
|
var _hoisted_1$22 = ["data-inside"];
|
|
6884
6845
|
var ROOT_BASE$1 = "mb-1 flex h-10 w-full items-end gap-0.5";
|
|
6885
6846
|
/** Spec → States, Range: "histogram bars between the thumbs `border-strong`, outside
|
|
@@ -6887,8 +6848,7 @@ var ROOT_BASE$1 = "mb-1 flex h-10 w-full items-end gap-0.5";
|
|
|
6887
6848
|
var BAR_BASE = "flex-1 eldra-filter-histogram-bar";
|
|
6888
6849
|
var BAR_INSIDE = "bg-border-strong";
|
|
6889
6850
|
var BAR_OUTSIDE = "bg-surface-strong";
|
|
6890
|
-
|
|
6891
|
-
//#region src/components/filter-panel/Histogram.vue
|
|
6851
|
+
// src/components/filter-panel/Histogram.vue
|
|
6892
6852
|
var Histogram_default = /* @__PURE__ */ defineComponent({
|
|
6893
6853
|
__name: "Histogram",
|
|
6894
6854
|
props: {
|
|
@@ -6952,8 +6912,7 @@ var Histogram_default = /* @__PURE__ */ defineComponent({
|
|
|
6952
6912
|
};
|
|
6953
6913
|
}
|
|
6954
6914
|
});
|
|
6955
|
-
|
|
6956
|
-
//#region src/components/filter-panel/facets/RangeFacet.vue?vue&type=script&setup=true&lang.ts
|
|
6915
|
+
// src/components/filter-panel/facets/RangeFacet.vue?vue&type=script&setup=true&lang.ts
|
|
6957
6916
|
var FIELDS_BASE = "col-span-full grid grid-cols-[1fr_auto_1fr] items-end gap-2";
|
|
6958
6917
|
/** Spec → Sizes: 'Label "Min" / "Max" 0.75rem weight 500 `muted`, 0.125rem above its Input sm.' */
|
|
6959
6918
|
var FIELD_LABEL = "mb-0.5 block text-filter-tile-count font-medium text-muted";
|
|
@@ -6968,8 +6927,7 @@ var FIELD_CONTROL = "tabular-nums";
|
|
|
6968
6927
|
* with the labels above the fields instead.
|
|
6969
6928
|
*/
|
|
6970
6929
|
var SEPARATOR_BASE = "self-end flex control-h-sm items-center justify-center text-body-sm text-muted";
|
|
6971
|
-
|
|
6972
|
-
//#region src/components/filter-panel/facets/RangeFacet.vue
|
|
6930
|
+
// src/components/filter-panel/facets/RangeFacet.vue
|
|
6973
6931
|
var RangeFacet_default = /* @__PURE__ */ defineComponent({
|
|
6974
6932
|
__name: "RangeFacet",
|
|
6975
6933
|
props: {
|
|
@@ -7282,8 +7240,7 @@ var RangeFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
7282
7240
|
};
|
|
7283
7241
|
}
|
|
7284
7242
|
});
|
|
7285
|
-
|
|
7286
|
-
//#region src/components/link/Link.vue?vue&type=script&setup=true&lang.ts
|
|
7243
|
+
// src/components/link/Link.vue?vue&type=script&setup=true&lang.ts
|
|
7287
7244
|
var BASE$1 = "group eldra-focus eldra-link-radius";
|
|
7288
7245
|
/** Spec "Link" → States: `text` by default, `muted` turning `text` on hover. */
|
|
7289
7246
|
var SECTION$2 = "group-data-[section=primary]/section:text-primary-contrast group-data-[section=accent]/section:text-accent-contrast";
|
|
@@ -7305,8 +7262,7 @@ var UNDERLINE_REST = "underline decoration-1 decoration-current/55 underline-off
|
|
|
7305
7262
|
*/
|
|
7306
7263
|
var STANDALONE_LAYOUT = "inline-flex items-center gap-1 target-min font-semibold";
|
|
7307
7264
|
var UNDERLINE_OPT_OUT = "no-underline hover:underline hover:decoration-1 hover:decoration-current hover:underline-offset-[0.2em] active:underline active:decoration-2 active:underline-offset-[0.2em]";
|
|
7308
|
-
|
|
7309
|
-
//#region src/components/link/Link.vue
|
|
7265
|
+
// src/components/link/Link.vue
|
|
7310
7266
|
var Link_default = /* @__PURE__ */ defineComponent({
|
|
7311
7267
|
__name: "Link",
|
|
7312
7268
|
props: {
|
|
@@ -7441,8 +7397,7 @@ var Link_default = /* @__PURE__ */ defineComponent({
|
|
|
7441
7397
|
};
|
|
7442
7398
|
}
|
|
7443
7399
|
});
|
|
7444
|
-
|
|
7445
|
-
//#region src/components/filter-panel/facets/SizeFacet.vue?vue&type=script&setup=true&lang.ts
|
|
7400
|
+
// src/components/filter-panel/facets/SizeFacet.vue?vue&type=script&setup=true&lang.ts
|
|
7446
7401
|
var _hoisted_1$21 = {
|
|
7447
7402
|
"data-eldra-ui": "",
|
|
7448
7403
|
class: "min-w-0"
|
|
@@ -7482,8 +7437,7 @@ var TILE_DISABLED = "cursor-not-allowed border-dashed border-border-strong bg-su
|
|
|
7482
7437
|
var SIZE_GUIDE_BASE = "mt-2 inline-block text-caption";
|
|
7483
7438
|
/** The control, invisible but focusable, stretched over the whole tile. */
|
|
7484
7439
|
var CONTROL = "absolute inset-0 m-0 size-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed";
|
|
7485
|
-
|
|
7486
|
-
//#region src/components/filter-panel/facets/SizeFacet.vue
|
|
7440
|
+
// src/components/filter-panel/facets/SizeFacet.vue
|
|
7487
7441
|
var SizeFacet_default = /* @__PURE__ */ defineComponent({
|
|
7488
7442
|
__name: "SizeFacet",
|
|
7489
7443
|
props: {
|
|
@@ -7590,8 +7544,7 @@ var SizeFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
7590
7544
|
};
|
|
7591
7545
|
}
|
|
7592
7546
|
});
|
|
7593
|
-
|
|
7594
|
-
//#region src/components/filter-panel/facets/ToggleFacet.vue?vue&type=script&setup=true&lang.ts
|
|
7547
|
+
// src/components/filter-panel/facets/ToggleFacet.vue?vue&type=script&setup=true&lang.ts
|
|
7595
7548
|
var _hoisted_1$20 = ["data-value"];
|
|
7596
7549
|
var VALUES_BASE = "flex min-w-0 flex-col gap-1";
|
|
7597
7550
|
/**
|
|
@@ -7604,8 +7557,7 @@ var VALUES_BASE = "flex min-w-0 flex-col gap-1";
|
|
|
7604
7557
|
var ROW_BASE = "flex min-h-9 min-w-0 items-center justify-between gap-3";
|
|
7605
7558
|
/** Spec → Sizes, Switch row: "label 0.9375rem." */
|
|
7606
7559
|
var SWITCH_LABEL = "text-control text-text";
|
|
7607
|
-
|
|
7608
|
-
//#region src/components/filter-panel/facets/ToggleFacet.vue
|
|
7560
|
+
// src/components/filter-panel/facets/ToggleFacet.vue
|
|
7609
7561
|
var ToggleFacet_default = /* @__PURE__ */ defineComponent({
|
|
7610
7562
|
__name: "ToggleFacet",
|
|
7611
7563
|
props: {
|
|
@@ -7678,8 +7630,7 @@ var ToggleFacet_default = /* @__PURE__ */ defineComponent({
|
|
|
7678
7630
|
};
|
|
7679
7631
|
}
|
|
7680
7632
|
});
|
|
7681
|
-
|
|
7682
|
-
//#region src/components/filter-panel/FilterGroup.vue?vue&type=script&setup=true&lang.ts
|
|
7633
|
+
// src/components/filter-panel/FilterGroup.vue?vue&type=script&setup=true&lang.ts
|
|
7683
7634
|
var _hoisted_1$19 = ["data-facet"];
|
|
7684
7635
|
var _hoisted_2$12 = { class: "m-0" };
|
|
7685
7636
|
var _hoisted_3$7 = [
|
|
@@ -7719,8 +7670,7 @@ var CHEVRON_BASE = "ms-auto size-4.5 shrink-0 text-muted transition-[rotate] dur
|
|
|
7719
7670
|
/** Spec → Body: "1.25rem bottom padding." `min-w-0` so a long label wraps rather than widening. */
|
|
7720
7671
|
var BODY_BASE = "min-w-0 border-0 px-2 pt-0 pb-5";
|
|
7721
7672
|
var BADGE_BASE = "h-5 min-w-5 shrink-0 justify-center px-1.25 tabular-nums";
|
|
7722
|
-
|
|
7723
|
-
//#region src/components/filter-panel/FilterGroup.vue
|
|
7673
|
+
// src/components/filter-panel/FilterGroup.vue
|
|
7724
7674
|
var FilterGroup_default = /* @__PURE__ */ defineComponent({
|
|
7725
7675
|
__name: "FilterGroup",
|
|
7726
7676
|
props: {
|
|
@@ -7854,8 +7804,7 @@ var FilterGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
7854
7804
|
};
|
|
7855
7805
|
}
|
|
7856
7806
|
});
|
|
7857
|
-
|
|
7858
|
-
//#region src/components/filter-panel/FilterPanel.vue?vue&type=script&setup=true&lang.ts
|
|
7807
|
+
// src/components/filter-panel/FilterPanel.vue?vue&type=script&setup=true&lang.ts
|
|
7859
7808
|
var _hoisted_1$18 = ["aria-label"];
|
|
7860
7809
|
var _hoisted_2$11 = ["aria-label"];
|
|
7861
7810
|
var ROOT_BASE = "@container min-w-0 text-control text-text";
|
|
@@ -7871,8 +7820,7 @@ var ROOT_BASE = "@container min-w-0 text-control text-text";
|
|
|
7871
7820
|
var FILTER_GUTTER = "px-2";
|
|
7872
7821
|
/** Spec → Sizes, Head row: "Flex row, space-between, 0.75rem gap, 0.75rem below." */
|
|
7873
7822
|
var TITLE_BASE = "m-0 min-w-0 text-h4 text-text";
|
|
7874
|
-
|
|
7875
|
-
//#region src/components/filter-panel/FilterPanel.vue
|
|
7823
|
+
// src/components/filter-panel/FilterPanel.vue
|
|
7876
7824
|
var FilterPanel_default = /* @__PURE__ */ defineComponent({
|
|
7877
7825
|
__name: "FilterPanel",
|
|
7878
7826
|
props: {
|
|
@@ -8286,14 +8234,13 @@ var FilterPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
8286
8234
|
};
|
|
8287
8235
|
}
|
|
8288
8236
|
});
|
|
8289
|
-
|
|
8290
|
-
//#region src/components/lightbox/Lightbox.vue?vue&type=script&setup=true&lang.ts
|
|
8237
|
+
// src/components/lightbox/Lightbox.vue?vue&type=script&setup=true&lang.ts
|
|
8291
8238
|
var _hoisted_1$17 = ["aria-label"];
|
|
8292
8239
|
var _hoisted_2$10 = { key: 1 };
|
|
8293
8240
|
var _hoisted_3$6 = ["aria-label"];
|
|
8294
8241
|
var _hoisted_4$5 = ["disabled", "aria-label"];
|
|
8295
8242
|
var _hoisted_5$5 = ["aria-label"];
|
|
8296
|
-
var _hoisted_6$
|
|
8243
|
+
var _hoisted_6$1 = ["disabled", "aria-label"];
|
|
8297
8244
|
var _hoisted_7$1 = [
|
|
8298
8245
|
"aria-current",
|
|
8299
8246
|
"aria-label",
|
|
@@ -8306,8 +8253,7 @@ var imageFrameClass = "w-auto max-w-full flex-1 min-h-0 rounded-md";
|
|
|
8306
8253
|
* default caption style (`text-caption text-muted mt-2`, sized/coloured for a light card ground)
|
|
8307
8254
|
* for this component's dark one. */
|
|
8308
8255
|
var imageCaptionClass = "mt-0 shrink-0 px-4 pt-3 pb-4 text-center text-body-sm text-background";
|
|
8309
|
-
|
|
8310
|
-
//#region src/components/lightbox/Lightbox.vue
|
|
8256
|
+
// src/components/lightbox/Lightbox.vue
|
|
8311
8257
|
var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
8312
8258
|
__name: "Lightbox",
|
|
8313
8259
|
props: {
|
|
@@ -8459,7 +8405,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8459
8405
|
close,
|
|
8460
8406
|
isTop
|
|
8461
8407
|
});
|
|
8462
|
-
const rootClass = computed(() => partClass(cx("hidden open:block fixed inset-0 m-0 h-full max-h-none w-full max-w-none border-0 bg-transparent p-0 text-background", "backdrop:bg-overlay", "animate-eldra-lightbox-in motion-reduce:animate-eldra-dialog-in-reduced"), props.classes, "root"));
|
|
8408
|
+
const rootClass = computed(() => partClass(cx("hidden open:block fixed inset-0 m-0 h-full max-h-none w-full max-w-none border-0 bg-transparent p-0 text-background", "backdrop:bg-overlay focus:outline-none", "animate-eldra-lightbox-in motion-reduce:animate-eldra-dialog-in-reduced"), props.classes, "root"));
|
|
8463
8409
|
/**
|
|
8464
8410
|
* The viewer ground (spec "States": "Viewer ground: `text` at 94% (near-opaque ink) background;
|
|
8465
8411
|
* text/icon: `background`") — an inverted, near-black fill the rest of the anatomy sits on. The
|
|
@@ -8666,7 +8612,7 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8666
8612
|
"stroke-linejoin": "round",
|
|
8667
8613
|
"aria-hidden": "true",
|
|
8668
8614
|
focusable: "false"
|
|
8669
|
-
}, [createElementVNode("path", { d: "M9 6l6 6l-6 6" })], -1)])], 10, _hoisted_6$
|
|
8615
|
+
}, [createElementVNode("path", { d: "M9 6l6 6l-6 6" })], -1)])], 10, _hoisted_6$1)) : createCommentVNode("", true)
|
|
8670
8616
|
], 2),
|
|
8671
8617
|
showThumbnails.value && unref(model) ? (openBlock(), createElementBlock("div", {
|
|
8672
8618
|
key: 0,
|
|
@@ -8695,14 +8641,12 @@ var Lightbox_default = /* @__PURE__ */ defineComponent({
|
|
|
8695
8641
|
};
|
|
8696
8642
|
}
|
|
8697
8643
|
});
|
|
8698
|
-
|
|
8699
|
-
//#region src/components/load-more/LoadMore.vue?vue&type=script&setup=true&lang.ts
|
|
8644
|
+
// src/components/load-more/LoadMore.vue?vue&type=script&setup=true&lang.ts
|
|
8700
8645
|
var _hoisted_1$16 = ["id"];
|
|
8701
8646
|
var _hoisted_2$9 = ["aria-describedby", "aria-busy"];
|
|
8702
8647
|
var meterTrackClass = "h-1 w-full max-w-56 overflow-hidden rounded-full bg-surface-strong";
|
|
8703
8648
|
var meterFillClass = "h-full rounded-full bg-text transition-[width] duration-base ease-out motion-reduce:transition-none";
|
|
8704
|
-
|
|
8705
|
-
//#region src/components/load-more/LoadMore.vue
|
|
8649
|
+
// src/components/load-more/LoadMore.vue
|
|
8706
8650
|
var LoadMore_default = /* @__PURE__ */ defineComponent({
|
|
8707
8651
|
__name: "LoadMore",
|
|
8708
8652
|
props: {
|
|
@@ -8777,8 +8721,7 @@ var LoadMore_default = /* @__PURE__ */ defineComponent({
|
|
|
8777
8721
|
};
|
|
8778
8722
|
}
|
|
8779
8723
|
});
|
|
8780
|
-
|
|
8781
|
-
//#region src/components/logo-item/LogoItem.vue?vue&type=script&setup=true&lang.ts
|
|
8724
|
+
// src/components/logo-item/LogoItem.vue?vue&type=script&setup=true&lang.ts
|
|
8782
8725
|
var _hoisted_1$15 = ["data-part"];
|
|
8783
8726
|
var _hoisted_2$8 = [
|
|
8784
8727
|
"src",
|
|
@@ -8796,8 +8739,7 @@ var _hoisted_3$5 = [
|
|
|
8796
8739
|
"height",
|
|
8797
8740
|
"alt"
|
|
8798
8741
|
];
|
|
8799
|
-
|
|
8800
|
-
//#region src/components/logo-item/LogoItem.vue
|
|
8742
|
+
// src/components/logo-item/LogoItem.vue
|
|
8801
8743
|
var LogoItem_default = /* @__PURE__ */ defineComponent({
|
|
8802
8744
|
__name: "LogoItem",
|
|
8803
8745
|
props: {
|
|
@@ -8944,8 +8886,7 @@ var LogoItem_default = /* @__PURE__ */ defineComponent({
|
|
|
8944
8886
|
};
|
|
8945
8887
|
}
|
|
8946
8888
|
});
|
|
8947
|
-
|
|
8948
|
-
//#region src/components/nav-menu/navLinks.ts
|
|
8889
|
+
// src/components/nav-menu/navLinks.ts
|
|
8949
8890
|
/** How the page the visitor is on is marked, on every kind of link the menu draws. */
|
|
8950
8891
|
var CURRENT_PAGE = "aria-[current=page]:underline aria-[current=page]:decoration-2 aria-[current=page]:underline-offset-[0.2em]";
|
|
8951
8892
|
/** Whether an entry has visible text to render. */
|
|
@@ -8986,7 +8927,7 @@ function panelLayout(item) {
|
|
|
8986
8927
|
}
|
|
8987
8928
|
/** Whether the item, or an entry in its panel, is the page the visitor is on. */
|
|
8988
8929
|
function containsCurrent(item) {
|
|
8989
|
-
return item.current === true || panelLinks(item).some((link) => link.current === true);
|
|
8930
|
+
return item.current === true || panelLinks(item).some((link) => link.current === true) || (item.groups ?? []).some((group) => group.current === true);
|
|
8990
8931
|
}
|
|
8991
8932
|
/** Whether an entry goes somewhere; one without a destination renders as plain text. */
|
|
8992
8933
|
function hasHref(link) {
|
|
@@ -9007,17 +8948,15 @@ function navLinkAttrs(link, linkAs) {
|
|
|
9007
8948
|
if (link.current === true) attrs["aria-current"] = "page";
|
|
9008
8949
|
return attrs;
|
|
9009
8950
|
}
|
|
9010
|
-
|
|
9011
|
-
//#region src/components/nav-menu/NavMenuPanel.vue?vue&type=script&setup=true&lang.ts
|
|
8951
|
+
// src/components/nav-menu/NavMenuPanel.vue?vue&type=script&setup=true&lang.ts
|
|
9012
8952
|
var _hoisted_1$14 = ["data-part"];
|
|
9013
8953
|
var _hoisted_2$7 = ["data-part"];
|
|
9014
8954
|
var _hoisted_3$4 = ["id", "data-part"];
|
|
9015
8955
|
var _hoisted_4$4 = ["data-part", "aria-labelledby"];
|
|
9016
8956
|
var _hoisted_5$4 = ["data-part"];
|
|
9017
|
-
var _hoisted_6
|
|
8957
|
+
var _hoisted_6 = ["data-part"];
|
|
9018
8958
|
var _hoisted_7 = ["data-part"];
|
|
9019
|
-
|
|
9020
|
-
//#region src/components/nav-menu/NavMenuPanel.vue
|
|
8959
|
+
// src/components/nav-menu/NavMenuPanel.vue
|
|
9021
8960
|
var NavMenuPanel_default = /* @__PURE__ */ defineComponent({
|
|
9022
8961
|
__name: "NavMenuPanel",
|
|
9023
8962
|
props: {
|
|
@@ -9028,7 +8967,8 @@ var NavMenuPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
9028
8967
|
messages: {},
|
|
9029
8968
|
linkAs: {},
|
|
9030
8969
|
classes: {},
|
|
9031
|
-
labelledBy: {}
|
|
8970
|
+
labelledBy: {},
|
|
8971
|
+
omitOverview: { type: Boolean }
|
|
9032
8972
|
},
|
|
9033
8973
|
setup(__props) {
|
|
9034
8974
|
const props = __props;
|
|
@@ -9061,6 +9001,10 @@ var NavMenuPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
9061
9001
|
if (!grouped.value) return panelPartClass("", "columns");
|
|
9062
9002
|
return panelPartClass(bar.value ? "grid eldra-nav-menu-columns gap-6" : "flex flex-col gap-4", "columns");
|
|
9063
9003
|
});
|
|
9004
|
+
function groupMeta(name) {
|
|
9005
|
+
return name === null ? void 0 : props.item.groups?.find((group) => group.label === name);
|
|
9006
|
+
}
|
|
9007
|
+
const groupLinkClass = computed(() => panelPartClass(cx("rounded-sm eldra-focus hover:text-text", CURRENT_PAGE), "groupLink"));
|
|
9064
9008
|
const groupClass = computed(() => panelPartClass("flex min-w-0 flex-col", "group"));
|
|
9065
9009
|
const groupHeadingClass = computed(() => panelPartClass(cx("pb-1 text-overline text-muted", bar.value && "px-3"), "groupHeading"));
|
|
9066
9010
|
const panelListClass = computed(() => panelPartClass(mega.value && !grouped.value ? "grid eldra-nav-menu-columns gap-x-6 gap-y-0.5" : "flex flex-col gap-0.5", "panelList"));
|
|
@@ -9078,7 +9022,7 @@ var NavMenuPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
9078
9022
|
return group !== null ? headingId(index) : props.labelledBy;
|
|
9079
9023
|
}
|
|
9080
9024
|
return (_ctx, _cache) => {
|
|
9081
|
-
return openBlock(), createElementBlock(Fragment, null, [unref(hasHref)(__props.item) ? (openBlock(), createBlock(resolveDynamicComponent(unref(navLinkTag)(__props.item, __props.linkAs)), mergeProps({
|
|
9025
|
+
return openBlock(), createElementBlock(Fragment, null, [unref(hasHref)(__props.item) && !__props.omitOverview ? (openBlock(), createBlock(resolveDynamicComponent(unref(navLinkTag)(__props.item, __props.linkAs)), mergeProps({
|
|
9082
9026
|
key: 0,
|
|
9083
9027
|
"data-eldra-ui": "",
|
|
9084
9028
|
"data-part": part("overview"),
|
|
@@ -9108,7 +9052,17 @@ var NavMenuPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
9108
9052
|
links: group.links,
|
|
9109
9053
|
item: __props.item,
|
|
9110
9054
|
placement: __props.placement
|
|
9111
|
-
}, () => [
|
|
9055
|
+
}, () => [groupMeta(group.group) && unref(hasHref)(groupMeta(group.group)) ? (openBlock(), createBlock(resolveDynamicComponent(unref(navLinkTag)(groupMeta(group.group), __props.linkAs)), mergeProps({
|
|
9056
|
+
key: 0,
|
|
9057
|
+
"data-part": part("groupLink"),
|
|
9058
|
+
class: groupLinkClass.value
|
|
9059
|
+
}, { ref_for: true }, unref(navLinkAttrs)(groupMeta(group.group), __props.linkAs)), {
|
|
9060
|
+
default: withCtx(() => [createTextVNode(toDisplayString(group.group) + " ", 1), groupMeta(group.group).newTab ? (openBlock(), createBlock(VisuallyHidden_default, { key: 0 }, {
|
|
9061
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.messages.opensInNewTab), 1)]),
|
|
9062
|
+
_: 1
|
|
9063
|
+
})) : createCommentVNode("", true)]),
|
|
9064
|
+
_: 2
|
|
9065
|
+
}, 1040, ["data-part", "class"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(group.group), 1)], 64))])], 10, _hoisted_3$4)) : createCommentVNode("", true), createElementVNode("ul", {
|
|
9112
9066
|
"data-part": part("panelList"),
|
|
9113
9067
|
class: normalizeClass(panelListClass.value),
|
|
9114
9068
|
"aria-labelledby": listLabel(group.group, index)
|
|
@@ -9132,7 +9086,7 @@ var NavMenuPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
9132
9086
|
key: 0,
|
|
9133
9087
|
label: link.badge,
|
|
9134
9088
|
classes: badgeClasses.value
|
|
9135
|
-
}, null, 8, ["label", "classes"])) : createCommentVNode("", true)], 10, _hoisted_6
|
|
9089
|
+
}, null, 8, ["label", "classes"])) : createCommentVNode("", true)], 10, _hoisted_6), link.description ? (openBlock(), createElementBlock("span", {
|
|
9136
9090
|
key: 0,
|
|
9137
9091
|
"data-part": part("description"),
|
|
9138
9092
|
class: normalizeClass(descriptionClass.value)
|
|
@@ -9147,8 +9101,7 @@ var NavMenuPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
9147
9101
|
};
|
|
9148
9102
|
}
|
|
9149
9103
|
});
|
|
9150
|
-
|
|
9151
|
-
//#region src/components/nav-menu/navMenuKeys.ts
|
|
9104
|
+
// src/components/nav-menu/navMenuKeys.ts
|
|
9152
9105
|
var PANEL_FOCUSABLE = "a[href], button:not([disabled])";
|
|
9153
9106
|
var TYPING = "input, textarea, select, [contenteditable]:not([contenteditable=\"false\"])";
|
|
9154
9107
|
function clamp(position, length) {
|
|
@@ -9260,8 +9213,7 @@ function useNavMenuKeys(options) {
|
|
|
9260
9213
|
}
|
|
9261
9214
|
};
|
|
9262
9215
|
}
|
|
9263
|
-
|
|
9264
|
-
//#region src/components/nav-menu/NavMenu.vue?vue&type=script&setup=true&lang.ts
|
|
9216
|
+
// src/components/nav-menu/NavMenu.vue?vue&type=script&setup=true&lang.ts
|
|
9265
9217
|
var _hoisted_1$13 = ["aria-label"];
|
|
9266
9218
|
var _hoisted_2$6 = [
|
|
9267
9219
|
"aria-expanded",
|
|
@@ -9277,13 +9229,12 @@ var _hoisted_4$3 = [
|
|
|
9277
9229
|
"aria-controls"
|
|
9278
9230
|
];
|
|
9279
9231
|
var _hoisted_5$3 = ["aria-label"];
|
|
9280
|
-
var _hoisted_6 = ["id"];
|
|
9281
9232
|
var HOVER_INTENT_MS = 150;
|
|
9282
9233
|
var HOVER_FILL = "hover:bg-[color-mix(in_oklab,var(--eldra-color-text),transparent_94%)]";
|
|
9283
9234
|
/** A top-level entry's colours at rest, hovered, open (`aria-expanded`) and current. */
|
|
9284
9235
|
var TOP_LEVEL = "inline-flex min-h-10 cursor-pointer items-center gap-1 rounded-md px-3 text-body font-medium eldra-focus";
|
|
9285
|
-
|
|
9286
|
-
|
|
9236
|
+
var DRAWER_ROW = "eldra-nav-menu-drawer-row";
|
|
9237
|
+
// src/components/nav-menu/NavMenu.vue
|
|
9287
9238
|
var NavMenu_default = /* @__PURE__ */ defineComponent({
|
|
9288
9239
|
__name: "NavMenu",
|
|
9289
9240
|
props: {
|
|
@@ -9496,16 +9447,19 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9496
9447
|
footer: props.classes?.drawerFooter
|
|
9497
9448
|
}));
|
|
9498
9449
|
const sections = computed(() => props.drawerLayout === "sections");
|
|
9499
|
-
const drawerListClass = computed(() => partClass("flex flex-col
|
|
9450
|
+
const drawerListClass = computed(() => partClass("flex flex-col", props.classes, "drawerList"));
|
|
9500
9451
|
function drawerItemClass(item) {
|
|
9501
9452
|
if (!hasPanel(item)) return partClass("border-b border-border", props.classes, "drawerItem");
|
|
9502
|
-
const section = sections.value ? "flex flex-col border-b border-border
|
|
9453
|
+
const section = sections.value ? "flex flex-col border-b border-border pb-4" : "";
|
|
9503
9454
|
return partClass(section, props.classes, "drawerItem");
|
|
9504
9455
|
}
|
|
9505
|
-
|
|
9506
|
-
|
|
9456
|
+
function drawerSectionHeadingClass(item) {
|
|
9457
|
+
return partClass(cx(DRAWER_ROW, "flex w-full items-center rounded-sm py-4 text-accordion-title text-text", hasHref(item) && cx("eldra-focus", "aria-[current=page]:underline aria-[current=page]:decoration-2 aria-[current=page]:underline-offset-[0.2em]")), props.classes, "drawerSectionHeading");
|
|
9458
|
+
}
|
|
9459
|
+
const drawerLinkClass = computed(() => partClass(cx(DRAWER_ROW, "flex w-full items-center rounded-sm py-4", "text-accordion-title text-text eldra-focus", CURRENT_PAGE), props.classes, "drawerLink"));
|
|
9460
|
+
const drawerNestClass = computed(() => partClass("flex flex-col ms-1 border-s border-border eldra-nav-menu-drawer-nest", props.classes, "drawerNest"));
|
|
9507
9461
|
const accordionClasses = computed(() => ({
|
|
9508
|
-
summary: props.classes?.drawerTrigger,
|
|
9462
|
+
summary: cx(DRAWER_ROW, props.classes?.drawerTrigger),
|
|
9509
9463
|
panel: cx("max-w-none pb-4 text-text", props.classes?.drawerPanel)
|
|
9510
9464
|
}));
|
|
9511
9465
|
return (_ctx, _cache) => {
|
|
@@ -9559,7 +9513,7 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9559
9513
|
"stroke-linecap": "round",
|
|
9560
9514
|
"stroke-linejoin": "round",
|
|
9561
9515
|
focusable: "false"
|
|
9562
|
-
}, [createElementVNode("path", { d: "M6 9l6 6l6 -6" })], -1))])], 2)], 42, _hoisted_2$6), createVNode(Transition, mergeProps({ ref_for: true }, PANEL_TRANSITION), {
|
|
9516
|
+
}, [createElementVNode("path", { d: "M6 9l6 6l6 -6" })], -1))])], 2)], 42, _hoisted_2$6), createVNode(Transition, mergeProps({ ref_for: true }, PANEL_TRANSITION, { persisted: "" }), {
|
|
9563
9517
|
default: withCtx(() => [withDirectives(createElementVNode("div", {
|
|
9564
9518
|
id: panelId(index),
|
|
9565
9519
|
ref_for: true,
|
|
@@ -9661,11 +9615,20 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9661
9615
|
key: index,
|
|
9662
9616
|
"data-part": "drawerItem",
|
|
9663
9617
|
class: normalizeClass(drawerItemClass(item))
|
|
9664
|
-
}, [unref(hasPanel)(item) && sections.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
9618
|
+
}, [unref(hasPanel)(item) && sections.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [(openBlock(), createBlock(resolveDynamicComponent(unref(navLinkTag)(item, __props.linkAs)), mergeProps({
|
|
9665
9619
|
id: `${panelId(index)}-drawer-heading`,
|
|
9666
9620
|
"data-part": "drawerSectionHeading",
|
|
9667
|
-
class:
|
|
9668
|
-
},
|
|
9621
|
+
class: drawerSectionHeadingClass(item)
|
|
9622
|
+
}, { ref_for: true }, unref(navLinkAttrs)(item, __props.linkAs)), {
|
|
9623
|
+
default: withCtx(() => [createTextVNode(toDisplayString(item.label) + " ", 1), item.newTab && unref(hasHref)(item) ? (openBlock(), createBlock(VisuallyHidden_default, { key: 0 }, {
|
|
9624
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(m).opensInNewTab), 1)]),
|
|
9625
|
+
_: 1
|
|
9626
|
+
})) : createCommentVNode("", true)]),
|
|
9627
|
+
_: 2
|
|
9628
|
+
}, 1040, ["id", "class"])), createElementVNode("div", {
|
|
9629
|
+
"data-part": "drawerNest",
|
|
9630
|
+
class: normalizeClass(drawerNestClass.value)
|
|
9631
|
+
}, [createVNode(NavMenuPanel_default, {
|
|
9669
9632
|
item,
|
|
9670
9633
|
"id-prefix": `${panelId(index)}-drawer`,
|
|
9671
9634
|
placement: "drawer",
|
|
@@ -9673,7 +9636,8 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9673
9636
|
messages: unref(m),
|
|
9674
9637
|
"link-as": __props.linkAs,
|
|
9675
9638
|
classes: __props.classes,
|
|
9676
|
-
"labelled-by": `${panelId(index)}-drawer-heading
|
|
9639
|
+
"labelled-by": `${panelId(index)}-drawer-heading`,
|
|
9640
|
+
"omit-overview": unref(hasHref)(item)
|
|
9677
9641
|
}, createSlots({ _: 2 }, [unref(slots).panelItem ? {
|
|
9678
9642
|
name: "panelItem",
|
|
9679
9643
|
fn: withCtx((scope) => [renderSlot(_ctx.$slots, "panelItem", mergeProps({ ref_for: true }, scope))]),
|
|
@@ -9689,13 +9653,17 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9689
9653
|
"messages",
|
|
9690
9654
|
"link-as",
|
|
9691
9655
|
"classes",
|
|
9692
|
-
"labelled-by"
|
|
9693
|
-
|
|
9656
|
+
"labelled-by",
|
|
9657
|
+
"omit-overview"
|
|
9658
|
+
])], 2)], 64)) : unref(hasPanel)(item) ? (openBlock(), createBlock(AccordionItem_default, {
|
|
9694
9659
|
key: 1,
|
|
9695
9660
|
title: item.label ?? "",
|
|
9696
9661
|
classes: accordionClasses.value
|
|
9697
9662
|
}, {
|
|
9698
|
-
default: withCtx(() => [
|
|
9663
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
9664
|
+
"data-part": "drawerNest",
|
|
9665
|
+
class: normalizeClass(drawerNestClass.value)
|
|
9666
|
+
}, [createVNode(NavMenuPanel_default, {
|
|
9699
9667
|
item,
|
|
9700
9668
|
"id-prefix": `${panelId(index)}-drawer`,
|
|
9701
9669
|
placement: "drawer",
|
|
@@ -9718,7 +9686,7 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9718
9686
|
"messages",
|
|
9719
9687
|
"link-as",
|
|
9720
9688
|
"classes"
|
|
9721
|
-
])]),
|
|
9689
|
+
])], 2)]),
|
|
9722
9690
|
_: 2
|
|
9723
9691
|
}, 1032, ["title", "classes"])) : (openBlock(), createBlock(resolveDynamicComponent(unref(navLinkTag)(item, __props.linkAs)), mergeProps({
|
|
9724
9692
|
key: 2,
|
|
@@ -9752,8 +9720,7 @@ var NavMenu_default = /* @__PURE__ */ defineComponent({
|
|
|
9752
9720
|
};
|
|
9753
9721
|
}
|
|
9754
9722
|
});
|
|
9755
|
-
|
|
9756
|
-
//#region src/components/pagination/Pagination.vue?vue&type=script&setup=true&lang.ts
|
|
9723
|
+
// src/components/pagination/Pagination.vue?vue&type=script&setup=true&lang.ts
|
|
9757
9724
|
var _hoisted_1$12 = ["aria-label"];
|
|
9758
9725
|
var _hoisted_2$5 = { key: 0 };
|
|
9759
9726
|
/**
|
|
@@ -9772,8 +9739,7 @@ var compactArrowDisabledClass = "inline-flex target-touch shrink-0 items-center
|
|
|
9772
9739
|
* the shared `text-control` type style (also 0.9375rem, the form controls' own font size) rather
|
|
9773
9740
|
* than a new per-component variable for the identical number. */
|
|
9774
9741
|
var compactStatusClass = "text-control text-muted tabular-nums whitespace-nowrap px-3";
|
|
9775
|
-
|
|
9776
|
-
//#region src/components/pagination/Pagination.vue
|
|
9742
|
+
// src/components/pagination/Pagination.vue
|
|
9777
9743
|
var Pagination_default = /* @__PURE__ */ defineComponent({
|
|
9778
9744
|
__name: "Pagination",
|
|
9779
9745
|
props: {
|
|
@@ -10081,16 +10047,14 @@ var Pagination_default = /* @__PURE__ */ defineComponent({
|
|
|
10081
10047
|
};
|
|
10082
10048
|
}
|
|
10083
10049
|
});
|
|
10084
|
-
|
|
10085
|
-
//#region src/components/popover/Popover.vue?vue&type=script&setup=true&lang.ts
|
|
10050
|
+
// src/components/popover/Popover.vue?vue&type=script&setup=true&lang.ts
|
|
10086
10051
|
var _hoisted_1$11 = [
|
|
10087
10052
|
"id",
|
|
10088
10053
|
"data-eldra-overlay-owner",
|
|
10089
10054
|
"data-placement",
|
|
10090
10055
|
"aria-label"
|
|
10091
10056
|
];
|
|
10092
|
-
|
|
10093
|
-
//#region src/components/popover/Popover.vue
|
|
10057
|
+
// src/components/popover/Popover.vue
|
|
10094
10058
|
var Popover_default = /* @__PURE__ */ defineComponent({
|
|
10095
10059
|
inheritAttrs: false,
|
|
10096
10060
|
__name: "Popover",
|
|
@@ -10294,8 +10258,7 @@ var Popover_default = /* @__PURE__ */ defineComponent({
|
|
|
10294
10258
|
};
|
|
10295
10259
|
}
|
|
10296
10260
|
});
|
|
10297
|
-
|
|
10298
|
-
//#region src/utils/valueFade.ts
|
|
10261
|
+
// src/utils/valueFade.ts
|
|
10299
10262
|
/**
|
|
10300
10263
|
* The fade a refreshed value plays when its text changes — `Price`'s amount and compare-at,
|
|
10301
10264
|
* `StockBadge`'s status line. Internal to the package, like `tagRecipe.ts`; `ValueText.vue` is its
|
|
@@ -10348,8 +10311,7 @@ function fadeInChangedValue(el) {
|
|
|
10348
10311
|
easing
|
|
10349
10312
|
});
|
|
10350
10313
|
}
|
|
10351
|
-
|
|
10352
|
-
//#region src/components/internal/ValueText.vue
|
|
10314
|
+
// src/components/internal/ValueText.vue
|
|
10353
10315
|
var ValueText_default = /* @__PURE__ */ defineComponent({
|
|
10354
10316
|
name: "EldraValueText",
|
|
10355
10317
|
__name: "ValueText",
|
|
@@ -10393,13 +10355,11 @@ var ValueText_default = /* @__PURE__ */ defineComponent({
|
|
|
10393
10355
|
};
|
|
10394
10356
|
}
|
|
10395
10357
|
});
|
|
10396
|
-
|
|
10397
|
-
//#region src/components/price/Price.vue?vue&type=script&setup=true&lang.ts
|
|
10358
|
+
// src/components/price/Price.vue?vue&type=script&setup=true&lang.ts
|
|
10398
10359
|
var _hoisted_1$10 = ["lang", "aria-busy"];
|
|
10399
10360
|
var ISO_4217_DEFAULT_FRACTION_DIGITS = 2;
|
|
10400
10361
|
var SECTION$1 = "group-data-[section=primary]/section:text-primary-contrast group-data-[section=accent]/section:text-accent-contrast";
|
|
10401
|
-
|
|
10402
|
-
//#region src/components/price/Price.vue
|
|
10362
|
+
// src/components/price/Price.vue
|
|
10403
10363
|
var Price_default = /* @__PURE__ */ defineComponent({
|
|
10404
10364
|
__name: "Price",
|
|
10405
10365
|
props: {
|
|
@@ -10730,8 +10690,7 @@ var Price_default = /* @__PURE__ */ defineComponent({
|
|
|
10730
10690
|
};
|
|
10731
10691
|
}
|
|
10732
10692
|
});
|
|
10733
|
-
|
|
10734
|
-
//#region src/utils/rating.ts
|
|
10693
|
+
// src/utils/rating.ts
|
|
10735
10694
|
/**
|
|
10736
10695
|
* `Rating`'s own rounding and star-fill logic (spec "Rating" → Properties, `value` row: "Stars
|
|
10737
10696
|
* round to the nearest 0.5; the value shows one decimal (4.0, 4.5)."), pulled out of the component
|
|
@@ -10765,8 +10724,7 @@ function ratingStarStates(value) {
|
|
|
10765
10724
|
return "empty";
|
|
10766
10725
|
});
|
|
10767
10726
|
}
|
|
10768
|
-
|
|
10769
|
-
//#region src/components/rating/RatingStars.vue?vue&type=script&setup=true&lang.ts
|
|
10727
|
+
// src/components/rating/RatingStars.vue?vue&type=script&setup=true&lang.ts
|
|
10770
10728
|
/**
|
|
10771
10729
|
* The five-star row (spec "Rating" → Anatomy, part 1), factored out of `Rating.vue` because the
|
|
10772
10730
|
* markup is rendered from three different branches there (static, no-reviews, linked) and the two
|
|
@@ -10780,8 +10738,7 @@ var FILLED_STAR_PATH = "M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4
|
|
|
10780
10738
|
/** Spec "Rating" → Sizes/States: no explicit stroke weight is given for the empty-star outline, so
|
|
10781
10739
|
* it reuses `Link`'s 1.75 — the closest existing "outline icon" in this package. */
|
|
10782
10740
|
var OUTLINE_STROKE_WIDTH = 1.75;
|
|
10783
|
-
|
|
10784
|
-
//#region src/components/rating/RatingStars.vue
|
|
10741
|
+
// src/components/rating/RatingStars.vue
|
|
10785
10742
|
var RatingStars_default = /* @__PURE__ */ defineComponent({
|
|
10786
10743
|
__name: "RatingStars",
|
|
10787
10744
|
props: {
|
|
@@ -10845,11 +10802,9 @@ var RatingStars_default = /* @__PURE__ */ defineComponent({
|
|
|
10845
10802
|
};
|
|
10846
10803
|
}
|
|
10847
10804
|
});
|
|
10848
|
-
|
|
10849
|
-
//#region src/components/rating/Rating.vue?vue&type=script&setup=true&lang.ts
|
|
10805
|
+
// src/components/rating/Rating.vue?vue&type=script&setup=true&lang.ts
|
|
10850
10806
|
var SECTION = "group-data-[section=primary]/section:text-primary-contrast group-data-[section=accent]/section:text-accent-contrast";
|
|
10851
|
-
|
|
10852
|
-
//#region src/components/rating/Rating.vue
|
|
10807
|
+
// src/components/rating/Rating.vue
|
|
10853
10808
|
var Rating_default = /* @__PURE__ */ defineComponent({
|
|
10854
10809
|
__name: "Rating",
|
|
10855
10810
|
props: {
|
|
@@ -10988,13 +10943,11 @@ var Rating_default = /* @__PURE__ */ defineComponent({
|
|
|
10988
10943
|
};
|
|
10989
10944
|
}
|
|
10990
10945
|
});
|
|
10991
|
-
|
|
10992
|
-
//#region src/components/badge/StockBadge.vue?vue&type=script&setup=true&lang.ts
|
|
10946
|
+
// src/components/badge/StockBadge.vue?vue&type=script&setup=true&lang.ts
|
|
10993
10947
|
var _hoisted_1$9 = ["aria-busy"];
|
|
10994
10948
|
var _hoisted_2$4 = ["d"];
|
|
10995
10949
|
var ICON_STROKE_WIDTH$1 = 2.25;
|
|
10996
|
-
|
|
10997
|
-
//#region src/components/badge/StockBadge.vue
|
|
10950
|
+
// src/components/badge/StockBadge.vue
|
|
10998
10951
|
var StockBadge_default = /* @__PURE__ */ defineComponent({
|
|
10999
10952
|
__name: "StockBadge",
|
|
11000
10953
|
props: {
|
|
@@ -11138,12 +11091,10 @@ var StockBadge_default = /* @__PURE__ */ defineComponent({
|
|
|
11138
11091
|
};
|
|
11139
11092
|
}
|
|
11140
11093
|
});
|
|
11141
|
-
|
|
11142
|
-
//#region src/components/product-card/ProductCard.vue?vue&type=script&setup=true&lang.ts
|
|
11094
|
+
// src/components/product-card/ProductCard.vue?vue&type=script&setup=true&lang.ts
|
|
11143
11095
|
var _hoisted_1$8 = ["aria-label"];
|
|
11144
11096
|
var _hoisted_2$3 = { class: "mt-3 flex flex-1 flex-col gap-1" };
|
|
11145
|
-
|
|
11146
|
-
//#region src/components/product-card/ProductCard.vue
|
|
11097
|
+
// src/components/product-card/ProductCard.vue
|
|
11147
11098
|
var ProductCard_default = /* @__PURE__ */ defineComponent({
|
|
11148
11099
|
__name: "ProductCard",
|
|
11149
11100
|
props: {
|
|
@@ -11564,8 +11515,7 @@ var ProductCard_default = /* @__PURE__ */ defineComponent({
|
|
|
11564
11515
|
};
|
|
11565
11516
|
}
|
|
11566
11517
|
});
|
|
11567
|
-
|
|
11568
|
-
//#region src/components/search-modal/SearchModal.vue?vue&type=script&setup=true&lang.ts
|
|
11518
|
+
// src/components/search-modal/SearchModal.vue?vue&type=script&setup=true&lang.ts
|
|
11569
11519
|
var _hoisted_1$7 = ["aria-label"];
|
|
11570
11520
|
var _hoisted_2$2 = ["action"];
|
|
11571
11521
|
var _hoisted_3$2 = [
|
|
@@ -11584,8 +11534,7 @@ var LOADING_DELAY_MS = 300;
|
|
|
11584
11534
|
var ANNOUNCE_DELAY_MS = 400;
|
|
11585
11535
|
var hintKeyClass = "box-border inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border-strong bg-background px-1 text-search-modal-kbd text-muted";
|
|
11586
11536
|
var hintClass = "inline-flex items-center gap-1.5";
|
|
11587
|
-
|
|
11588
|
-
//#region src/components/search-modal/SearchModal.vue
|
|
11537
|
+
// src/components/search-modal/SearchModal.vue
|
|
11589
11538
|
var SearchModal_default = /* @__PURE__ */ defineComponent({
|
|
11590
11539
|
inheritAttrs: false,
|
|
11591
11540
|
__name: "SearchModal",
|
|
@@ -12159,7 +12108,7 @@ var SearchModal_default = /* @__PURE__ */ defineComponent({
|
|
|
12159
12108
|
* own rootClass comment for the full mechanism): the same author-beats-UA-origin trap left a closed
|
|
12160
12109
|
* `SearchModal` painting its full box.
|
|
12161
12110
|
*/
|
|
12162
|
-
const rootClass = computed(() => part(cx("hidden open:flex max-w-none flex-col overflow-hidden border-0 bg-background p-0 text-text", "eldra-search-modal-position", "eldra-search-modal-width", "eldra-search-modal-max-height", "max-md:h-screen", "rounded-lg border border-border shadow-md", "max-md:rounded-none max-md:border-0 max-md:shadow-none", "backdrop:bg-overlay", "animate-eldra-dialog-in motion-reduce:animate-eldra-dialog-in-reduced"), "root"));
|
|
12111
|
+
const rootClass = computed(() => part(cx("hidden open:flex max-w-none flex-col overflow-hidden border-0 bg-background p-0 text-text", "eldra-search-modal-position", "eldra-search-modal-width", "eldra-search-modal-max-height", "max-md:h-screen", "rounded-lg border border-border shadow-md", "max-md:rounded-none max-md:border-0 max-md:shadow-none", "backdrop:bg-overlay focus:outline-none", "animate-eldra-dialog-in motion-reduce:animate-eldra-dialog-in-reduced"), "root"));
|
|
12163
12112
|
const formClass = computed(() => part("relative flex h-14 shrink-0 items-center border-b border-border", "form"));
|
|
12164
12113
|
/**
|
|
12165
12114
|
* The field (spec "Search modal" → Sizes, Field row): "no border or radius of its own, transparent
|
|
@@ -12371,8 +12320,7 @@ var SearchModal_default = /* @__PURE__ */ defineComponent({
|
|
|
12371
12320
|
};
|
|
12372
12321
|
}
|
|
12373
12322
|
});
|
|
12374
|
-
|
|
12375
|
-
//#region src/components/section/context.ts
|
|
12323
|
+
// src/components/section/context.ts
|
|
12376
12324
|
/**
|
|
12377
12325
|
* Presence marker a `Section` provides for its own subtree: `true`, never any other value — the
|
|
12378
12326
|
* only question anything downstream asks of it is "is there a `Section` ancestor here at all".
|
|
@@ -12395,8 +12343,7 @@ var SearchModal_default = /* @__PURE__ */ defineComponent({
|
|
|
12395
12343
|
* ```
|
|
12396
12344
|
*/
|
|
12397
12345
|
var SECTION_KEY = Symbol("eldra-ui:section");
|
|
12398
|
-
|
|
12399
|
-
//#region src/components/section/Section.vue
|
|
12346
|
+
// src/components/section/Section.vue
|
|
12400
12347
|
var Section_default = /* @__PURE__ */ defineComponent({
|
|
12401
12348
|
__name: "Section",
|
|
12402
12349
|
props: {
|
|
@@ -12485,8 +12432,7 @@ var Section_default = /* @__PURE__ */ defineComponent({
|
|
|
12485
12432
|
};
|
|
12486
12433
|
}
|
|
12487
12434
|
});
|
|
12488
|
-
|
|
12489
|
-
//#region src/components/site-form/localize.ts
|
|
12435
|
+
// src/components/site-form/localize.ts
|
|
12490
12436
|
/** One locale's text: exact tag, same language, first sorted tag, `''`, as the platform's `formLabel`. */
|
|
12491
12437
|
function pickLocalized(map, locale) {
|
|
12492
12438
|
if (map === void 0) return "";
|
|
@@ -12555,8 +12501,7 @@ function localizeSiteForm(raw, locale) {
|
|
|
12555
12501
|
consentText: pickLocalized(raw.consentText, locale).trim()
|
|
12556
12502
|
};
|
|
12557
12503
|
}
|
|
12558
|
-
|
|
12559
|
-
//#region src/components/site-form/turnstile.ts
|
|
12504
|
+
// src/components/site-form/turnstile.ts
|
|
12560
12505
|
var TURNSTILE_SCRIPT_SRC = "https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit";
|
|
12561
12506
|
var scriptPromise = null;
|
|
12562
12507
|
/** Loads Cloudflare's script once per page; a failed load is forgotten so the next form retries. */
|
|
@@ -12637,8 +12582,7 @@ function useTurnstile(siteKey, container) {
|
|
|
12637
12582
|
reset
|
|
12638
12583
|
};
|
|
12639
12584
|
}
|
|
12640
|
-
|
|
12641
|
-
//#region src/components/site-form/validate.ts
|
|
12585
|
+
// src/components/site-form/validate.ts
|
|
12642
12586
|
var CONTROL_CHARACTERS = /[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/g;
|
|
12643
12587
|
var NUMBER = /^[+-]?(?:\d+[.,]?\d*|[.,]\d+)(?:[eE][+-]?\d+)?$/;
|
|
12644
12588
|
var EMAIL = /^[^\s@<>,;"]+@[^\s@<>,;"]+\.[^\s@<>,;"]+$/;
|
|
@@ -12705,8 +12649,7 @@ function validateSiteFormValue(field, value, messages) {
|
|
|
12705
12649
|
}
|
|
12706
12650
|
return null;
|
|
12707
12651
|
}
|
|
12708
|
-
|
|
12709
|
-
//#region src/components/site-form/useSiteForm.ts
|
|
12652
|
+
// src/components/site-form/useSiteForm.ts
|
|
12710
12653
|
function statusOf(error) {
|
|
12711
12654
|
if (typeof error !== "object" || error === null || !("status" in error)) return void 0;
|
|
12712
12655
|
const status = error.status;
|
|
@@ -12893,8 +12836,7 @@ function useSiteForm(options) {
|
|
|
12893
12836
|
reset
|
|
12894
12837
|
};
|
|
12895
12838
|
}
|
|
12896
|
-
|
|
12897
|
-
//#region src/components/site-form/SiteForm.vue?vue&type=script&setup=true&lang.ts
|
|
12839
|
+
// src/components/site-form/SiteForm.vue?vue&type=script&setup=true&lang.ts
|
|
12898
12840
|
var _hoisted_1$6 = {
|
|
12899
12841
|
key: 0,
|
|
12900
12842
|
class: "sr-only",
|
|
@@ -12908,8 +12850,7 @@ var _hoisted_4$1 = {
|
|
|
12908
12850
|
class: "grid w-full gap-2"
|
|
12909
12851
|
};
|
|
12910
12852
|
var _hoisted_5$1 = ["id"];
|
|
12911
|
-
|
|
12912
|
-
//#region src/components/site-form/SiteForm.vue
|
|
12853
|
+
// src/components/site-form/SiteForm.vue
|
|
12913
12854
|
var SiteForm_default = /* @__PURE__ */ defineComponent({
|
|
12914
12855
|
__name: "SiteForm",
|
|
12915
12856
|
props: {
|
|
@@ -13285,12 +13226,10 @@ var SiteForm_default = /* @__PURE__ */ defineComponent({
|
|
|
13285
13226
|
};
|
|
13286
13227
|
}
|
|
13287
13228
|
});
|
|
13288
|
-
|
|
13289
|
-
//#region src/components/tabs/context.ts
|
|
13229
|
+
// src/components/tabs/context.ts
|
|
13290
13230
|
/** The key `Tabs` provides its `TabsContext` on. */
|
|
13291
13231
|
var TABS_KEY = Symbol("eldra-ui:tabs");
|
|
13292
|
-
|
|
13293
|
-
//#region src/components/tabs/Tab.vue?vue&type=script&setup=true&lang.ts
|
|
13232
|
+
// src/components/tabs/Tab.vue?vue&type=script&setup=true&lang.ts
|
|
13294
13233
|
var _hoisted_1$5 = [
|
|
13295
13234
|
"id",
|
|
13296
13235
|
"aria-selected",
|
|
@@ -13298,8 +13237,7 @@ var _hoisted_1$5 = [
|
|
|
13298
13237
|
"tabindex"
|
|
13299
13238
|
];
|
|
13300
13239
|
var BASE = "relative inline-flex items-center justify-center whitespace-nowrap cursor-pointer target-touch px-4 text-variant-pill";
|
|
13301
|
-
|
|
13302
|
-
//#region src/components/tabs/Tab.vue
|
|
13240
|
+
// src/components/tabs/Tab.vue
|
|
13303
13241
|
var Tab_default = /* @__PURE__ */ defineComponent({
|
|
13304
13242
|
__name: "Tab",
|
|
13305
13243
|
props: {
|
|
@@ -13406,8 +13344,7 @@ var Tab_default = /* @__PURE__ */ defineComponent({
|
|
|
13406
13344
|
};
|
|
13407
13345
|
}
|
|
13408
13346
|
});
|
|
13409
|
-
|
|
13410
|
-
//#region src/components/tabs/TabPanel.vue?vue&type=script&setup=true&lang.ts
|
|
13347
|
+
// src/components/tabs/TabPanel.vue?vue&type=script&setup=true&lang.ts
|
|
13411
13348
|
var _hoisted_1$4 = [
|
|
13412
13349
|
"id",
|
|
13413
13350
|
"aria-labelledby",
|
|
@@ -13415,8 +13352,7 @@ var _hoisted_1$4 = [
|
|
|
13415
13352
|
"tabindex"
|
|
13416
13353
|
];
|
|
13417
13354
|
var FOCUSABLE_SELECTOR = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"]), [contenteditable=\"true\"], audio[controls], video[controls]";
|
|
13418
|
-
|
|
13419
|
-
//#region src/components/tabs/TabPanel.vue
|
|
13355
|
+
// src/components/tabs/TabPanel.vue
|
|
13420
13356
|
var TabPanel_default = /* @__PURE__ */ defineComponent({
|
|
13421
13357
|
__name: "TabPanel",
|
|
13422
13358
|
props: {
|
|
@@ -13469,8 +13405,7 @@ var TabPanel_default = /* @__PURE__ */ defineComponent({
|
|
|
13469
13405
|
};
|
|
13470
13406
|
}
|
|
13471
13407
|
});
|
|
13472
|
-
|
|
13473
|
-
//#region src/components/tabler-icon/tablerIconName.ts
|
|
13408
|
+
// src/components/tabler-icon/tablerIconName.ts
|
|
13474
13409
|
var STEGA_CHARACTERS = /[]/g;
|
|
13475
13410
|
var EXPORT_NAME = /^Icon[A-Z0-9][A-Za-z0-9]*$/;
|
|
13476
13411
|
var KEBAB_NAME = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
@@ -13481,8 +13416,7 @@ function tablerIconName(value) {
|
|
|
13481
13416
|
if (!KEBAB_NAME.test(name)) return null;
|
|
13482
13417
|
return `Icon${name.split("-").map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join("")}`;
|
|
13483
13418
|
}
|
|
13484
|
-
|
|
13485
|
-
//#region src/components/tabler-icon/registry.ts
|
|
13419
|
+
// src/components/tabler-icon/registry.ts
|
|
13486
13420
|
var bodies = /* @__PURE__ */ new Map();
|
|
13487
13421
|
var warned = /* @__PURE__ */ new Set();
|
|
13488
13422
|
function warnTablerIconOnce(key, message) {
|
|
@@ -13499,7 +13433,7 @@ async function loadTablerIcon(name) {
|
|
|
13499
13433
|
const cached = bodies.get(name);
|
|
13500
13434
|
if (cached !== void 0) return cached;
|
|
13501
13435
|
try {
|
|
13502
|
-
const { tablerIconBody } = await import("./tablerIconData-
|
|
13436
|
+
const { tablerIconBody } = await import("./tablerIconData-J6TGCmkT.js");
|
|
13503
13437
|
const body = await tablerIconBody(name);
|
|
13504
13438
|
bodies.set(name, body);
|
|
13505
13439
|
if (body === null) warnTablerIconOnce(name, `no Tabler icon is named "${name}"; it renders empty.`);
|
|
@@ -13518,8 +13452,7 @@ async function preloadTablerIcons(values) {
|
|
|
13518
13452
|
}
|
|
13519
13453
|
await Promise.all([...names].map(loadTablerIcon));
|
|
13520
13454
|
}
|
|
13521
|
-
|
|
13522
|
-
//#region src/components/tabler-icon/TablerIcon.vue
|
|
13455
|
+
// src/components/tabler-icon/TablerIcon.vue
|
|
13523
13456
|
var TablerIcon_default = /* @__PURE__ */ defineComponent({
|
|
13524
13457
|
__name: "TablerIcon",
|
|
13525
13458
|
props: {
|
|
@@ -13594,12 +13527,10 @@ var TablerIcon_default = /* @__PURE__ */ defineComponent({
|
|
|
13594
13527
|
};
|
|
13595
13528
|
}
|
|
13596
13529
|
});
|
|
13597
|
-
|
|
13598
|
-
//#region src/components/tabs/Tabs.vue?vue&type=script&setup=true&lang.ts
|
|
13530
|
+
// src/components/tabs/Tabs.vue?vue&type=script&setup=true&lang.ts
|
|
13599
13531
|
var _hoisted_1$3 = ["aria-label"];
|
|
13600
13532
|
var PILLS_RING_RESERVE = "py-[calc(var(--eldra-focus-offset)_+_var(--eldra-focus-width))] -my-[calc(var(--eldra-focus-offset)_+_var(--eldra-focus-width))] px-[calc(var(--eldra-focus-offset)_+_var(--eldra-focus-width))] -mx-[calc(var(--eldra-focus-offset)_+_var(--eldra-focus-width))] scroll-px-[calc(var(--eldra-focus-offset)_+_var(--eldra-focus-width))]";
|
|
13601
|
-
|
|
13602
|
-
//#region src/components/tabs/Tabs.vue
|
|
13533
|
+
// src/components/tabs/Tabs.vue
|
|
13603
13534
|
var Tabs_default = /* @__PURE__ */ defineComponent({
|
|
13604
13535
|
__name: "Tabs",
|
|
13605
13536
|
props: {
|
|
@@ -13730,16 +13661,14 @@ var Tabs_default = /* @__PURE__ */ defineComponent({
|
|
|
13730
13661
|
};
|
|
13731
13662
|
}
|
|
13732
13663
|
});
|
|
13733
|
-
|
|
13734
|
-
//#region src/components/toast/Toast.vue?vue&type=script&setup=true&lang.ts
|
|
13664
|
+
// src/components/toast/Toast.vue?vue&type=script&setup=true&lang.ts
|
|
13735
13665
|
var _hoisted_1$2 = ["role"];
|
|
13736
13666
|
var _hoisted_2 = ["d"];
|
|
13737
13667
|
var _hoisted_3 = { class: "min-w-0 flex-1" };
|
|
13738
13668
|
var _hoisted_4 = ["href"];
|
|
13739
13669
|
var _hoisted_5 = ["aria-label"];
|
|
13740
13670
|
var ICON_STROKE_WIDTH = 1.75;
|
|
13741
|
-
|
|
13742
|
-
//#region src/components/toast/Toast.vue
|
|
13671
|
+
// src/components/toast/Toast.vue
|
|
13743
13672
|
var Toast_default = /* @__PURE__ */ defineComponent({
|
|
13744
13673
|
__name: "Toast",
|
|
13745
13674
|
props: {
|
|
@@ -13895,8 +13824,7 @@ var Toast_default = /* @__PURE__ */ defineComponent({
|
|
|
13895
13824
|
};
|
|
13896
13825
|
}
|
|
13897
13826
|
});
|
|
13898
|
-
|
|
13899
|
-
//#region src/composables/useToast.ts
|
|
13827
|
+
// src/composables/useToast.ts
|
|
13900
13828
|
/**
|
|
13901
13829
|
* Spec "Toast" -> Variants, the "Timing" column: success 6s, warning 10s, danger "stays until
|
|
13902
13830
|
* closed" — folded into `0` here so `duration <= 0` means "no timer" everywhere this is read,
|
|
@@ -13984,11 +13912,9 @@ function useToast() {
|
|
|
13984
13912
|
toasts
|
|
13985
13913
|
};
|
|
13986
13914
|
}
|
|
13987
|
-
|
|
13988
|
-
//#region src/components/toast/Toaster.vue?vue&type=script&setup=true&lang.ts
|
|
13915
|
+
// src/components/toast/Toaster.vue?vue&type=script&setup=true&lang.ts
|
|
13989
13916
|
var _hoisted_1$1 = ["aria-label"];
|
|
13990
|
-
|
|
13991
|
-
//#region src/components/toast/Toaster.vue
|
|
13917
|
+
// src/components/toast/Toaster.vue
|
|
13992
13918
|
var Toaster_default = /* @__PURE__ */ defineComponent({
|
|
13993
13919
|
__name: "Toaster",
|
|
13994
13920
|
props: {
|
|
@@ -14169,8 +14095,7 @@ var Toaster_default = /* @__PURE__ */ defineComponent({
|
|
|
14169
14095
|
};
|
|
14170
14096
|
}
|
|
14171
14097
|
});
|
|
14172
|
-
|
|
14173
|
-
//#region src/components/tooltip/supportsFocusVisible.ts
|
|
14098
|
+
// src/components/tooltip/supportsFocusVisible.ts
|
|
14174
14099
|
/**
|
|
14175
14100
|
* Whether this runtime tells a keyboard focus apart from a mouse/touch one through
|
|
14176
14101
|
* `:focus-visible` — the browser's own answer to `Tooltip`'s "focus holds it open" rule (spec →
|
|
@@ -14190,11 +14115,9 @@ var Toaster_default = /* @__PURE__ */ defineComponent({
|
|
|
14190
14115
|
function supportsFocusVisible() {
|
|
14191
14116
|
return typeof CSS !== "undefined" && typeof CSS.supports === "function" && CSS.supports("selector(:focus-visible)");
|
|
14192
14117
|
}
|
|
14193
|
-
|
|
14194
|
-
//#region src/components/tooltip/Tooltip.vue?vue&type=script&setup=true&lang.ts
|
|
14118
|
+
// src/components/tooltip/Tooltip.vue?vue&type=script&setup=true&lang.ts
|
|
14195
14119
|
var _hoisted_1 = ["id", "data-placement"];
|
|
14196
|
-
|
|
14197
|
-
//#region src/components/tooltip/Tooltip.vue
|
|
14120
|
+
// src/components/tooltip/Tooltip.vue
|
|
14198
14121
|
var Tooltip_default = /* @__PURE__ */ defineComponent({
|
|
14199
14122
|
__name: "Tooltip",
|
|
14200
14123
|
props: {
|
|
@@ -14462,8 +14385,7 @@ var Tooltip_default = /* @__PURE__ */ defineComponent({
|
|
|
14462
14385
|
};
|
|
14463
14386
|
}
|
|
14464
14387
|
});
|
|
14465
|
-
|
|
14466
|
-
//#region src/utils/color.ts
|
|
14388
|
+
// src/utils/color.ts
|
|
14467
14389
|
/**
|
|
14468
14390
|
* A CSS `color-mix()` of `color` shifted `percent` toward `toward`, in the
|
|
14469
14391
|
* perceptual oklab space.
|
|
@@ -14477,5 +14399,4 @@ var Tooltip_default = /* @__PURE__ */ defineComponent({
|
|
|
14477
14399
|
function mixToward(color, toward, percent) {
|
|
14478
14400
|
return `color-mix(in oklab, ${color}, ${toward} ${percent}%)`;
|
|
14479
14401
|
}
|
|
14480
|
-
//#endregion
|
|
14481
14402
|
export { ACCORDION_KEY, Accordion_default as Accordion, AccordionItem_default as AccordionItem, Avatar_default as Avatar, AvatarGroup_default as AvatarGroup, Badge_default as Badge, Breadcrumb_default as Breadcrumb, Button_default as Button, ButtonGroup_default as ButtonGroup, CHIP_GROUP_KEY, CURRENCY_KEY, Carousel_default as Carousel, Checkbox_default as Checkbox, CheckboxGroup_default as CheckboxGroup, Chip_default as Chip, ChipGroup_default as ChipGroup, Container_default as Container, ContentCard_default as ContentCard, CurrencyInput_default as CurrencyInput, DEFAULT_UI_LOCALE, Dialog_default as Dialog, Drawer_default as Drawer, EditorPlaceholder_default as EditorPlaceholder, EmptyState_default as EmptyState, FIELD_KEY, FILTER_SEARCH_FROM, FILTER_VALUES_SHOWN, FORM_LAYOUT_KEY, FORM_SUBMITTING_KEY, FeatureCard_default as FeatureCard, FieldWrapper_default as FieldWrapper, FilterPanel_default as FilterPanel, FormLayout_default as FormLayout, Icon_default as Icon, Image_default as Image, Input_default as Input, LOCALE_KEY, Lightbox_default as Lightbox, Link_default as Link, LoadMore_default as LoadMore, LogoItem_default as LogoItem, MESSAGES_KEY, MultiSelect_default as MultiSelect, NavMenu_default as NavMenu, Pagination_default as Pagination, Popover_default as Popover, Price_default as Price, ProductCard_default as ProductCard, QuantityStepper_default as QuantityStepper, RadioGroup_default as RadioGroup, RangeSlider_default as RangeSlider, Rating_default as Rating, SECTION_KEY, SWATCH_INK_LUMINANCE_THRESHOLD, SearchBar_default as SearchBar, SearchModal_default as SearchModal, Section_default as Section, Select_default as Select, SiteForm_default as SiteForm, Skeleton_default as Skeleton, StockBadge_default as StockBadge, Switch_default as Switch, TABS_KEY, TOAST_HOST_KEY, Tab_default as Tab, TabPanel_default as TabPanel, TablerIcon_default as TablerIcon, Tabs_default as Tabs, Textarea_default as Textarea, Toast_default as Toast, Toaster_default as Toaster, Tooltip_default as Tooltip, UnitInput_default as UnitInput, VariantPicker_default as VariantPicker, VisuallyHidden_default as VisuallyHidden, appliedFilters, applyMask, carouselPerViewStyle, clampRangeThumb, clearedSelection, closeDialog, createNumberFormat, currencyFractionDigits, currencySymbol, currentDialog, cx, defaultCharacterMeaning, enUS as defaultMessages, enUS, defaultUnitFormat, dropOmittedFacets, facetCanShowAll, facetHasHiddenValues, facetIsRenderable, facetIsSearchable, facetRows, facetSelectedCount, facetStartsOpen, facetSummaryLabels, facetValues, filterNumericBeforeInput, foldForSearch, formatCurrency, formatDate, formatNumber, formatUnit, fractionDigits, frameAspectRatio, hasSelection, histogramBarInRange, initialsFromName, isOpenDialog, isRangeAtLimits, isRangeSelection, isValueDisabled, isValueSelected, joinIds, localeSeparators, matchesSearch, mixToward, nearestRangeThumb, normalizeRangeValue, normalizeText, openDialog, parseLocaleNumber, partClass, prefersReducedMotion, preloadTablerIcons, provideEldraUiCurrency, provideEldraUiLocale, provideEldraUiMessages, rangeKeyTransition, rangeLimits, rangeOf, rangePositionToValue, rangeStepDigits, rangeThumbLimits, rangeValueToPercent, ratingStarStates, removeValue, renderableFacets, resolveCarouselPerView, roundRatingToHalf, selectedValues, setRange, sizeSystemGroups, snapToRangeStep, stripMask, swatchInk, swatchLuminance, tablerIconName, toggleValue, useCarousel, useControllableModel, useDialog, useEldraUiCurrency, useEldraUiLocale, useFloating, useHeadingTag, useListbox, useMessages, useOverlay, usePopover, useSiteForm, useSlotPresence, useToast, useUiId, visibleFacetValues, zoomSizes };
|