@duxweb/dvha-pro 0.0.7 → 1.0.14
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/dist/cjs/component.cjs +1 -1
- package/dist/cjs/components/card/card.cjs +1 -1
- package/dist/cjs/components/card/store.cjs +1 -0
- package/dist/cjs/components/chart/echart.cjs +1 -1
- package/dist/cjs/components/crop/imageCrop.cjs +1 -0
- package/dist/cjs/components/crop/imageCropModal.cjs +1 -0
- package/dist/cjs/components/dashboard/helloBig.cjs +1 -1
- package/dist/cjs/components/data/dynamicData.cjs +1 -0
- package/dist/cjs/components/data/dynamicSelect.cjs +1 -0
- package/dist/cjs/components/data/selectModal.cjs +1 -0
- package/dist/cjs/components/dialog/dialog.cjs +1 -1
- package/dist/cjs/components/drawer/drawer.cjs +1 -1
- package/dist/cjs/components/editor/aiEditor.cjs +1 -0
- package/dist/cjs/components/form/modalForm.cjs +1 -1
- package/dist/cjs/components/form/pageForm.cjs +1 -1
- package/dist/cjs/components/form/settingForm.cjs +1 -1
- package/dist/cjs/components/layout/list.cjs +1 -1
- package/dist/cjs/components/layout/table.cjs +1 -1
- package/dist/cjs/components/level/level.cjs +1 -0
- package/dist/cjs/components/media/media.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/modal/modalPage.cjs +1 -1
- package/dist/cjs/components/panel/setting.cjs +1 -1
- package/dist/cjs/components/stats/number.cjs +1 -0
- package/dist/cjs/components/stats/realTime.cjs +1 -0
- package/dist/cjs/components/status/blockEmpty.cjs +1 -1
- package/dist/cjs/components/upload/file.cjs +1 -0
- package/dist/cjs/components/upload/image.cjs +1 -0
- package/dist/cjs/components/upload/manage/item.cjs +1 -0
- package/dist/cjs/components/upload/manager.cjs +1 -0
- package/dist/cjs/components/widget/avatar.cjs +1 -0
- package/dist/cjs/components/widget/connect.cjs +1 -1
- package/dist/cjs/components/widget/image.cjs +1 -0
- package/dist/cjs/components/widget/placeholder.cjs +1 -0
- package/dist/cjs/config/uno.cjs +1 -1
- package/dist/cjs/config/validate.cjs +1 -1
- package/dist/cjs/hooks/action.cjs +1 -1
- package/dist/cjs/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/download.cjs +1 -0
- package/dist/cjs/hooks/drawer.cjs +1 -1
- package/dist/cjs/hooks/echart.cjs +1 -1
- package/dist/cjs/hooks/image.cjs +1 -0
- package/dist/cjs/hooks/level.cjs +1 -0
- package/dist/cjs/hooks/modal.cjs +1 -1
- package/dist/cjs/hooks/table/copy.cjs +1 -1
- package/dist/cjs/hooks/table/image.cjs +1 -1
- package/dist/cjs/hooks/table/input.cjs +1 -1
- package/dist/cjs/hooks/table/media.cjs +1 -1
- package/dist/cjs/hooks/table.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/langs/en-US.json.cjs +1 -1
- package/dist/cjs/langs/zh-CN.json.cjs +1 -1
- package/dist/cjs/main.cjs +1 -1
- package/dist/cjs/pages/authLayout.cjs +1 -1
- package/dist/cjs/pages/layout/global.cjs +1 -1
- package/dist/cjs/pages/layout/page.cjs +1 -1
- package/dist/cjs/pages/login.cjs +1 -1
- package/dist/cjs/pages/menu/avatar.cjs +1 -1
- package/dist/cjs/pages/menu/button.cjs +1 -1
- package/dist/cjs/pages/menu/cmd.cjs +1 -1
- package/dist/cjs/pages/menu/main.cjs +1 -1
- package/dist/cjs/pages/menu/mobile.cjs +1 -1
- package/dist/cjs/pages/page.cjs +1 -1
- package/dist/cjs/pages/page404.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/static/images/icon/audio.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/excel.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/file.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/folder.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/pdf.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/ppt.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/video.svg.cjs +1 -0
- package/dist/cjs/static/images/icon/word.svg.cjs +1 -0
- package/dist/cjs/stores/ui.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +108 -12
- package/dist/esm/component.js +64 -47
- package/dist/esm/components/card/card.js +22 -21
- package/dist/esm/components/card/store.js +64 -0
- package/dist/esm/components/chart/echart.js +29 -16
- package/dist/esm/components/crop/imageCrop.js +105 -0
- package/dist/esm/components/crop/imageCropModal.js +118 -0
- package/dist/esm/components/dashboard/helloBig.js +3 -2
- package/dist/esm/components/data/dynamicData.js +145 -0
- package/dist/esm/components/data/dynamicSelect.js +109 -0
- package/dist/esm/components/data/selectModal.js +135 -0
- package/dist/esm/components/dialog/dialog.js +50 -38
- package/dist/esm/components/drawer/drawer.js +14 -12
- package/dist/esm/components/editor/aiEditor.js +127 -0
- package/dist/esm/components/form/modalForm.js +66 -40
- package/dist/esm/components/form/pageForm.js +31 -21
- package/dist/esm/components/form/settingForm.js +31 -21
- package/dist/esm/components/layout/list.js +67 -57
- package/dist/esm/components/layout/table.js +59 -49
- package/dist/esm/components/level/level.js +103 -0
- package/dist/esm/components/media/media.js +18 -16
- package/dist/esm/components/modal/modal.js +27 -21
- package/dist/esm/components/modal/modalPage.js +7 -7
- package/dist/esm/components/panel/setting.js +9 -6
- package/dist/esm/components/stats/number.js +49 -0
- package/dist/esm/components/stats/realTime.js +99 -0
- package/dist/esm/components/status/blockEmpty.js +136 -57
- package/dist/esm/components/upload/file.js +258 -0
- package/dist/esm/components/upload/image.js +189 -0
- package/dist/esm/components/upload/manage/item.js +178 -0
- package/dist/esm/components/upload/manager.js +378 -0
- package/dist/esm/components/widget/avatar.js +59 -0
- package/dist/esm/components/widget/connect.js +6 -4
- package/dist/esm/components/widget/image.js +67 -0
- package/dist/esm/components/widget/placeholder.js +83 -0
- package/dist/esm/config/uno.js +6 -6
- package/dist/esm/config/validate.js +2 -2
- package/dist/esm/hooks/action.js +34 -34
- package/dist/esm/hooks/dialog.js +13 -3
- package/dist/esm/hooks/download.js +100 -0
- package/dist/esm/hooks/drawer.js +13 -3
- package/dist/esm/hooks/echart.js +292 -246
- package/dist/esm/hooks/image.js +23 -0
- package/dist/esm/hooks/level.js +75 -0
- package/dist/esm/hooks/modal.js +14 -4
- package/dist/esm/hooks/table/copy.js +14 -11
- package/dist/esm/hooks/table/image.js +55 -17
- package/dist/esm/hooks/table/input.js +35 -33
- package/dist/esm/hooks/table/media.js +17 -7
- package/dist/esm/hooks/table.js +41 -25
- package/dist/esm/index.js +198 -160
- package/dist/esm/langs/en-US.json.js +6 -4
- package/dist/esm/langs/zh-CN.json.js +5 -3
- package/dist/esm/main.js +8 -6
- package/dist/esm/pages/authLayout.js +24 -18
- package/dist/esm/pages/layout/global.js +29 -23
- package/dist/esm/pages/layout/page.js +26 -16
- package/dist/esm/pages/login.js +33 -23
- package/dist/esm/pages/menu/avatar.js +122 -93
- package/dist/esm/pages/menu/button.js +23 -13
- package/dist/esm/pages/menu/cmd.js +41 -31
- package/dist/esm/pages/menu/main.js +38 -28
- package/dist/esm/pages/menu/mobile.js +20 -10
- package/dist/esm/pages/page.js +21 -14
- package/dist/esm/pages/page404.js +15 -5
- package/dist/esm/pages/pageStatus.js +22 -12
- package/dist/esm/static/images/icon/audio.svg.js +4 -0
- package/dist/esm/static/images/icon/excel.svg.js +4 -0
- package/dist/esm/static/images/icon/file.svg.js +4 -0
- package/dist/esm/static/images/icon/folder.svg.js +4 -0
- package/dist/esm/static/images/icon/pdf.svg.js +4 -0
- package/dist/esm/static/images/icon/ppt.svg.js +4 -0
- package/dist/esm/static/images/icon/video.svg.js +4 -0
- package/dist/esm/static/images/icon/word.svg.js +4 -0
- package/dist/esm/stores/ui.js +10 -10
- package/dist/esm/theme/uno.css.js +108 -12
- package/dist/types/components/card/index.d.ts +1 -0
- package/dist/types/components/card/store.d.ts +16 -0
- package/dist/types/components/chart/echart.d.ts +2 -2
- package/dist/types/components/crop/imageCrop.d.ts +40 -0
- package/dist/types/components/crop/imageCropModal.d.ts +7 -0
- package/dist/types/components/crop/index.d.ts +2 -0
- package/dist/types/components/data/dynamicData.d.ts +56 -0
- package/dist/types/components/data/dynamicSelect.d.ts +49 -0
- package/dist/types/components/data/index.d.ts +3 -0
- package/dist/types/components/data/selectModal.d.ts +61 -0
- package/dist/types/components/dialog/dialog.d.ts +2 -0
- package/dist/types/components/editor/aiEditor.d.ts +26 -0
- package/dist/types/components/editor/index.d.ts +1 -0
- package/dist/types/components/index.d.ts +7 -0
- package/dist/types/components/level/index.d.ts +1 -0
- package/dist/types/components/level/level.d.ts +60 -0
- package/dist/types/components/modal/index.d.ts +2 -2
- package/dist/types/components/modal/modal.d.ts +1 -4
- package/dist/types/components/stats/index.d.ts +2 -0
- package/dist/types/components/stats/number.d.ts +50 -0
- package/dist/types/components/stats/realTime.d.ts +56 -0
- package/dist/types/components/upload/file.d.ts +9 -0
- package/dist/types/components/upload/image.d.ts +99 -0
- package/dist/types/components/upload/index.d.ts +4 -0
- package/dist/types/components/upload/manage/item.d.ts +22 -0
- package/dist/types/components/upload/manager.d.ts +37 -0
- package/dist/types/components/widget/avatar.d.ts +159 -0
- package/dist/types/components/widget/image.d.ts +257 -0
- package/dist/types/components/widget/index.d.ts +2 -0
- package/dist/types/components/widget/placeholder.d.ts +22 -0
- package/dist/types/hooks/dialog.d.ts +1 -0
- package/dist/types/hooks/download.d.ts +31 -0
- package/dist/types/hooks/echart.d.ts +14 -0
- package/dist/types/hooks/image.d.ts +3 -0
- package/dist/types/hooks/index.d.ts +3 -0
- package/dist/types/hooks/level.d.ts +19 -0
- package/dist/types/main.d.ts +12 -0
- package/dist/types/static/images/icon/index.d.ts +8 -0
- package/package.json +9 -3
- package/dist/cjs/_virtual/_commonjsHelpers.cjs +0 -1
- package/dist/cjs/_virtual/browser.cjs +0 -1
- package/dist/cjs/_virtual/browser2.cjs +0 -1
- package/dist/cjs/_virtual/sourcemap-codec.umd.cjs +0 -1
- package/dist/cjs/_virtual/sourcemap-codec.umd2.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json/tabler/icons.json.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.cjs +0 -391
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/en.json.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.cjs +0 -10
- package/dist/cjs/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.cjs +0 -1
- package/dist/cjs/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.cjs +0 -1
- package/dist/cjs/static/images/placeholder.png.cjs +0 -1
- package/dist/esm/_virtual/_commonjsHelpers.js +0 -6
- package/dist/esm/_virtual/browser.js +0 -7
- package/dist/esm/_virtual/browser2.js +0 -4
- package/dist/esm/_virtual/sourcemap-codec.umd.js +0 -5
- package/dist/esm/_virtual/sourcemap-codec.umd2.js +0 -4
- package/dist/esm/node_modules/.pnpm/@iconify-json_tabler@1.2.19/node_modules/@iconify-json/tabler/icons.json.js +0 -17
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.js +0 -14
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.js +0 -25
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.js +0 -11
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.js +0 -9
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -23
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -17
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/custom.js +0 -40
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/loader.js +0 -46
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/modern.js +0 -55
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/loader/utils.js +0 -38
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.js +0 -69
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.js +0 -29
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +0 -14
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.js +0 -27
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/trim.js +0 -6
- package/dist/esm/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/url.js +0 -6
- package/dist/esm/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +0 -255
- package/dist/esm/node_modules/.pnpm/@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.js +0 -88
- package/dist/esm/node_modules/.pnpm/@unocss_extractor-arbitrary-variants@66.2.3/node_modules/@unocss/extractor-arbitrary-variants/dist/index.js +0 -51
- package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/browser.js +0 -17
- package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/core.js +0 -151
- package/dist/esm/node_modules/.pnpm/@unocss_preset-icons@66.2.3/node_modules/@unocss/preset-icons/dist/shared/preset-icons.DE2iazBM.js +0 -8
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/colors.js +0 -322
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/index.js +0 -547
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/postprocess.js +0 -32
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BgkAsChl.js +0 -2307
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.BwwuP5Yw.js +0 -627
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CYAfjDEV.js +0 -7
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.CgvxUQFi.js +0 -588
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/shared/preset-wind4.dDC8WtZ5.js +0 -51
- package/dist/esm/node_modules/.pnpm/@unocss_preset-wind4@66.2.3/node_modules/@unocss/preset-wind4/dist/theme.js +0 -553
- package/dist/esm/node_modules/.pnpm/@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.js +0 -632
- package/dist/esm/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/en.json.js +0 -9
- package/dist/esm/node_modules/.pnpm/@vee-validate_i18n@4.15.1/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.js +0 -9
- package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/browser.js +0 -146
- package/dist/esm/node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js +0 -97
- package/dist/esm/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.js +0 -56
- package/dist/esm/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js +0 -608
- package/dist/esm/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js +0 -85
- package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/index.js +0 -23
- package/dist/esm/node_modules/.pnpm/ofetch@1.4.1/node_modules/ofetch/dist/shared/ofetch.03887fc3.js +0 -219
- package/dist/esm/node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.js +0 -153
- package/dist/esm/static/images/placeholder.png.js +0 -4
|
@@ -1,2307 +0,0 @@
|
|
|
1
|
-
import { B as b, g as f, b as r, s as d, H as s, G as l, p as v, k as u, l as p, q as $, I as E, D as Y, d as x, E as $e, c as B, J as Me, r as qe, L as De, C as Be, x as xe, i as oe, w as we, S as je, m as _e, O as Ge, A as Ie, N as Ne, e as He } from "./preset-wind4.BwwuP5Yw.js";
|
|
2
|
-
import { symbols as Ke, notNull as Je } from "../../../../../../@unocss_core@66.2.3/node_modules/@unocss/core/dist/index.js";
|
|
3
|
-
import { a as Ze, c as Xe } from "./preset-wind4.dDC8WtZ5.js";
|
|
4
|
-
import { getStringComponent as Ye } from "../../../../../../@unocss_rule-utils@66.2.3/node_modules/@unocss/rule-utils/dist/index.js";
|
|
5
|
-
const re = {
|
|
6
|
-
mid: "middle",
|
|
7
|
-
base: "baseline",
|
|
8
|
-
btm: "bottom",
|
|
9
|
-
baseline: "baseline",
|
|
10
|
-
top: "top",
|
|
11
|
-
start: "top",
|
|
12
|
-
middle: "middle",
|
|
13
|
-
bottom: "bottom",
|
|
14
|
-
end: "bottom",
|
|
15
|
-
"text-top": "text-top",
|
|
16
|
-
"text-bottom": "text-bottom",
|
|
17
|
-
sub: "sub",
|
|
18
|
-
super: "super",
|
|
19
|
-
...Object.fromEntries(f.map((e) => [e, e]))
|
|
20
|
-
}, Qe = [
|
|
21
|
-
[
|
|
22
|
-
/^(?:vertical|align|v)-(.+)$/,
|
|
23
|
-
([, e]) => ({ "vertical-align": re[e] ?? r.bracket.cssvar.numberWithUnit(e) }),
|
|
24
|
-
{
|
|
25
|
-
autocomplete: [
|
|
26
|
-
`(vertical|align|v)-(${Object.keys(re).join("|")})`,
|
|
27
|
-
"(vertical|align|v)-<percentage>"
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
], ae = ["center", "left", "right", "justify", "start", "end"], et = [
|
|
32
|
-
...ae.map((e) => [`text-${e}`, { "text-align": e }]),
|
|
33
|
-
...[
|
|
34
|
-
...f,
|
|
35
|
-
...ae
|
|
36
|
-
].map((e) => [`text-align-${e}`, { "text-align": e }])
|
|
37
|
-
], tt = [
|
|
38
|
-
[/^(?:animate-)?keyframes-(.+)$/, ([, e], { theme: t }) => {
|
|
39
|
-
var o, a;
|
|
40
|
-
const n = (a = (o = t.animation) == null ? void 0 : o.keyframes) == null ? void 0 : a[e];
|
|
41
|
-
if (n)
|
|
42
|
-
return [
|
|
43
|
-
`@keyframes ${e}${n}`,
|
|
44
|
-
{ animation: e }
|
|
45
|
-
];
|
|
46
|
-
}, { autocomplete: ["animate-keyframes-$animation.keyframes", "keyframes-$animation.keyframes"] }],
|
|
47
|
-
[/^animate-(.+)$/, ([, e], { theme: t }) => {
|
|
48
|
-
var o, a, i, c, m, g, z, T, L, ne;
|
|
49
|
-
const n = (a = (o = t.animation) == null ? void 0 : o.keyframes) == null ? void 0 : a[e];
|
|
50
|
-
if (n) {
|
|
51
|
-
const Te = ((c = (i = t.animation) == null ? void 0 : i.durations) == null ? void 0 : c[e]) ?? "1s", Le = ((g = (m = t.animation) == null ? void 0 : m.timingFns) == null ? void 0 : g[e]) ?? "linear", Pe = ((T = (z = t.animation) == null ? void 0 : z.counts) == null ? void 0 : T[e]) ?? 1, Fe = (ne = (L = t.animation) == null ? void 0 : L.properties) == null ? void 0 : ne[e];
|
|
52
|
-
return [
|
|
53
|
-
`@keyframes ${e}${n}`,
|
|
54
|
-
{
|
|
55
|
-
animation: `${e} ${Te} ${Le} ${Pe}`,
|
|
56
|
-
...Fe
|
|
57
|
-
}
|
|
58
|
-
];
|
|
59
|
-
}
|
|
60
|
-
return { animation: r.bracket.cssvar(e) };
|
|
61
|
-
}, { autocomplete: "animate-$animation.keyframes" }],
|
|
62
|
-
[/^animate-name-(.+)/, ([, e]) => ({ "animation-name": r.bracket.cssvar(e) ?? e })],
|
|
63
|
-
// timings
|
|
64
|
-
[/^animate-duration-(.+)$/, ([, e], { theme: t }) => {
|
|
65
|
-
var n;
|
|
66
|
-
return { "animation-duration": ((n = t.duration) == null ? void 0 : n[e || "DEFAULT"]) ?? r.bracket.cssvar.time(e) };
|
|
67
|
-
}, { autocomplete: ["animate-duration"] }],
|
|
68
|
-
[/^animate-delay-(.+)$/, ([, e], { theme: t }) => {
|
|
69
|
-
var n;
|
|
70
|
-
return { "animation-delay": ((n = t.duration) == null ? void 0 : n[e || "DEFAULT"]) ?? r.bracket.cssvar.time(e) };
|
|
71
|
-
}, { autocomplete: ["animate-delay"] }],
|
|
72
|
-
[/^animate-ease(?:-(.+))?$/, ([, e], { theme: t }) => {
|
|
73
|
-
var n;
|
|
74
|
-
return { "animation-timing-function": ((n = t.ease) == null ? void 0 : n[e || "DEFAULT"]) ?? r.bracket.cssvar(e) };
|
|
75
|
-
}, { autocomplete: ["animate-ease", "animate-ease-$ease"] }],
|
|
76
|
-
// fill mode
|
|
77
|
-
[/^animate-(fill-mode-|fill-|mode-)?(.+)$/, ([, e, t]) => ["none", "forwards", "backwards", "both", e ? f : []].includes(t) ? { "animation-fill-mode": t } : void 0, {
|
|
78
|
-
autocomplete: [
|
|
79
|
-
"animate-(fill|mode|fill-mode)",
|
|
80
|
-
"animate-(fill|mode|fill-mode)-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)",
|
|
81
|
-
"animate-(none|forwards|backwards|both|inherit|initial|revert|revert-layer|unset)"
|
|
82
|
-
]
|
|
83
|
-
}],
|
|
84
|
-
// direction
|
|
85
|
-
[/^animate-(direction-)?(.+)$/, ([, e, t]) => ["normal", "reverse", "alternate", "alternate-reverse", e ? f : []].includes(t) ? { "animation-direction": t } : void 0, {
|
|
86
|
-
autocomplete: [
|
|
87
|
-
"animate-direction",
|
|
88
|
-
"animate-direction-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)",
|
|
89
|
-
"animate-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|revert-layer|unset)"
|
|
90
|
-
]
|
|
91
|
-
}],
|
|
92
|
-
// others
|
|
93
|
-
[/^animate-(?:iteration-count-|iteration-|count-)(.+)$/, ([, e]) => ({ "animation-iteration-count": r.bracket.cssvar(e) ?? e.replace(/-/g, ",") }), { autocomplete: ["animate-(iteration|count|iteration-count)", "animate-(iteration|count|iteration-count)-<num>"] }],
|
|
94
|
-
[/^animate-(play-state-|play-|state-)?(.+)$/, ([, e, t]) => ["paused", "running", e ? f : []].includes(t) ? { "animation-play-state": t } : void 0, {
|
|
95
|
-
autocomplete: [
|
|
96
|
-
"animate-(play|state|play-state)",
|
|
97
|
-
"animate-(play|state|play-state)-(paused|running|inherit|initial|revert|revert-layer|unset)",
|
|
98
|
-
"animate-(paused|running|inherit|initial|revert|revert-layer|unset)"
|
|
99
|
-
]
|
|
100
|
-
}],
|
|
101
|
-
["animate-none", { animation: "none" }],
|
|
102
|
-
...l("animate", "animation")
|
|
103
|
-
], ze = {
|
|
104
|
-
"gradient-position": s("--un-gradient-position"),
|
|
105
|
-
"gradient-from": s("--un-gradient-from", { syntax: "<color>", initialValue: "#0000" }),
|
|
106
|
-
"gradient-via": s("--un-gradient-via", { syntax: "<color>", initialValue: "#0000" }),
|
|
107
|
-
"gradient-to": s("--un-gradient-to", { syntax: "<color>", initialValue: "#0000" }),
|
|
108
|
-
"gradient-stops": s("--un-gradient-stops"),
|
|
109
|
-
"gradient-via-stops": s("--un-gradient-via-stops"),
|
|
110
|
-
"gradient-from-position": s("--un-gradient-from-position", { syntax: "<length-percentage>", initialValue: "0%" }),
|
|
111
|
-
"gradient-via-position": s("--un-gradient-via-position", { syntax: "<length-percentage>", initialValue: "50%" }),
|
|
112
|
-
"gradient-to-position": s("--un-gradient-to-position", { syntax: "<length-percentage>", initialValue: "100%" })
|
|
113
|
-
};
|
|
114
|
-
function ie(e) {
|
|
115
|
-
let t = "in oklab";
|
|
116
|
-
if (e)
|
|
117
|
-
if (e.startsWith("[") && e.endsWith("]"))
|
|
118
|
-
t = e.slice(1, -1);
|
|
119
|
-
else
|
|
120
|
-
switch (e) {
|
|
121
|
-
case "longer":
|
|
122
|
-
case "shorter":
|
|
123
|
-
case "increasing":
|
|
124
|
-
case "decreasing":
|
|
125
|
-
t = `in oklch ${e} hue`;
|
|
126
|
-
break;
|
|
127
|
-
default:
|
|
128
|
-
t = `in ${e}`;
|
|
129
|
-
}
|
|
130
|
-
return t;
|
|
131
|
-
}
|
|
132
|
-
function nt() {
|
|
133
|
-
return function* ([, e, t], { theme: n }) {
|
|
134
|
-
const o = {}, a = we(t, n);
|
|
135
|
-
if (a) {
|
|
136
|
-
const { color: i, keys: c, alpha: m } = a;
|
|
137
|
-
if (i) {
|
|
138
|
-
if (Object.values(je).includes(i))
|
|
139
|
-
o[`--un-gradient-${e}`] = i;
|
|
140
|
-
else {
|
|
141
|
-
o[`--un-${e}-opacity`] = m;
|
|
142
|
-
const g = c ? p("colors", c) : i;
|
|
143
|
-
o[`--un-gradient-${e}`] = `color-mix(in oklab, ${g} var(--un-${e}-opacity), transparent)`, yield s(`--un-${e}-opacity`, { syntax: "<percentage>", initialValue: "100%" });
|
|
144
|
-
}
|
|
145
|
-
c && u("colors", c), n && _e(i, n);
|
|
146
|
-
}
|
|
147
|
-
} else
|
|
148
|
-
o[`--un-gradient-${e}`] = r.bracket.cssvar(t);
|
|
149
|
-
if (o[`--un-gradient-${e}`]) {
|
|
150
|
-
switch (e) {
|
|
151
|
-
case "from":
|
|
152
|
-
yield {
|
|
153
|
-
...o,
|
|
154
|
-
"--un-gradient-stops": "var(--un-gradient-via-stops, var(--un-gradient-position), var(--un-gradient-from) var(--un-gradient-from-position), var(--un-gradient-to) var(--un-gradient-to-position))"
|
|
155
|
-
};
|
|
156
|
-
break;
|
|
157
|
-
case "via":
|
|
158
|
-
yield {
|
|
159
|
-
...o,
|
|
160
|
-
"--un-gradient-via-stops": "var(--un-gradient-position), var(--un-gradient-from) var(--un-gradient-from-position), var(--un-gradient-via) var(--un-gradient-via-position), var(--un-gradient-to) var(--un-gradient-to-position)",
|
|
161
|
-
"--un-gradient-stops": "var(--un-gradient-via-stops)"
|
|
162
|
-
};
|
|
163
|
-
break;
|
|
164
|
-
case "to":
|
|
165
|
-
yield {
|
|
166
|
-
...o,
|
|
167
|
-
"--un-gradient-stops": "var(--un-gradient-via-stops, var(--un-gradient-position), var(--un-gradient-from) var(--un-gradient-from-position), var(--un-gradient-to) var(--un-gradient-to-position))"
|
|
168
|
-
};
|
|
169
|
-
break;
|
|
170
|
-
case "stops":
|
|
171
|
-
yield {
|
|
172
|
-
...o
|
|
173
|
-
};
|
|
174
|
-
break;
|
|
175
|
-
}
|
|
176
|
-
for (const i of Object.values(ze))
|
|
177
|
-
yield i;
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
function ot() {
|
|
182
|
-
return function* ([, e, t]) {
|
|
183
|
-
yield {
|
|
184
|
-
[`--un-gradient-${e}-position`]: `${r.bracket.cssvar.percent(t)}`
|
|
185
|
-
};
|
|
186
|
-
for (const n of Object.values(ze))
|
|
187
|
-
yield n;
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
const rt = [
|
|
191
|
-
// gradients
|
|
192
|
-
[/^bg-(linear|radial|conic)-([^/]+)(?:\/(.+))?$/, ([, e, t, n]) => {
|
|
193
|
-
let o;
|
|
194
|
-
if (r.number(t) != null ? o = `${r.number(t)}deg ${ie(n)};` : o = r.bracket(t), o)
|
|
195
|
-
return {
|
|
196
|
-
"--un-gradient-position": o,
|
|
197
|
-
"background-image": `${e}-gradient(var(--un-gradient-stops))`
|
|
198
|
-
};
|
|
199
|
-
}, {
|
|
200
|
-
autocomplete: ["bg-(linear|radial|conic)", "(from|to|via)-$colors", "(from|to|via)-(op|opacity)", "(from|to|via)-(op|opacity)-<percent>"]
|
|
201
|
-
}],
|
|
202
|
-
[/^(from|via|to|stops)-(.+)$/, nt()],
|
|
203
|
-
[/^(from|via|to)-op(?:acity)?-?(.+)$/, ([, e, t]) => ({ [`--un-${e}-opacity`]: r.bracket.percent(t) })],
|
|
204
|
-
[/^(from|via|to)-([\d.]+%)$/, ot()],
|
|
205
|
-
// images
|
|
206
|
-
[/^bg-((?:repeating-)?(?:linear|radial|conic))$/, ([, e]) => ({
|
|
207
|
-
"background-image": `${e}-gradient(var(--un-gradient, var(--un-gradient-stops, rgb(255 255 255 / 0))))`
|
|
208
|
-
}), { autocomplete: ["bg-gradient-repeating", "bg-gradient-(linear|radial|conic)", "bg-gradient-repeating-(linear|radial|conic)"] }],
|
|
209
|
-
// ignore any center position
|
|
210
|
-
[/^bg-(linear|radial|conic)(?:-to-([rltb]{1,2}))?(?:\/(.+))?$/, ([, e, t, n]) => ({
|
|
211
|
-
"--un-gradient-position": `${t in v ? `to ${v[t]} ` : " "}${ie(n)}`,
|
|
212
|
-
"background-image": `${e}-gradient(var(--un-gradient-stops))`
|
|
213
|
-
}), { autocomplete: `bg-gradient-to-(${Object.keys(v).filter((e) => e.length <= 2 && Array.from(e).every((t) => "rltb".includes(t))).join("|")})` }],
|
|
214
|
-
["bg-none", { "background-image": "none" }],
|
|
215
|
-
["box-decoration-slice", { "box-decoration-break": "slice" }],
|
|
216
|
-
["box-decoration-clone", { "box-decoration-break": "clone" }],
|
|
217
|
-
...l("box-decoration", "box-decoration-break"),
|
|
218
|
-
// size
|
|
219
|
-
["bg-auto", { "background-size": "auto" }],
|
|
220
|
-
["bg-cover", { "background-size": "cover" }],
|
|
221
|
-
["bg-contain", { "background-size": "contain" }],
|
|
222
|
-
// attachments
|
|
223
|
-
["bg-fixed", { "background-attachment": "fixed" }],
|
|
224
|
-
["bg-local", { "background-attachment": "local" }],
|
|
225
|
-
["bg-scroll", { "background-attachment": "scroll" }],
|
|
226
|
-
// clips
|
|
227
|
-
["bg-clip-border", { "-webkit-background-clip": "border-box", "background-clip": "border-box" }],
|
|
228
|
-
["bg-clip-content", { "-webkit-background-clip": "content-box", "background-clip": "content-box" }],
|
|
229
|
-
["bg-clip-padding", { "-webkit-background-clip": "padding-box", "background-clip": "padding-box" }],
|
|
230
|
-
["bg-clip-text", { "-webkit-background-clip": "text", "background-clip": "text" }],
|
|
231
|
-
...f.map((e) => [`bg-clip-${e}`, {
|
|
232
|
-
"-webkit-background-clip": e,
|
|
233
|
-
"background-clip": e
|
|
234
|
-
}]),
|
|
235
|
-
// positions
|
|
236
|
-
// skip 1 & 2 letters shortcut
|
|
237
|
-
[/^bg-([-\w]{3,})$/, ([, e]) => ({ "background-position": v[e] })],
|
|
238
|
-
// repeats
|
|
239
|
-
["bg-repeat", { "background-repeat": "repeat" }],
|
|
240
|
-
["bg-no-repeat", { "background-repeat": "no-repeat" }],
|
|
241
|
-
["bg-repeat-x", { "background-repeat": "repeat-x" }],
|
|
242
|
-
["bg-repeat-y", { "background-repeat": "repeat-y" }],
|
|
243
|
-
["bg-repeat-round", { "background-repeat": "round" }],
|
|
244
|
-
["bg-repeat-space", { "background-repeat": "space" }],
|
|
245
|
-
...l("bg-repeat", "background-repeat"),
|
|
246
|
-
// origins
|
|
247
|
-
["bg-origin-border", { "background-origin": "border-box" }],
|
|
248
|
-
["bg-origin-padding", { "background-origin": "padding-box" }],
|
|
249
|
-
["bg-origin-content", { "background-origin": "content-box" }],
|
|
250
|
-
...l("bg-origin", "background-origin")
|
|
251
|
-
], se = [
|
|
252
|
-
// size
|
|
253
|
-
[/^outline-(?:width-|size-)?(.+)$/, Se, { autocomplete: "outline-(width|size)-<num>" }],
|
|
254
|
-
// color
|
|
255
|
-
[/^outline-(?:color-)?(.+)$/, at, { autocomplete: "outline-$colors" }],
|
|
256
|
-
[/^outline-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-outline-opacity": r.bracket.percent.cssvar(e) }), { autocomplete: "outline-(op|opacity)-<percent>" }],
|
|
257
|
-
// offset
|
|
258
|
-
[/^outline-offset-(.+)$/, ([, e]) => ({ "outline-offset": r.bracket.cssvar.global.px(e) }), { autocomplete: "outline-(offset)-<num>" }],
|
|
259
|
-
["outline-offset-none", { "outline-offset": "0" }],
|
|
260
|
-
// style
|
|
261
|
-
["outline", [
|
|
262
|
-
{
|
|
263
|
-
"outline-style": "var(--un-outline-style)",
|
|
264
|
-
"outline-width": "1px"
|
|
265
|
-
},
|
|
266
|
-
s("--un-outline-style", { initialValue: "solid" })
|
|
267
|
-
]],
|
|
268
|
-
["outline-hidden", [
|
|
269
|
-
{ "outline-style": "none" },
|
|
270
|
-
{
|
|
271
|
-
[Ke.parent]: "@media (forced-colors: active)",
|
|
272
|
-
outline: "2px solid transparent",
|
|
273
|
-
"outline-offset": "2px"
|
|
274
|
-
}
|
|
275
|
-
]],
|
|
276
|
-
["outline-none", { "--un-outline-style": "none", "outline-style": "none" }],
|
|
277
|
-
...["auto", "dashed", "dotted", "double", "solid", "groove", "ridge", "inset", "outset", ...f].map((e) => [`outline-${e}`, { "--un-outline-style": e, "outline-style": e }])
|
|
278
|
-
];
|
|
279
|
-
function* Se([, e]) {
|
|
280
|
-
const t = r.bracket.cssvar.global.px(e);
|
|
281
|
-
t != null && (yield {
|
|
282
|
-
"outline-style": "var(--un-outline-style)",
|
|
283
|
-
"outline-width": t
|
|
284
|
-
}, yield s("--un-outline-style", { initialValue: "solid" }));
|
|
285
|
-
}
|
|
286
|
-
function* at(e, t) {
|
|
287
|
-
if (E(r.bracket(e[1])))
|
|
288
|
-
yield* Se(e);
|
|
289
|
-
else {
|
|
290
|
-
const n = b("outline-color", "outline")(e, t);
|
|
291
|
-
if (n)
|
|
292
|
-
for (const o of n)
|
|
293
|
-
yield o;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
const it = [
|
|
297
|
-
["appearance-auto", { "-webkit-appearance": "auto", appearance: "auto" }],
|
|
298
|
-
["appearance-none", { "-webkit-appearance": "none", appearance: "none" }]
|
|
299
|
-
];
|
|
300
|
-
function st(e) {
|
|
301
|
-
const t = r.bracket(e);
|
|
302
|
-
return t && r.properties(t) ? t : r.properties.auto.cssvar.global(e) ?? {
|
|
303
|
-
contents: "contents",
|
|
304
|
-
scroll: "scroll-position"
|
|
305
|
-
}[e];
|
|
306
|
-
}
|
|
307
|
-
const le = [
|
|
308
|
-
[/^will-change-(.+)/, ([, e]) => ({ "will-change": st(e) })]
|
|
309
|
-
], _ = {
|
|
310
|
-
disc: "disc",
|
|
311
|
-
circle: "circle",
|
|
312
|
-
square: "square",
|
|
313
|
-
decimal: "decimal",
|
|
314
|
-
"zero-decimal": "decimal-leading-zero",
|
|
315
|
-
greek: "lower-greek",
|
|
316
|
-
roman: "lower-roman",
|
|
317
|
-
"upper-roman": "upper-roman",
|
|
318
|
-
alpha: "lower-alpha",
|
|
319
|
-
"upper-alpha": "upper-alpha",
|
|
320
|
-
latin: "lower-latin",
|
|
321
|
-
"upper-latin": "upper-latin"
|
|
322
|
-
}, lt = [
|
|
323
|
-
// base
|
|
324
|
-
[/^list-(.+?)(?:-(outside|inside))?$/, ([, e, t]) => {
|
|
325
|
-
const n = _[e];
|
|
326
|
-
if (n)
|
|
327
|
-
return t ? {
|
|
328
|
-
"list-style-position": t,
|
|
329
|
-
"list-style-type": n
|
|
330
|
-
} : { "list-style-type": n };
|
|
331
|
-
}, { autocomplete: [`list-(${Object.keys(_).join("|")})`, `list-(${Object.keys(_).join("|")})-(outside|inside)`] }],
|
|
332
|
-
// styles
|
|
333
|
-
["list-outside", { "list-style-position": "outside" }],
|
|
334
|
-
["list-inside", { "list-style-position": "inside" }],
|
|
335
|
-
["list-none", { "list-style-type": "none" }],
|
|
336
|
-
// image
|
|
337
|
-
[/^list-image-(.+)$/, ([, e]) => {
|
|
338
|
-
if (/^\[url\(.+\)\]$/.test(e))
|
|
339
|
-
return { "list-style-image": r.bracket(e) };
|
|
340
|
-
}],
|
|
341
|
-
["list-image-none", { "list-style-image": "none" }],
|
|
342
|
-
...l("list", "list-style-type")
|
|
343
|
-
], ct = [
|
|
344
|
-
[/^accent-(.+)$/, b("accent-color", "accent"), { autocomplete: "accent-$colors" }],
|
|
345
|
-
[/^accent-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-accent-opacity": r.bracket.percent(e) }), { autocomplete: ["accent-(op|opacity)", "accent-(op|opacity)-<percent>"] }]
|
|
346
|
-
], ut = [
|
|
347
|
-
[/^caret-(.+)$/, b("caret-color", "caret"), { autocomplete: "caret-$colors" }],
|
|
348
|
-
[/^caret-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-caret-opacity": r.bracket.percent(e) }), { autocomplete: ["caret-(op|opacity)", "caret-(op|opacity)-<percent>"] }]
|
|
349
|
-
], dt = [
|
|
350
|
-
["image-render-auto", { "image-rendering": "auto" }],
|
|
351
|
-
["image-render-edge", { "image-rendering": "crisp-edges" }],
|
|
352
|
-
["image-render-pixel", [
|
|
353
|
-
["-ms-interpolation-mode", "nearest-neighbor"],
|
|
354
|
-
["image-rendering", "-webkit-optimize-contrast"],
|
|
355
|
-
["image-rendering", "-moz-crisp-edges"],
|
|
356
|
-
["image-rendering", "-o-pixelated"],
|
|
357
|
-
["image-rendering", "pixelated"]
|
|
358
|
-
]]
|
|
359
|
-
], pt = [
|
|
360
|
-
["overscroll-auto", { "overscroll-behavior": "auto" }],
|
|
361
|
-
["overscroll-contain", { "overscroll-behavior": "contain" }],
|
|
362
|
-
["overscroll-none", { "overscroll-behavior": "none" }],
|
|
363
|
-
...l("overscroll", "overscroll-behavior"),
|
|
364
|
-
["overscroll-x-auto", { "overscroll-behavior-x": "auto" }],
|
|
365
|
-
["overscroll-x-contain", { "overscroll-behavior-x": "contain" }],
|
|
366
|
-
["overscroll-x-none", { "overscroll-behavior-x": "none" }],
|
|
367
|
-
...l("overscroll-x", "overscroll-behavior-x"),
|
|
368
|
-
["overscroll-y-auto", { "overscroll-behavior-y": "auto" }],
|
|
369
|
-
["overscroll-y-contain", { "overscroll-behavior-y": "contain" }],
|
|
370
|
-
["overscroll-y-none", { "overscroll-behavior-y": "none" }],
|
|
371
|
-
...l("overscroll-y", "overscroll-behavior-y")
|
|
372
|
-
], bt = [
|
|
373
|
-
["scroll-auto", { "scroll-behavior": "auto" }],
|
|
374
|
-
["scroll-smooth", { "scroll-behavior": "smooth" }],
|
|
375
|
-
...l("scroll", "scroll-behavior")
|
|
376
|
-
], S = ["solid", "dashed", "dotted", "double", "hidden", "none", "groove", "ridge", "inset", "outset", ...f], ft = [
|
|
377
|
-
// compound
|
|
378
|
-
[/^(?:border|b)()(?:-(.+))?$/, h, { autocomplete: "(border|b)-<directions>" }],
|
|
379
|
-
[/^(?:border|b)-([xy])(?:-(.+))?$/, h],
|
|
380
|
-
[/^(?:border|b)-([rltbse])(?:-(.+))?$/, h],
|
|
381
|
-
[/^(?:border|b)-(block|inline)(?:-(.+))?$/, h],
|
|
382
|
-
[/^(?:border|b)-([bi][se])(?:-(.+))?$/, h],
|
|
383
|
-
// size
|
|
384
|
-
[/^(?:border|b)-()(?:width|size)-(.+)$/, h, { autocomplete: ["(border|b)-<num>", "(border|b)-<directions>-<num>"] }],
|
|
385
|
-
[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/, h],
|
|
386
|
-
[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/, h],
|
|
387
|
-
[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/, h],
|
|
388
|
-
[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/, h],
|
|
389
|
-
// colors
|
|
390
|
-
[/^(?:border|b)-()(?:color-)?(.+)$/, C, { autocomplete: ["(border|b)-$colors", "(border|b)-<directions>-$colors"] }],
|
|
391
|
-
[/^(?:border|b)-([xy])-(?:color-)?(.+)$/, C],
|
|
392
|
-
[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/, C],
|
|
393
|
-
[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/, C],
|
|
394
|
-
[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/, C],
|
|
395
|
-
// opacity
|
|
396
|
-
[/^(?:border|b)-()op(?:acity)?-?(.+)$/, W, { autocomplete: "(border|b)-(op|opacity)-<percent>" }],
|
|
397
|
-
[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/, W],
|
|
398
|
-
[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/, W],
|
|
399
|
-
[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/, W],
|
|
400
|
-
[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/, W],
|
|
401
|
-
// radius
|
|
402
|
-
[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/, A, { autocomplete: ["(border|b)-(rounded|rd)", "(border|b)-(rounded|rd)-$radius", "(rounded|rd)", "(rounded|rd)-$radius"] }],
|
|
403
|
-
[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/, A],
|
|
404
|
-
[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/, A],
|
|
405
|
-
[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/, A],
|
|
406
|
-
[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/, A],
|
|
407
|
-
// style
|
|
408
|
-
[/^(?:border|b)-(?:style-)?()(.+)$/, R, { autocomplete: ["(border|b)-style", `(border|b)-(${S.join("|")})`, "(border|b)-<directions>-style", `(border|b)-<directions>-(${S.join("|")})`, `(border|b)-<directions>-style-(${S.join("|")})`, `(border|b)-style-(${S.join("|")})`] }],
|
|
409
|
-
[/^(?:border|b)-([xy])-(?:style-)?(.+)$/, R],
|
|
410
|
-
[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/, R],
|
|
411
|
-
[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/, R],
|
|
412
|
-
[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/, R]
|
|
413
|
-
];
|
|
414
|
-
function mt(e) {
|
|
415
|
-
return ([, t], n) => {
|
|
416
|
-
const o = we(t, n.theme), a = Ie(o, `border${e}-color`, `border${e}`, n);
|
|
417
|
-
if (a) {
|
|
418
|
-
const i = a[0];
|
|
419
|
-
return o != null && o.color && !Object.values(je).includes(o.color) && !o.alpha && e && e !== "" && (i[`--un-border${e}-opacity`] = "var(--un-border-opacity)"), a;
|
|
420
|
-
}
|
|
421
|
-
};
|
|
422
|
-
}
|
|
423
|
-
function h([, e = "", t = "1"]) {
|
|
424
|
-
const n = r.bracket.cssvar.global.px(t);
|
|
425
|
-
if (e in x && n != null)
|
|
426
|
-
return x[e].map((o) => [`border${o}-width`, n]);
|
|
427
|
-
}
|
|
428
|
-
function C([, e = "", t], n) {
|
|
429
|
-
if (e in x) {
|
|
430
|
-
if (E(r.bracket(t)))
|
|
431
|
-
return h(["", e, t]);
|
|
432
|
-
if ($e(t, n.theme)) {
|
|
433
|
-
const o = x[e].map((a) => mt(a)(["", t], n)).filter(Je);
|
|
434
|
-
return [
|
|
435
|
-
o.map((a) => a[0]).reduce((a, i) => (Object.assign(a, i), a), {}),
|
|
436
|
-
...o.flatMap((a) => a.slice(1))
|
|
437
|
-
];
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
function W([, e = "", t]) {
|
|
442
|
-
const n = r.bracket.percent.cssvar(t);
|
|
443
|
-
if (e in x && n != null)
|
|
444
|
-
return x[e].map((o) => [`--un-border${o}-opacity`, n]);
|
|
445
|
-
}
|
|
446
|
-
function A([, e = "", t = "DEFAULT"], { theme: n }) {
|
|
447
|
-
var o;
|
|
448
|
-
if (e in B) {
|
|
449
|
-
if (t === "full")
|
|
450
|
-
return B[e].map((i) => [`border${i}-radius`, "calc(infinity * 1px)"]);
|
|
451
|
-
const a = ((o = n.radius) == null ? void 0 : o[t]) ?? r.bracket.cssvar.global.fraction.rem(t);
|
|
452
|
-
if (a != null) {
|
|
453
|
-
const i = n.radius && t in n.radius;
|
|
454
|
-
return i && u("radius", t), B[e].map((c) => [
|
|
455
|
-
`border${c}-radius`,
|
|
456
|
-
i ? p("radius", t) : a
|
|
457
|
-
]);
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
function R([, e = "", t]) {
|
|
462
|
-
if (S.includes(t) && e in x)
|
|
463
|
-
return [
|
|
464
|
-
["--un-border-style", t],
|
|
465
|
-
...x[e].map((n) => [`border${n}-style`, t])
|
|
466
|
-
];
|
|
467
|
-
}
|
|
468
|
-
const gt = [
|
|
469
|
-
[/^op(?:acity)?-?(.+)$/, ([, e]) => ({ opacity: r.bracket.percent.cssvar(e) })]
|
|
470
|
-
], ht = /^\[url\(.+\)\]$/, vt = /^\[(?:length|size):.+\]$/, yt = /^\[position:.+\]$/, kt = /^\[(?:linear|conic|radial)-gradient\(.+\)\]$/, $t = /^\[image:.+\]$/, xt = [
|
|
471
|
-
[/^bg-(.+)$/, (...e) => {
|
|
472
|
-
const t = e[0][1];
|
|
473
|
-
if (ht.test(t))
|
|
474
|
-
return { "--un-url": r.bracket(t), "background-image": "var(--un-url)" };
|
|
475
|
-
if (vt.test(t) && r.bracketOfLength(t) != null)
|
|
476
|
-
return { "background-size": r.bracketOfLength(t).split(" ").map((n) => r.fraction.auto.px.cssvar(n) ?? n).join(" ") };
|
|
477
|
-
if ((Me(t) || yt.test(t)) && r.bracketOfPosition(t) != null)
|
|
478
|
-
return { "background-position": r.bracketOfPosition(t).split(" ").map((n) => r.position.fraction.auto.px.cssvar(n) ?? n).join(" ") };
|
|
479
|
-
if (kt.test(t) || $t.test(t)) {
|
|
480
|
-
const n = r.bracket(t);
|
|
481
|
-
if (n)
|
|
482
|
-
return { "background-image": (n.startsWith("http") ? `url(${n})` : r.cssvar(n)) ?? n };
|
|
483
|
-
}
|
|
484
|
-
return b("background-color", "bg")(...e);
|
|
485
|
-
}, { autocomplete: "bg-$colors" }],
|
|
486
|
-
[/^bg-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-bg-opacity": r.bracket.percent.cssvar(e) }), { autocomplete: "bg-(op|opacity)-<percent>" }]
|
|
487
|
-
], wt = [
|
|
488
|
-
[/^(?:color-)?scheme-(.+)$/, ([, e]) => ({ "color-scheme": e.split("-").join(" ") })]
|
|
489
|
-
], jt = [
|
|
490
|
-
[/^columns-(.+)$/, ([, e]) => ({ columns: r.bracket.global.number.auto.numberWithUnit(e) }), { autocomplete: "columns-<num>" }],
|
|
491
|
-
// break before
|
|
492
|
-
["break-before-auto", { "break-before": "auto" }],
|
|
493
|
-
["break-before-avoid", { "break-before": "avoid" }],
|
|
494
|
-
["break-before-all", { "break-before": "all" }],
|
|
495
|
-
["break-before-avoid-page", { "break-before": "avoid-page" }],
|
|
496
|
-
["break-before-page", { "break-before": "page" }],
|
|
497
|
-
["break-before-left", { "break-before": "left" }],
|
|
498
|
-
["break-before-right", { "break-before": "right" }],
|
|
499
|
-
["break-before-column", { "break-before": "column" }],
|
|
500
|
-
...l("break-before"),
|
|
501
|
-
// break inside
|
|
502
|
-
["break-inside-auto", { "break-inside": "auto" }],
|
|
503
|
-
["break-inside-avoid", { "break-inside": "avoid" }],
|
|
504
|
-
["break-inside-avoid-page", { "break-inside": "avoid-page" }],
|
|
505
|
-
["break-inside-avoid-column", { "break-inside": "avoid-column" }],
|
|
506
|
-
...l("break-inside"),
|
|
507
|
-
// break after
|
|
508
|
-
["break-after-auto", { "break-after": "auto" }],
|
|
509
|
-
["break-after-avoid", { "break-after": "avoid" }],
|
|
510
|
-
["break-after-all", { "break-after": "all" }],
|
|
511
|
-
["break-after-avoid-page", { "break-after": "avoid-page" }],
|
|
512
|
-
["break-after-page", { "break-after": "page" }],
|
|
513
|
-
["break-after-left", { "break-after": "left" }],
|
|
514
|
-
["break-after-right", { "break-after": "right" }],
|
|
515
|
-
["break-after-column", { "break-after": "column" }],
|
|
516
|
-
...l("break-after")
|
|
517
|
-
], ce = ["solid", "double", "dotted", "dashed", "wavy", ...f], zt = [
|
|
518
|
-
[/^(?:decoration-)?(underline|overline|line-through)$/, ([, e]) => ({ "text-decoration-line": e }), { autocomplete: "decoration-(underline|overline|line-through)" }],
|
|
519
|
-
// size
|
|
520
|
-
[/^(?:underline|decoration)-(?:size-)?(.+)$/, Ve, { autocomplete: "(underline|decoration)-<num>" }],
|
|
521
|
-
[/^(?:underline|decoration)-(auto|from-font)$/, ([, e]) => ({ "text-decoration-thickness": e }), { autocomplete: "(underline|decoration)-(auto|from-font)" }],
|
|
522
|
-
// colors
|
|
523
|
-
[/^(?:underline|decoration)-(.+)$/, St, { autocomplete: "(underline|decoration)-$colors" }],
|
|
524
|
-
[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-line-opacity": r.bracket.percent.cssvar(e) }), { autocomplete: "(underline|decoration)-(op|opacity)-<percent>" }],
|
|
525
|
-
// offset
|
|
526
|
-
[/^(?:underline|decoration)-offset-(.+)$/, ([, e]) => ({ "text-underline-offset": r.auto.bracket.cssvar.global.px(e) }), { autocomplete: "(underline|decoration)-(offset)-<num>" }],
|
|
527
|
-
// style
|
|
528
|
-
...ce.map((e) => [`underline-${e}`, { "text-decoration-style": e }]),
|
|
529
|
-
...ce.map((e) => [`decoration-${e}`, { "text-decoration-style": e }]),
|
|
530
|
-
["no-underline", { "text-decoration": "none" }],
|
|
531
|
-
["decoration-none", { "text-decoration": "none" }]
|
|
532
|
-
];
|
|
533
|
-
function Ve([, e]) {
|
|
534
|
-
return { "text-decoration-thickness": r.bracket.cssvar.global.px(e) };
|
|
535
|
-
}
|
|
536
|
-
function St(e, t) {
|
|
537
|
-
if (E(r.bracket(e[1])))
|
|
538
|
-
return Ve(e);
|
|
539
|
-
const n = b("text-decoration-color", "line")(e, t);
|
|
540
|
-
if (n) {
|
|
541
|
-
const o = n[0];
|
|
542
|
-
return o["-webkit-text-decoration-color"] = o["text-decoration-color"], n;
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
const Vt = [
|
|
546
|
-
[/^pa?()-?(.+)$/, d("padding"), { autocomplete: ["(m|p)<num>", "(m|p)-<num>"] }],
|
|
547
|
-
[/^p-?xy()()$/, d("padding"), { autocomplete: "(m|p)-(xy)" }],
|
|
548
|
-
[/^p-?([xy])(?:-?(.+))?$/, d("padding")],
|
|
549
|
-
[/^p-?([rltbse])(?:-?(.+))?$/, d("padding"), { autocomplete: "(m|p)<directions>-<num>" }],
|
|
550
|
-
[/^p-(block|inline)(?:-(.+))?$/, d("padding"), { autocomplete: "(m|p)-(block|inline)-<num>" }],
|
|
551
|
-
[/^p-?([bi][se])(?:-?(.+))?$/, d("padding"), { autocomplete: "(m|p)-(bs|be|is|ie)-<num>" }]
|
|
552
|
-
], Ot = [
|
|
553
|
-
[/^ma?()-?(.+)$/, d("margin")],
|
|
554
|
-
[/^m-?xy()()$/, d("margin")],
|
|
555
|
-
[/^m-?([xy])(?:-?(.+))?$/, d("margin")],
|
|
556
|
-
[/^m-?([rltbse])(?:-?(.+))?$/, d("margin")],
|
|
557
|
-
[/^m-(block|inline)(?:-(.+))?$/, d("margin")],
|
|
558
|
-
[/^m-?([bi][se])(?:-?(.+))?$/, d("margin")]
|
|
559
|
-
], Ct = [
|
|
560
|
-
[/^space-([xy])-(.+)$/, Wt, { autocomplete: ["space-(x|y)", "space-(x|y)-reverse", "space-(x|y)-$spacing"] }],
|
|
561
|
-
[/^space-([xy])-reverse$/, function* ([, e], { symbols: t }) {
|
|
562
|
-
yield {
|
|
563
|
-
[t.selector]: V,
|
|
564
|
-
[`--un-space-${e}-reverse`]: "1"
|
|
565
|
-
}, yield s(`--un-space-${e}-reverse`, { initialValue: 0 });
|
|
566
|
-
}]
|
|
567
|
-
];
|
|
568
|
-
function V(e) {
|
|
569
|
-
const t = ">:not(:last-child)";
|
|
570
|
-
return e.includes(t) ? e : `${e}${t}`;
|
|
571
|
-
}
|
|
572
|
-
function* Wt([, e, t], { theme: n, symbols: o }) {
|
|
573
|
-
var c;
|
|
574
|
-
let a;
|
|
575
|
-
const i = $(t);
|
|
576
|
-
if (i != null ? (u("spacing"), a = `calc(var(--spacing) * ${i})`) : a = ((c = n.spacing) == null ? void 0 : c[t]) ?? r.bracket.cssvar.auto.fraction.rem(t || "1"), a != null) {
|
|
577
|
-
const m = x[e === "x" ? "inline" : "block"].map((g, z) => {
|
|
578
|
-
const T = `margin${g}`, L = ` calc(${a} * ${z === 0 ? `var(--un-space-${e}-reverse)` : `calc(1 - var(--un-space-${e}-reverse))`})`;
|
|
579
|
-
return [T, L];
|
|
580
|
-
});
|
|
581
|
-
m && (yield {
|
|
582
|
-
[o.selector]: V,
|
|
583
|
-
[`--un-space-${e}-reverse`]: "0",
|
|
584
|
-
...Object.fromEntries(m)
|
|
585
|
-
}, yield s(`--un-space-${e}-reverse`, { initialValue: 0 }));
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
const At = [
|
|
589
|
-
// color & opacity
|
|
590
|
-
[/^divide-(.+)$/, function* (e, t) {
|
|
591
|
-
const n = b("border-color", "divide")(e, t);
|
|
592
|
-
n && (yield {
|
|
593
|
-
[t.symbols.selector]: V,
|
|
594
|
-
...n[0]
|
|
595
|
-
}, yield n[1]);
|
|
596
|
-
}, { autocomplete: "divide-$colors" }],
|
|
597
|
-
[/^divide-op(?:acity)?-?(.+)$/, function* ([, e], { symbols: t }) {
|
|
598
|
-
yield {
|
|
599
|
-
[t.selector]: V,
|
|
600
|
-
"--un-divide-opacity": r.bracket.percent(e)
|
|
601
|
-
};
|
|
602
|
-
}, { autocomplete: ["divide-(op|opacity)", "divide-(op|opacity)-<percent>"] }],
|
|
603
|
-
// divides
|
|
604
|
-
[/^divide-?([xy])$/, ue, { autocomplete: ["divide-(x|y)", "divide-(x|y)-reverse"] }],
|
|
605
|
-
[/^divide-?([xy])-?(.+)$/, ue],
|
|
606
|
-
[/^divide-?([xy])-reverse$/, function* ([, e], { symbols: t }) {
|
|
607
|
-
yield {
|
|
608
|
-
[t.selector]: V,
|
|
609
|
-
[`--un-divide-${e}-reverse`]: "1"
|
|
610
|
-
}, yield s(`--un-divide-${e}-reverse`, { initialValue: 0 });
|
|
611
|
-
}],
|
|
612
|
-
// styles
|
|
613
|
-
[new RegExp(`^divide-(${S.join("|")})$`), function* ([, e], { symbols: t }) {
|
|
614
|
-
yield {
|
|
615
|
-
[t.selector]: V,
|
|
616
|
-
"border-style": e
|
|
617
|
-
};
|
|
618
|
-
}, { autocomplete: S.map((e) => `divide-${e}`) }]
|
|
619
|
-
];
|
|
620
|
-
function* ue([, e, t], { symbols: n }) {
|
|
621
|
-
let o = r.bracket.cssvar.px(t || "1");
|
|
622
|
-
if (o != null) {
|
|
623
|
-
o === "0" && (o = "0px");
|
|
624
|
-
const i = {
|
|
625
|
-
x: ["-left", "-right"],
|
|
626
|
-
y: ["-top", "-bottom"]
|
|
627
|
-
}[e].map((c) => {
|
|
628
|
-
const m = c.endsWith("left") || c.endsWith("top") ? `calc(${o} * var(--un-divide-${e}-reverse))` : `calc(${o} * calc(1 - var(--un-divide-${e}-reverse)))`;
|
|
629
|
-
return [
|
|
630
|
-
[`border${c}-width`, m],
|
|
631
|
-
[`border${c}-style`, "var(--un-border-style)"]
|
|
632
|
-
];
|
|
633
|
-
});
|
|
634
|
-
i && (yield {
|
|
635
|
-
[n.selector]: V,
|
|
636
|
-
[`--un-divide-${e}-reverse`]: 0,
|
|
637
|
-
...Object.fromEntries(i.flat())
|
|
638
|
-
}, yield s(`--un-divide-${e}-reverse`, { initialValue: 0 }), yield s("--un-border-style", { initialValue: "solid" }));
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
const Oe = [
|
|
642
|
-
"blur",
|
|
643
|
-
"brightness",
|
|
644
|
-
"contrast",
|
|
645
|
-
"grayscale",
|
|
646
|
-
"hue-rotate",
|
|
647
|
-
"invert",
|
|
648
|
-
"saturate",
|
|
649
|
-
"sepia",
|
|
650
|
-
"drop-shadow"
|
|
651
|
-
], J = Oe.map((e) => s(`--un-${e}`)), q = Oe.map((e) => `var(--un-${e},)`).join(" "), Ce = [
|
|
652
|
-
"backdrop-blur",
|
|
653
|
-
"backdrop-brightness",
|
|
654
|
-
"backdrop-contrast",
|
|
655
|
-
"backdrop-grayscale",
|
|
656
|
-
"backdrop-hue-rotate",
|
|
657
|
-
"backdrop-invert",
|
|
658
|
-
"backdrop-opacity",
|
|
659
|
-
"backdrop-saturate",
|
|
660
|
-
"backdrop-sepia"
|
|
661
|
-
], Rt = Ce.map((e) => s(`--un-${e}`)), D = Ce.map((e) => `var(--un-${e},)`).join(" ");
|
|
662
|
-
function G(e) {
|
|
663
|
-
let t = r.bracket.cssvar(e || "");
|
|
664
|
-
if (t != null || (t = e ? r.percent(e) : "100%", t != null && Number.parseFloat(t.slice(0, -1)) <= 100))
|
|
665
|
-
return t;
|
|
666
|
-
}
|
|
667
|
-
function k(e, t) {
|
|
668
|
-
return ([, n, o], { theme: a }) => {
|
|
669
|
-
const i = t(o, a) ?? (o === "none" ? "0" : "");
|
|
670
|
-
if (i !== "")
|
|
671
|
-
return n ? [
|
|
672
|
-
{
|
|
673
|
-
[`--un-${n}${e}`]: `${e}(${i})`,
|
|
674
|
-
"-webkit-backdrop-filter": D,
|
|
675
|
-
"backdrop-filter": D
|
|
676
|
-
},
|
|
677
|
-
...Rt
|
|
678
|
-
] : [
|
|
679
|
-
{
|
|
680
|
-
[`--un-${e}`]: `${e}(${i})`,
|
|
681
|
-
filter: q
|
|
682
|
-
},
|
|
683
|
-
...J
|
|
684
|
-
];
|
|
685
|
-
};
|
|
686
|
-
}
|
|
687
|
-
function Ut([, e], { theme: t }) {
|
|
688
|
-
var o;
|
|
689
|
-
let n = (o = t.dropShadow) == null ? void 0 : o[e || "DEFAULT"];
|
|
690
|
-
if (n != null)
|
|
691
|
-
return [
|
|
692
|
-
{
|
|
693
|
-
"--un-drop-shadow": `drop-shadow(${Y(n, "--un-drop-shadow-color").join(") drop-shadow(")})`,
|
|
694
|
-
filter: q
|
|
695
|
-
},
|
|
696
|
-
...J
|
|
697
|
-
];
|
|
698
|
-
if (n = r.bracket.cssvar(e) ?? (e === "none" ? "" : void 0), n != null)
|
|
699
|
-
return [
|
|
700
|
-
{
|
|
701
|
-
"--un-drop-shadow": n && `drop-shadow(${n})`,
|
|
702
|
-
filter: q
|
|
703
|
-
},
|
|
704
|
-
...J
|
|
705
|
-
];
|
|
706
|
-
}
|
|
707
|
-
const Et = [
|
|
708
|
-
// filters
|
|
709
|
-
[/^(?:(backdrop-)|filter-)?blur(?:-(.+))?$/, k("blur", (e, t) => {
|
|
710
|
-
var n;
|
|
711
|
-
return ((n = t.blur) == null ? void 0 : n[e || "DEFAULT"]) || r.bracket.cssvar.px(e);
|
|
712
|
-
}), { autocomplete: ["(backdrop|filter)-blur-$blur", "blur-$blur", "filter-blur"] }],
|
|
713
|
-
[/^(?:(backdrop-)|filter-)?brightness-(.+)$/, k("brightness", (e) => r.bracket.cssvar.percent(e)), { autocomplete: ["(backdrop|filter)-brightness-<percent>", "brightness-<percent>"] }],
|
|
714
|
-
[/^(?:(backdrop-)|filter-)?contrast-(.+)$/, k("contrast", (e) => r.bracket.cssvar.percent(e)), { autocomplete: ["(backdrop|filter)-contrast-<percent>", "contrast-<percent>"] }],
|
|
715
|
-
// drop-shadow only on filter
|
|
716
|
-
[/^(?:filter-)?drop-shadow(?:-(.+))?$/, Ut, {
|
|
717
|
-
autocomplete: [
|
|
718
|
-
"filter-drop",
|
|
719
|
-
"filter-drop-shadow",
|
|
720
|
-
"filter-drop-shadow-color",
|
|
721
|
-
"drop-shadow",
|
|
722
|
-
"drop-shadow-color",
|
|
723
|
-
"filter-drop-shadow-$dropShadow",
|
|
724
|
-
"drop-shadow-$dropShadow",
|
|
725
|
-
"filter-drop-shadow-color-$colors",
|
|
726
|
-
"drop-shadow-color-$colors",
|
|
727
|
-
"filter-drop-shadow-color-(op|opacity)",
|
|
728
|
-
"drop-shadow-color-(op|opacity)",
|
|
729
|
-
"filter-drop-shadow-color-(op|opacity)-<percent>",
|
|
730
|
-
"drop-shadow-color-(op|opacity)-<percent>"
|
|
731
|
-
]
|
|
732
|
-
}],
|
|
733
|
-
[/^(?:filter-)?drop-shadow-color-(.+)$/, b("--un-drop-shadow-color", "drop-shadow")],
|
|
734
|
-
[/^(?:filter-)?drop-shadow-color-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-drop-shadow-opacity": r.bracket.percent(e) })],
|
|
735
|
-
[/^(?:(backdrop-)|filter-)?grayscale(?:-(.+))?$/, k("grayscale", G), { autocomplete: ["(backdrop|filter)-grayscale", "(backdrop|filter)-grayscale-<percent>", "grayscale-<percent>"] }],
|
|
736
|
-
[/^(?:(backdrop-)|filter-)?hue-rotate-(.+)$/, k("hue-rotate", (e) => r.bracket.cssvar.degree(e))],
|
|
737
|
-
[/^(?:(backdrop-)|filter-)?invert(?:-(.+))?$/, k("invert", G), { autocomplete: ["(backdrop|filter)-invert", "(backdrop|filter)-invert-<percent>", "invert-<percent>"] }],
|
|
738
|
-
// opacity only on backdrop-filter
|
|
739
|
-
[/^(backdrop-)op(?:acity)?-(.+)$/, k("opacity", (e) => r.bracket.cssvar.percent(e)), { autocomplete: ["backdrop-(op|opacity)", "backdrop-(op|opacity)-<percent>"] }],
|
|
740
|
-
[/^(?:(backdrop-)|filter-)?saturate-(.+)$/, k("saturate", (e) => r.bracket.cssvar.percent(e)), { autocomplete: ["(backdrop|filter)-saturate", "(backdrop|filter)-saturate-<percent>", "saturate-<percent>"] }],
|
|
741
|
-
[/^(?:(backdrop-)|filter-)?sepia(?:-(.+))?$/, k("sepia", G), { autocomplete: ["(backdrop|filter)-sepia", "(backdrop|filter)-sepia-<percent>", "sepia-<percent>"] }],
|
|
742
|
-
// base
|
|
743
|
-
["filter", { filter: q }],
|
|
744
|
-
["backdrop-filter", {
|
|
745
|
-
"-webkit-backdrop-filter": D,
|
|
746
|
-
"backdrop-filter": D
|
|
747
|
-
}],
|
|
748
|
-
// nones
|
|
749
|
-
["filter-none", { filter: "none" }],
|
|
750
|
-
["backdrop-filter-none", {
|
|
751
|
-
"-webkit-backdrop-filter": "none",
|
|
752
|
-
"backdrop-filter": "none"
|
|
753
|
-
}],
|
|
754
|
-
...f.map((e) => [`filter-${e}`, { filter: e }]),
|
|
755
|
-
...f.map((e) => [`backdrop-filter-${e}`, {
|
|
756
|
-
"-webkit-backdrop-filter": e,
|
|
757
|
-
"backdrop-filter": e
|
|
758
|
-
}])
|
|
759
|
-
], Tt = [
|
|
760
|
-
// display
|
|
761
|
-
["flex", { display: "flex" }],
|
|
762
|
-
["inline-flex", { display: "inline-flex" }],
|
|
763
|
-
["flex-inline", { display: "inline-flex" }],
|
|
764
|
-
// flex
|
|
765
|
-
[/^flex-(.*)$/, ([, e]) => ({ flex: r.bracket(e) != null ? r.bracket(e).split(" ").map((t) => r.cssvar.fraction(t) ?? t).join(" ") : r.cssvar.fraction(e) })],
|
|
766
|
-
["flex-1", { flex: "1 1 0%" }],
|
|
767
|
-
["flex-auto", { flex: "1 1 auto" }],
|
|
768
|
-
["flex-initial", { flex: "0 1 auto" }],
|
|
769
|
-
["flex-none", { flex: "none" }],
|
|
770
|
-
// shrink/grow/basis
|
|
771
|
-
[/^(?:flex-)?shrink(?:-(.*))?$/, ([, e = ""]) => ({ "flex-shrink": r.bracket.cssvar.number(e) ?? 1 }), { autocomplete: ["flex-shrink-<num>", "shrink-<num>"] }],
|
|
772
|
-
[/^(?:flex-)?grow(?:-(.*))?$/, ([, e = ""]) => ({ "flex-grow": r.bracket.cssvar.number(e) ?? 1 }), { autocomplete: ["flex-grow-<num>", "grow-<num>"] }],
|
|
773
|
-
[/^(?:flex-)?basis-(.+)$/, ([, e]) => {
|
|
774
|
-
const t = $(e);
|
|
775
|
-
return t != null ? (u("spacing"), { "flex-basis": `calc(var(--spacing) * ${t})` }) : { "flex-basis": r.bracket.cssvar.auto.fraction.rem(e) };
|
|
776
|
-
}, { autocomplete: ["flex-basis-$spacing", "basis-$spacing"] }],
|
|
777
|
-
// directions
|
|
778
|
-
["flex-row", { "flex-direction": "row" }],
|
|
779
|
-
["flex-row-reverse", { "flex-direction": "row-reverse" }],
|
|
780
|
-
["flex-col", { "flex-direction": "column" }],
|
|
781
|
-
["flex-col-reverse", { "flex-direction": "column-reverse" }],
|
|
782
|
-
// wraps
|
|
783
|
-
["flex-wrap", { "flex-wrap": "wrap" }],
|
|
784
|
-
["flex-wrap-reverse", { "flex-wrap": "wrap-reverse" }],
|
|
785
|
-
["flex-nowrap", { "flex-wrap": "nowrap" }]
|
|
786
|
-
], de = {
|
|
787
|
-
"": "",
|
|
788
|
-
x: "column-",
|
|
789
|
-
y: "row-",
|
|
790
|
-
col: "column-",
|
|
791
|
-
row: "row-"
|
|
792
|
-
};
|
|
793
|
-
function I([, e = "", t]) {
|
|
794
|
-
const n = $(t);
|
|
795
|
-
return n != null ? (u("spacing"), { [`${de[e]}gap`]: `calc(var(--spacing) * ${n})` }) : { [`${de[e]}gap`]: r.bracket.cssvar.global.rem(t) };
|
|
796
|
-
}
|
|
797
|
-
const Lt = [
|
|
798
|
-
[/^(?:flex-|grid-)?gap-?()(.+)$/, I, { autocomplete: ["gap-$spacing", "gap-<num>"] }],
|
|
799
|
-
[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/, I, { autocomplete: ["gap-(x|y)-$spacing", "gap-(x|y)-<num>"] }],
|
|
800
|
-
[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/, I, { autocomplete: ["gap-(col|row)-$spacing", "gap-(col|row)-<num>"] }]
|
|
801
|
-
];
|
|
802
|
-
function y(e) {
|
|
803
|
-
return e.replace("col", "column");
|
|
804
|
-
}
|
|
805
|
-
function Pt(e) {
|
|
806
|
-
switch (e) {
|
|
807
|
-
case "min":
|
|
808
|
-
return "min-content";
|
|
809
|
-
case "max":
|
|
810
|
-
return "max-content";
|
|
811
|
-
case "fr":
|
|
812
|
-
return "minmax(0,1fr)";
|
|
813
|
-
}
|
|
814
|
-
return r.bracket.cssvar.auto.rem(e);
|
|
815
|
-
}
|
|
816
|
-
const Ft = [
|
|
817
|
-
// displays
|
|
818
|
-
["grid", { display: "grid" }],
|
|
819
|
-
["inline-grid", { display: "inline-grid" }],
|
|
820
|
-
// global
|
|
821
|
-
[/^(?:grid-)?(row|col)-(.+)$/, ([, e, t]) => ({
|
|
822
|
-
[`grid-${y(e)}`]: r.bracket.number.cssvar.auto(t)
|
|
823
|
-
})],
|
|
824
|
-
// span
|
|
825
|
-
[/^(?:grid-)?(row|col)-span-(.+)$/, ([, e, t]) => {
|
|
826
|
-
if (t === "full")
|
|
827
|
-
return { [`grid-${y(e)}`]: "1/-1" };
|
|
828
|
-
const n = r.bracket.number.cssvar(t);
|
|
829
|
-
if (n != null)
|
|
830
|
-
return { [`grid-${y(e)}`]: `span ${n}/span ${n}` };
|
|
831
|
-
}, { autocomplete: "(grid-row|grid-col|row|col)-span-<num>" }],
|
|
832
|
-
// starts & ends
|
|
833
|
-
[/^(?:grid-)?(row|col)-start-(.+)$/, ([, e, t]) => ({ [`grid-${y(e)}-start`]: r.bracket.cssvar(t) ?? t })],
|
|
834
|
-
[/^(?:grid-)?(row|col)-end-(.+)$/, ([, e, t]) => ({ [`grid-${y(e)}-end`]: r.bracket.cssvar(t) ?? t }), { autocomplete: "(grid-row|grid-col|row|col)-(start|end)-<num>" }],
|
|
835
|
-
// auto flows
|
|
836
|
-
[/^(?:grid-)?auto-(rows|cols)-(.+)$/, ([, e, t]) => ({ [`grid-auto-${y(e)}`]: Pt(t) }), { autocomplete: "(grid-auto|auto)-(rows|cols)-<num>" }],
|
|
837
|
-
// grid-auto-flow, auto-flow: uno
|
|
838
|
-
// grid-flow: wind
|
|
839
|
-
[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/, ([, e]) => ({ "grid-auto-flow": r.bracket.cssvar(e) })],
|
|
840
|
-
[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/, ([, e]) => ({ "grid-auto-flow": y(e).replace("-", " ") }), { autocomplete: ["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"] }],
|
|
841
|
-
// templates
|
|
842
|
-
[/^(?:grid-)?(rows|cols)-(.+)$/, ([, e, t]) => ({
|
|
843
|
-
[`grid-template-${y(e)}`]: r.bracket.cssvar(t)
|
|
844
|
-
})],
|
|
845
|
-
[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/, ([, e, t]) => ({ [`grid-template-${y(e)}`]: `repeat(auto-fill,minmax(${t},1fr))` })],
|
|
846
|
-
[/^(?:grid-)?(rows|cols)-(\d+)$/, ([, e, t]) => ({ [`grid-template-${y(e)}`]: `repeat(${t},minmax(0,1fr))` }), { autocomplete: "(grid-rows|grid-cols|rows|cols)-<num>" }],
|
|
847
|
-
// areas
|
|
848
|
-
[/^grid-area(s)?-(.+)$/, ([, e, t]) => e != null ? { "grid-template-areas": r.cssvar(t) ?? t.split("-").map((n) => `"${r.bracket(n)}"`).join(" ") } : { "grid-area": r.bracket.cssvar(t) }],
|
|
849
|
-
// template none
|
|
850
|
-
["grid-rows-none", { "grid-template-rows": "none" }],
|
|
851
|
-
["grid-cols-none", { "grid-template-columns": "none" }],
|
|
852
|
-
// template subgrid
|
|
853
|
-
["grid-rows-subgrid", { "grid-template-rows": "subgrid" }],
|
|
854
|
-
["grid-cols-subgrid", { "grid-template-columns": "subgrid" }]
|
|
855
|
-
], P = [
|
|
856
|
-
"auto",
|
|
857
|
-
"hidden",
|
|
858
|
-
"clip",
|
|
859
|
-
"visible",
|
|
860
|
-
"scroll",
|
|
861
|
-
"overlay",
|
|
862
|
-
...f
|
|
863
|
-
], Mt = [
|
|
864
|
-
[/^(?:overflow|of)-(.+)$/, ([, e]) => P.includes(e) ? { overflow: e } : void 0, { autocomplete: [`(overflow|of)-(${P.join("|")})`, `(overflow|of)-(x|y)-(${P.join("|")})`] }],
|
|
865
|
-
[/^(?:overflow|of)-([xy])-(.+)$/, ([, e, t]) => P.includes(t) ? { [`overflow-${e}`]: t } : void 0]
|
|
866
|
-
], qt = [
|
|
867
|
-
[/^line-clamp-(\d+)$/, ([, e]) => ({
|
|
868
|
-
overflow: "hidden",
|
|
869
|
-
display: "-webkit-box",
|
|
870
|
-
"-webkit-box-orient": "vertical",
|
|
871
|
-
"-webkit-line-clamp": e
|
|
872
|
-
}), { autocomplete: ["line-clamp", "line-clamp-(1|2|3|4|5|6|none)"] }],
|
|
873
|
-
["line-clamp-none", {
|
|
874
|
-
overflow: "visible",
|
|
875
|
-
display: "block",
|
|
876
|
-
"-webkit-box-orient": "horizontal",
|
|
877
|
-
"-webkit-line-clamp": "unset"
|
|
878
|
-
}]
|
|
879
|
-
], Dt = [
|
|
880
|
-
// The prefix `$ ` is intentional. This rule is not to be matched directly from user-generated token.
|
|
881
|
-
// See variants/placeholder.
|
|
882
|
-
[/^\$ placeholder-(.+)$/, b("color", "placeholder"), { autocomplete: "placeholder-$colors" }],
|
|
883
|
-
[/^\$ placeholder-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-placeholder-opacity": r.bracket.percent(e) }), { autocomplete: ["placeholder-(op|opacity)", "placeholder-(op|opacity)-<percent>"] }]
|
|
884
|
-
], Bt = [
|
|
885
|
-
[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/, ([, e]) => ({ position: e }), {
|
|
886
|
-
autocomplete: [
|
|
887
|
-
"(position|pos)-<position>",
|
|
888
|
-
"(position|pos)-<globalKeyword>",
|
|
889
|
-
"<position>"
|
|
890
|
-
]
|
|
891
|
-
}],
|
|
892
|
-
[/^(?:position-|pos-)([-\w]+)$/, ([, e]) => f.includes(e) ? { position: e } : void 0],
|
|
893
|
-
[/^(?:position-|pos-)?(static)$/, ([, e]) => ({ position: e })]
|
|
894
|
-
], We = [
|
|
895
|
-
// contents
|
|
896
|
-
["justify-start", { "justify-content": "flex-start" }],
|
|
897
|
-
["justify-end", { "justify-content": "flex-end" }],
|
|
898
|
-
["justify-center", { "justify-content": "center" }],
|
|
899
|
-
["justify-between", { "justify-content": "space-between" }],
|
|
900
|
-
["justify-around", { "justify-content": "space-around" }],
|
|
901
|
-
["justify-evenly", { "justify-content": "space-evenly" }],
|
|
902
|
-
["justify-stretch", { "justify-content": "stretch" }],
|
|
903
|
-
["justify-left", { "justify-content": "left" }],
|
|
904
|
-
["justify-right", { "justify-content": "right" }],
|
|
905
|
-
["justify-center-safe", { "justify-content": "safe center" }],
|
|
906
|
-
["justify-end-safe", { "justify-content": "safe flex-end" }],
|
|
907
|
-
["justify-normal", { "justify-content": "normal" }],
|
|
908
|
-
...l("justify", "justify-content"),
|
|
909
|
-
// items
|
|
910
|
-
["justify-items-start", { "justify-items": "start" }],
|
|
911
|
-
["justify-items-end", { "justify-items": "end" }],
|
|
912
|
-
["justify-items-center", { "justify-items": "center" }],
|
|
913
|
-
["justify-items-stretch", { "justify-items": "stretch" }],
|
|
914
|
-
["justify-items-center-safe", { "justify-items": "safe center" }],
|
|
915
|
-
["justify-items-end-safe", { "justify-items": "safe flex-end" }],
|
|
916
|
-
...l("justify-items"),
|
|
917
|
-
// selfs
|
|
918
|
-
["justify-self-auto", { "justify-self": "auto" }],
|
|
919
|
-
["justify-self-start", { "justify-self": "start" }],
|
|
920
|
-
["justify-self-end", { "justify-self": "end" }],
|
|
921
|
-
["justify-self-center", { "justify-self": "center" }],
|
|
922
|
-
["justify-self-stretch", { "justify-self": "stretch" }],
|
|
923
|
-
["justify-self-baseline", { "justify-self": "baseline" }],
|
|
924
|
-
["justify-self-center-safe", { "justify-self": "safe center" }],
|
|
925
|
-
["justify-self-end-safe", { "justify-self": "safe flex-end" }],
|
|
926
|
-
...l("justify-self")
|
|
927
|
-
], _t = [
|
|
928
|
-
[/^order-(.+)$/, ([, e]) => ({ order: r.bracket.cssvar.number(e) })],
|
|
929
|
-
["order-first", { order: "calc(-infinity)" }],
|
|
930
|
-
["order-last", { order: "calc(infinity)" }],
|
|
931
|
-
["order-none", { order: "0" }]
|
|
932
|
-
], Ae = [
|
|
933
|
-
// contents
|
|
934
|
-
["content-center", { "align-content": "center" }],
|
|
935
|
-
["content-start", { "align-content": "flex-start" }],
|
|
936
|
-
["content-end", { "align-content": "flex-end" }],
|
|
937
|
-
["content-between", { "align-content": "space-between" }],
|
|
938
|
-
["content-around", { "align-content": "space-around" }],
|
|
939
|
-
["content-evenly", { "align-content": "space-evenly" }],
|
|
940
|
-
["content-baseline", { "align-content": "baseline" }],
|
|
941
|
-
["content-center-safe", { "align-content": "safe center" }],
|
|
942
|
-
["content-end-safe", { "align-content": "safe flex-end" }],
|
|
943
|
-
["content-stretch", { "align-content": "stretch" }],
|
|
944
|
-
["content-normal", { "align-content": "normal" }],
|
|
945
|
-
...l("content", "align-content"),
|
|
946
|
-
// items
|
|
947
|
-
["items-start", { "align-items": "flex-start" }],
|
|
948
|
-
["items-end", { "align-items": "flex-end" }],
|
|
949
|
-
["items-center", { "align-items": "center" }],
|
|
950
|
-
["items-baseline", { "align-items": "baseline" }],
|
|
951
|
-
["items-stretch", { "align-items": "stretch" }],
|
|
952
|
-
["items-baseline-last", { "align-items": "last baseline" }],
|
|
953
|
-
["items-center-safe", { "align-items": "safe center" }],
|
|
954
|
-
["items-end-safe", { "align-items": "safe flex-end" }],
|
|
955
|
-
...l("items", "align-items"),
|
|
956
|
-
// selfs
|
|
957
|
-
["self-auto", { "align-self": "auto" }],
|
|
958
|
-
["self-start", { "align-self": "flex-start" }],
|
|
959
|
-
["self-end", { "align-self": "flex-end" }],
|
|
960
|
-
["self-center", { "align-self": "center" }],
|
|
961
|
-
["self-stretch", { "align-self": "stretch" }],
|
|
962
|
-
["self-baseline", { "align-self": "baseline" }],
|
|
963
|
-
["self-baseline-last", { "align-self": "last baseline" }],
|
|
964
|
-
["self-center-safe", { "align-self": "safe center" }],
|
|
965
|
-
["self-end-safe", { "align-self": "safe flex-end" }],
|
|
966
|
-
...l("self", "align-self")
|
|
967
|
-
], Re = [
|
|
968
|
-
// contents
|
|
969
|
-
["place-content-center", { "place-content": "center" }],
|
|
970
|
-
["place-content-start", { "place-content": "start" }],
|
|
971
|
-
["place-content-end", { "place-content": "end" }],
|
|
972
|
-
["place-content-between", { "place-content": "space-between" }],
|
|
973
|
-
["place-content-around", { "place-content": "space-around" }],
|
|
974
|
-
["place-content-evenly", { "place-content": "space-evenly" }],
|
|
975
|
-
["place-content-stretch", { "place-content": "stretch" }],
|
|
976
|
-
["place-content-baseline", { "place-content": "baseline" }],
|
|
977
|
-
["place-content-center-safe", { "place-content": "safe center" }],
|
|
978
|
-
["place-content-end-safe", { "place-content": "safe flex-end" }],
|
|
979
|
-
...l("place-content"),
|
|
980
|
-
// items
|
|
981
|
-
["place-items-start", { "place-items": "start" }],
|
|
982
|
-
["place-items-end", { "place-items": "end" }],
|
|
983
|
-
["place-items-center", { "place-items": "center" }],
|
|
984
|
-
["place-items-stretch", { "place-items": "stretch" }],
|
|
985
|
-
["place-items-baseline", { "place-items": "baseline" }],
|
|
986
|
-
["place-items-center-safe", { "place-items": "safe center" }],
|
|
987
|
-
["place-items-end-safe", { "place-items": "safe flex-end" }],
|
|
988
|
-
...l("place-items"),
|
|
989
|
-
// selfs
|
|
990
|
-
["place-self-auto", { "place-self": "auto" }],
|
|
991
|
-
["place-self-start", { "place-self": "start" }],
|
|
992
|
-
["place-self-end", { "place-self": "end" }],
|
|
993
|
-
["place-self-center", { "place-self": "center" }],
|
|
994
|
-
["place-self-stretch", { "place-self": "stretch" }],
|
|
995
|
-
["place-self-center-safe", { "place-self": "safe center" }],
|
|
996
|
-
["place-self-end-safe", { "place-self": "safe flex-end" }],
|
|
997
|
-
...l("place-self")
|
|
998
|
-
], Gt = [...We, ...Ae, ...Re].flatMap(([e, t]) => [
|
|
999
|
-
[`flex-${e}`, t],
|
|
1000
|
-
[`grid-${e}`, t]
|
|
1001
|
-
]);
|
|
1002
|
-
function Z(e) {
|
|
1003
|
-
const t = $(e);
|
|
1004
|
-
return t != null ? (u("spacing"), `calc(var(--spacing) * ${t})`) : r.bracket.cssvar.global.auto.fraction.rem(e);
|
|
1005
|
-
}
|
|
1006
|
-
function U([, e, t]) {
|
|
1007
|
-
const n = Z(t);
|
|
1008
|
-
if (n != null && e in oe)
|
|
1009
|
-
return oe[e].map((o) => [o.slice(1), n]);
|
|
1010
|
-
}
|
|
1011
|
-
const It = [
|
|
1012
|
-
[
|
|
1013
|
-
/^(?:position-|pos-)?inset-(.+)$/,
|
|
1014
|
-
([, e]) => ({ inset: Z(e) }),
|
|
1015
|
-
{
|
|
1016
|
-
autocomplete: [
|
|
1017
|
-
"(position|pos)-inset-<directions>-$spacing",
|
|
1018
|
-
"(position|pos)-inset-(block|inline)-$spacing",
|
|
1019
|
-
"(position|pos)-inset-(bs|be|is|ie)-$spacing",
|
|
1020
|
-
"(position|pos)-(top|left|right|bottom)-$spacing"
|
|
1021
|
-
]
|
|
1022
|
-
}
|
|
1023
|
-
],
|
|
1024
|
-
[/^(?:position-|pos-)?(start|end)-(.+)$/, U],
|
|
1025
|
-
[/^(?:position-|pos-)?inset-([xy])-(.+)$/, U],
|
|
1026
|
-
[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/, U],
|
|
1027
|
-
[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/, U],
|
|
1028
|
-
[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/, U],
|
|
1029
|
-
[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/, ([, e, t]) => ({ [e]: Z(t) })]
|
|
1030
|
-
], Nt = [
|
|
1031
|
-
// floats
|
|
1032
|
-
["float-left", { float: "left" }],
|
|
1033
|
-
["float-right", { float: "right" }],
|
|
1034
|
-
["float-start", { float: "inline-start" }],
|
|
1035
|
-
["float-end", { float: "inline-end" }],
|
|
1036
|
-
["float-none", { float: "none" }],
|
|
1037
|
-
...l("float"),
|
|
1038
|
-
// clears
|
|
1039
|
-
["clear-left", { clear: "left" }],
|
|
1040
|
-
["clear-right", { clear: "right" }],
|
|
1041
|
-
["clear-both", { clear: "both" }],
|
|
1042
|
-
["clear-start", { clear: "inline-start" }],
|
|
1043
|
-
["clear-end", { clear: "inline-end" }],
|
|
1044
|
-
["clear-none", { clear: "none" }],
|
|
1045
|
-
...l("clear")
|
|
1046
|
-
], Ht = [
|
|
1047
|
-
[/^(?:position-|pos-)?z([\d.]+)$/, ([, e]) => ({ "z-index": r.number(e) })],
|
|
1048
|
-
[/^(?:position-|pos-)?z-(.+)$/, ([, e]) => ({ "z-index": r.bracket.cssvar.global.auto.number(e) }), { autocomplete: "z-<num>" }]
|
|
1049
|
-
], Kt = [
|
|
1050
|
-
["box-border", { "box-sizing": "border-box" }],
|
|
1051
|
-
["box-content", { "box-sizing": "content-box" }],
|
|
1052
|
-
...l("box", "box-sizing")
|
|
1053
|
-
], Jt = [
|
|
1054
|
-
[
|
|
1055
|
-
/^(where|\?)$/,
|
|
1056
|
-
(e, { constructCSS: t, generator: n }) => {
|
|
1057
|
-
if (n.userConfig.envMode === "dev")
|
|
1058
|
-
return `@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}} ${t({ animation: "__un_qm 0.5s ease-in-out alternate infinite" })}`;
|
|
1059
|
-
}
|
|
1060
|
-
]
|
|
1061
|
-
], X = {
|
|
1062
|
-
shadow: s("--un-shadow", { initialValue: "0 0 #0000" }),
|
|
1063
|
-
shadowColor: s("--un-shadow-color"),
|
|
1064
|
-
insetShadow: s("--un-inset-shadow", { initialValue: "0 0 #0000" }),
|
|
1065
|
-
insetShadowColor: s("--un-inset-shadow-color"),
|
|
1066
|
-
ringColor: s("--un-ring-color"),
|
|
1067
|
-
ringShadow: s("--un-ring-shadow", { initialValue: "0 0 #0000" }),
|
|
1068
|
-
insetRingColor: s("--un-inset-ring-color"),
|
|
1069
|
-
insetRingShadow: s("--un-inset-ring-shadow", { initialValue: "0 0 #0000" }),
|
|
1070
|
-
ringInset: s("--un-ring-inset"),
|
|
1071
|
-
ringOffsetWidth: s("--un-ring-offset-width", { syntax: "<length>", initialValue: "0px" }),
|
|
1072
|
-
ringOffsetColor: s("--un-ring-offset-color"),
|
|
1073
|
-
ringOffsetShadow: s("--un-ring-offset-shadow", { initialValue: "0 0 #0000" })
|
|
1074
|
-
}, Zt = [
|
|
1075
|
-
// shadow
|
|
1076
|
-
[/^shadow(?:-(.+))?$/, pe("shadow"), { autocomplete: ["shadow-$colors", "shadow-$shadow"] }],
|
|
1077
|
-
[/^shadow-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-shadow-opacity": r.bracket.percent.cssvar(e) }), { autocomplete: "shadow-(op|opacity)-<percent>" }],
|
|
1078
|
-
// inset shadow
|
|
1079
|
-
[/^inset-shadow(?:-(.+))?$/, pe("insetShadow"), { autocomplete: ["inset-shadow-$colors", "inset-shadow-$insetShadow"] }],
|
|
1080
|
-
[/^inset-shadow-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-inset-shadow-opacity": r.bracket.percent.cssvar(e) }), { autocomplete: "shadow-(op|opacity)-<percent>" }]
|
|
1081
|
-
];
|
|
1082
|
-
function pe(e) {
|
|
1083
|
-
return (t, n) => {
|
|
1084
|
-
var g;
|
|
1085
|
-
const [, o] = t, { theme: a } = n, i = (g = a[e]) == null ? void 0 : g[o || "DEFAULT"], c = o ? r.bracket.cssvar(o) : void 0, m = De(e);
|
|
1086
|
-
return (i != null || c != null) && !$e(c, a) ? [
|
|
1087
|
-
{
|
|
1088
|
-
[`--un-${m}`]: Y(i || c, `--un-${m}-color`).join(","),
|
|
1089
|
-
"box-shadow": "var(--un-inset-shadow), var(--un-inset-ring-shadow), var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"
|
|
1090
|
-
},
|
|
1091
|
-
...Object.values(X)
|
|
1092
|
-
] : b(`--un-${m}-color`, m)(t, n);
|
|
1093
|
-
};
|
|
1094
|
-
}
|
|
1095
|
-
const Xt = [
|
|
1096
|
-
// ring
|
|
1097
|
-
[/^ring(?:-(.+))?$/, ([, e]) => {
|
|
1098
|
-
const t = r.bracket.px(e || "1");
|
|
1099
|
-
if (t != null)
|
|
1100
|
-
return [
|
|
1101
|
-
{
|
|
1102
|
-
"--un-ring-shadow": `var(--un-ring-inset,) 0 0 0 calc(${t} + var(--un-ring-offset-width)) var(--un-ring-color, currentColor)`,
|
|
1103
|
-
"box-shadow": "var(--un-inset-shadow), var(--un-inset-ring-shadow), var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"
|
|
1104
|
-
},
|
|
1105
|
-
...Object.values(X)
|
|
1106
|
-
];
|
|
1107
|
-
}],
|
|
1108
|
-
[/^ring-(.+)$/, b("--un-ring-color", "ring"), { autocomplete: "ring-$colors" }],
|
|
1109
|
-
[/^ring-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-ring-opacity": r.bracket.percent.cssvar(e) }), { autocomplete: "ring-(op|opacity)-<percent>" }],
|
|
1110
|
-
// inset ring
|
|
1111
|
-
[/^inset-ring(?:-(.+))?$/, ([, e]) => {
|
|
1112
|
-
const t = r.bracket.px(e || "1");
|
|
1113
|
-
if (t != null)
|
|
1114
|
-
return [
|
|
1115
|
-
{
|
|
1116
|
-
"--un-inset-ring-shadow": `inset 0 0 0 ${t} var(--un-inset-ring-color, currentColor)`,
|
|
1117
|
-
"box-shadow": "var(--un-inset-shadow), var(--un-inset-ring-shadow), var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"
|
|
1118
|
-
},
|
|
1119
|
-
...Object.values(X)
|
|
1120
|
-
];
|
|
1121
|
-
}],
|
|
1122
|
-
[/^inset-ring-(.+)$/, b("--un-inset-ring-color", "inset-ring"), { autocomplete: "inset-ring-$colors" }],
|
|
1123
|
-
[/^inset-ring-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-inset-ring-opacity": r.bracket.percent.cssvar(e) }), { autocomplete: "inset-ring-(op|opacity)-<percent>" }],
|
|
1124
|
-
// offset
|
|
1125
|
-
[/^ring-offset(?:-(?:width-|size-)?(.+))?$/, ([, e]) => {
|
|
1126
|
-
const t = r.bracket.cssvar.px(e || "1");
|
|
1127
|
-
if (t != null)
|
|
1128
|
-
return {
|
|
1129
|
-
"--un-ring-offset-width": t,
|
|
1130
|
-
"--un-ring-offset-shadow": "var(--un-ring-inset,) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)"
|
|
1131
|
-
};
|
|
1132
|
-
}, { autocomplete: "ring-offset-$colors" }],
|
|
1133
|
-
[/^ring-offset-(.+)$/, b("--un-ring-offset-color", "ring-offset"), { autocomplete: "ring-offset-$colors" }],
|
|
1134
|
-
[/^ring-offset-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-ring-offset-opacity": r.bracket.percent.cssvar(e) }), { autocomplete: "ring-offset-(op|opacity)-<percent>" }],
|
|
1135
|
-
// style
|
|
1136
|
-
["ring-inset", { "--un-ring-inset": "inset" }]
|
|
1137
|
-
], Yt = [
|
|
1138
|
-
...["x", "y", "both"].map((e) => [
|
|
1139
|
-
`snap-${e}`,
|
|
1140
|
-
[
|
|
1141
|
-
{ "scroll-snap-type": `${e} var(--un-scroll-snap-strictness)` },
|
|
1142
|
-
s("--un-scroll-snap-strictness", { initialValue: "proximity" })
|
|
1143
|
-
]
|
|
1144
|
-
]),
|
|
1145
|
-
...["mandatory", "proximity"].map((e) => [
|
|
1146
|
-
`snap-${e}`,
|
|
1147
|
-
[
|
|
1148
|
-
{ "--un-scroll-snap-strictness": e },
|
|
1149
|
-
s("--un-scroll-snap-strictness", { initialValue: "proximity" })
|
|
1150
|
-
]
|
|
1151
|
-
]),
|
|
1152
|
-
["snap-none", { "scroll-snap-type": "none" }],
|
|
1153
|
-
// snap align
|
|
1154
|
-
["snap-start", { "scroll-snap-align": "start" }],
|
|
1155
|
-
["snap-end", { "scroll-snap-align": "end" }],
|
|
1156
|
-
["snap-center", { "scroll-snap-align": "center" }],
|
|
1157
|
-
["snap-align-none", { "scroll-snap-align": "none" }],
|
|
1158
|
-
// snap stop
|
|
1159
|
-
["snap-normal", { "scroll-snap-stop": "normal" }],
|
|
1160
|
-
["snap-always", { "scroll-snap-stop": "always" }],
|
|
1161
|
-
// scroll margin
|
|
1162
|
-
[/^scroll-ma?()-?(.+)$/, d("scroll-margin"), {
|
|
1163
|
-
autocomplete: [
|
|
1164
|
-
"scroll-(m|p|ma|pa|block|inline)",
|
|
1165
|
-
"scroll-(m|p|ma|pa|block|inline)-$spacing",
|
|
1166
|
-
"scroll-(m|p|ma|pa|block|inline)-(x|y|r|l|t|b|bs|be|is|ie)",
|
|
1167
|
-
"scroll-(m|p|ma|pa|block|inline)-(x|y|r|l|t|b|bs|be|is|ie)-$spacing"
|
|
1168
|
-
]
|
|
1169
|
-
}],
|
|
1170
|
-
[/^scroll-m-?([xy])-?(.+)$/, d("scroll-margin")],
|
|
1171
|
-
[/^scroll-m-?([rltb])-?(.+)$/, d("scroll-margin")],
|
|
1172
|
-
[/^scroll-m-(block|inline)-(.+)$/, d("scroll-margin")],
|
|
1173
|
-
[/^scroll-m-?([bi][se])-?(.+)$/, d("scroll-margin")],
|
|
1174
|
-
// scroll padding
|
|
1175
|
-
[/^scroll-pa?()-?(.+)$/, d("scroll-padding")],
|
|
1176
|
-
[/^scroll-p-?([xy])-?(.+)$/, d("scroll-padding")],
|
|
1177
|
-
[/^scroll-p-?([rltb])-?(.+)$/, d("scroll-padding")],
|
|
1178
|
-
[/^scroll-p-(block|inline)-(.+)$/, d("scroll-padding")],
|
|
1179
|
-
[/^scroll-p-?([bi][se])-?(.+)$/, d("scroll-padding")]
|
|
1180
|
-
], Qt = {
|
|
1181
|
-
h: "height",
|
|
1182
|
-
w: "width",
|
|
1183
|
-
inline: "inline-size",
|
|
1184
|
-
block: "block-size"
|
|
1185
|
-
};
|
|
1186
|
-
function O(e, t) {
|
|
1187
|
-
return `${e || ""}${Qt[t]}`;
|
|
1188
|
-
}
|
|
1189
|
-
function F(e, t, n) {
|
|
1190
|
-
var i;
|
|
1191
|
-
let o;
|
|
1192
|
-
const a = ["container", "spacing"];
|
|
1193
|
-
for (const c of a)
|
|
1194
|
-
if ((i = e[c]) != null && i[n]) {
|
|
1195
|
-
u(c, n), o = p(c, n);
|
|
1196
|
-
break;
|
|
1197
|
-
}
|
|
1198
|
-
if (!o)
|
|
1199
|
-
switch (n) {
|
|
1200
|
-
case "fit":
|
|
1201
|
-
case "max":
|
|
1202
|
-
case "min":
|
|
1203
|
-
o = `${n}-content`;
|
|
1204
|
-
break;
|
|
1205
|
-
case "screen":
|
|
1206
|
-
o = t === "w" ? "100vw" : "100vh";
|
|
1207
|
-
break;
|
|
1208
|
-
}
|
|
1209
|
-
return !o && r.number(n) != null && (u("spacing"), o = `calc(var(--spacing) * ${r.number(n)})`), o ?? r.bracket.cssvar.global.auto.none.fraction.rem(n);
|
|
1210
|
-
}
|
|
1211
|
-
const en = [
|
|
1212
|
-
[/^size-(min-|max-)?(.+)$/, ([, e, t], { theme: n }) => ({
|
|
1213
|
-
[O(e, "w")]: F(n, "w", t),
|
|
1214
|
-
[O(e, "h")]: F(n, "h", t)
|
|
1215
|
-
})],
|
|
1216
|
-
[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/, ([, e, t, n], { theme: o }) => ({ [O(e, t)]: F(o, t, n) })],
|
|
1217
|
-
[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/, ([, e, t, n], { theme: o }) => ({ [O(e, t)]: F(o, t, n) }), {
|
|
1218
|
-
autocomplete: [
|
|
1219
|
-
"(w|h)-<num>",
|
|
1220
|
-
"(w|h)-(full|screen|fit|max|min)",
|
|
1221
|
-
"(max|min)-(w|h)-<num>",
|
|
1222
|
-
"(max|min)-(w|h)-(full|screen|fit|max|min)",
|
|
1223
|
-
"(block|inline)-<num>",
|
|
1224
|
-
"(block|inline)-(full|screen|fit|max|min)",
|
|
1225
|
-
"(max|min)-(w|h|block|inline)",
|
|
1226
|
-
"(max|min)-(w|h|block|inline)-<num>",
|
|
1227
|
-
"(max|min)-(w|h|block|inline)-(full|screen|fit|max|min)"
|
|
1228
|
-
]
|
|
1229
|
-
}],
|
|
1230
|
-
[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/, ([, e, t, n], o) => ({ [O(e, t)]: be(o, n, "verticalBreakpoint") })],
|
|
1231
|
-
[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/, ([, e, t, n], o) => ({ [O(e, t)]: be(o, n) }), {
|
|
1232
|
-
autocomplete: [
|
|
1233
|
-
"(w|h)-screen",
|
|
1234
|
-
"(min|max)-(w|h)-screen",
|
|
1235
|
-
"h-screen-$breakpoint",
|
|
1236
|
-
"(min|max)-h-screen-$breakpoint",
|
|
1237
|
-
"w-screen-$breakpoint",
|
|
1238
|
-
"(min|max)-w-screen-$breakpoint"
|
|
1239
|
-
]
|
|
1240
|
-
}]
|
|
1241
|
-
];
|
|
1242
|
-
function be(e, t, n = "breakpoint") {
|
|
1243
|
-
var a;
|
|
1244
|
-
const o = qe(e, n);
|
|
1245
|
-
if (o)
|
|
1246
|
-
return (a = o.find((i) => i.point === t)) == null ? void 0 : a.size;
|
|
1247
|
-
}
|
|
1248
|
-
function tn(e) {
|
|
1249
|
-
if (/^\d+\/\d+$/.test(e))
|
|
1250
|
-
return e;
|
|
1251
|
-
switch (e) {
|
|
1252
|
-
case "square":
|
|
1253
|
-
return "1/1";
|
|
1254
|
-
case "video":
|
|
1255
|
-
return "16/9";
|
|
1256
|
-
}
|
|
1257
|
-
return r.bracket.cssvar.global.auto.number(e);
|
|
1258
|
-
}
|
|
1259
|
-
const nn = [
|
|
1260
|
-
[/^(?:size-)?aspect-(?:ratio-)?(.+)$/, ([, e]) => ({ "aspect-ratio": tn(e) }), { autocomplete: ["aspect-(square|video|ratio)", "aspect-ratio-(square|video)"] }]
|
|
1261
|
-
], on = ["auto", "default", "none", "context-menu", "help", "pointer", "progress", "wait", "cell", "crosshair", "text", "vertical-text", "alias", "copy", "move", "no-drop", "not-allowed", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out"], N = ["size", "layout", "paint", "style"], rn = [
|
|
1262
|
-
["inline", { display: "inline" }],
|
|
1263
|
-
["block", { display: "block" }],
|
|
1264
|
-
["inline-block", { display: "inline-block" }],
|
|
1265
|
-
["contents", { display: "contents" }],
|
|
1266
|
-
["flow-root", { display: "flow-root" }],
|
|
1267
|
-
["list-item", { display: "list-item" }],
|
|
1268
|
-
["hidden", { display: "none" }],
|
|
1269
|
-
[/^display-(.+)$/, ([, e]) => ({ display: r.bracket.cssvar.global(e) })]
|
|
1270
|
-
], an = [
|
|
1271
|
-
["visible", { visibility: "visible" }],
|
|
1272
|
-
["invisible", { visibility: "hidden" }],
|
|
1273
|
-
["collapse", { visibility: "collapse" }],
|
|
1274
|
-
["backface-visible", { "backface-visibility": "visible" }],
|
|
1275
|
-
["backface-hidden", { "backface-visibility": "hidden" }],
|
|
1276
|
-
...l("backface", "backface-visibility")
|
|
1277
|
-
], sn = [
|
|
1278
|
-
[/^cursor-(.+)$/, ([, e]) => ({ cursor: r.bracket.cssvar.global(e) })],
|
|
1279
|
-
...on.map((e) => [`cursor-${e}`, { cursor: e }])
|
|
1280
|
-
], ln = [
|
|
1281
|
-
[/^contain-(.*)$/, ([, e]) => r.bracket(e) != null ? {
|
|
1282
|
-
contain: r.bracket(e).split(" ").map((t) => r.cssvar.fraction(t) ?? t).join(" ")
|
|
1283
|
-
} : N.includes(e) ? [
|
|
1284
|
-
{
|
|
1285
|
-
"--un-contain-size": e,
|
|
1286
|
-
contain: N.map((t) => `var(--un-contain-${t})`).join(" ")
|
|
1287
|
-
},
|
|
1288
|
-
...N.map((t) => s(`--un-contain-${t}`))
|
|
1289
|
-
] : void 0],
|
|
1290
|
-
["contain-strict", { contain: "strict" }],
|
|
1291
|
-
["contain-content", { contain: "content" }],
|
|
1292
|
-
["contain-none", { contain: "none" }]
|
|
1293
|
-
], cn = [
|
|
1294
|
-
["pointer-events-auto", { "pointer-events": "auto" }],
|
|
1295
|
-
["pointer-events-none", { "pointer-events": "none" }],
|
|
1296
|
-
...l("pointer-events")
|
|
1297
|
-
], un = [
|
|
1298
|
-
["resize-x", { resize: "horizontal" }],
|
|
1299
|
-
["resize-y", { resize: "vertical" }],
|
|
1300
|
-
["resize", { resize: "both" }],
|
|
1301
|
-
["resize-none", { resize: "none" }],
|
|
1302
|
-
...l("resize")
|
|
1303
|
-
], dn = [
|
|
1304
|
-
["select-auto", { "-webkit-user-select": "auto", "user-select": "auto" }],
|
|
1305
|
-
["select-all", { "-webkit-user-select": "all", "user-select": "all" }],
|
|
1306
|
-
["select-text", { "-webkit-user-select": "text", "user-select": "text" }],
|
|
1307
|
-
["select-none", { "-webkit-user-select": "none", "user-select": "none" }],
|
|
1308
|
-
...l("select", "user-select")
|
|
1309
|
-
], pn = [
|
|
1310
|
-
[
|
|
1311
|
-
/^(?:whitespace-|ws-)([-\w]+)$/,
|
|
1312
|
-
([, e]) => ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces", ...f].includes(e) ? { "white-space": e } : void 0,
|
|
1313
|
-
{ autocomplete: "(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)" }
|
|
1314
|
-
]
|
|
1315
|
-
], bn = [
|
|
1316
|
-
[/^intrinsic-size-(.+)$/, ([, e]) => ({ "contain-intrinsic-size": r.bracket.cssvar.global.fraction.rem(e) }), { autocomplete: "intrinsic-size-<num>" }],
|
|
1317
|
-
["content-visibility-visible", { "content-visibility": "visible" }],
|
|
1318
|
-
["content-visibility-hidden", { "content-visibility": "hidden" }],
|
|
1319
|
-
["content-visibility-auto", { "content-visibility": "auto" }],
|
|
1320
|
-
...l("content-visibility")
|
|
1321
|
-
], fn = [
|
|
1322
|
-
[/^content-(.+)$/, ([, e]) => {
|
|
1323
|
-
if (r.bracket.cssvar(e) != null)
|
|
1324
|
-
return [
|
|
1325
|
-
{
|
|
1326
|
-
"--un-content": r.bracket.cssvar(e),
|
|
1327
|
-
content: "var(--un-content)"
|
|
1328
|
-
},
|
|
1329
|
-
s("--un-content", { initialValue: '""' })
|
|
1330
|
-
];
|
|
1331
|
-
}],
|
|
1332
|
-
["content-empty", { content: '""' }],
|
|
1333
|
-
["content-none", { content: "none" }]
|
|
1334
|
-
], mn = [
|
|
1335
|
-
["break-normal", { "overflow-wrap": "normal", "word-break": "normal" }],
|
|
1336
|
-
["break-words", { "overflow-wrap": "break-word" }],
|
|
1337
|
-
["break-all", { "word-break": "break-all" }],
|
|
1338
|
-
["break-keep", { "word-break": "keep-all" }],
|
|
1339
|
-
["break-anywhere", { "overflow-wrap": "anywhere" }]
|
|
1340
|
-
], gn = [
|
|
1341
|
-
["text-wrap", { "text-wrap": "wrap" }],
|
|
1342
|
-
["text-nowrap", { "text-wrap": "nowrap" }],
|
|
1343
|
-
["text-balance", { "text-wrap": "balance" }],
|
|
1344
|
-
["text-pretty", { "text-wrap": "pretty" }]
|
|
1345
|
-
], hn = [
|
|
1346
|
-
["truncate", { overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }],
|
|
1347
|
-
["text-truncate", { overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }],
|
|
1348
|
-
["text-ellipsis", { "text-overflow": "ellipsis" }],
|
|
1349
|
-
["text-clip", { "text-overflow": "clip" }]
|
|
1350
|
-
], vn = [
|
|
1351
|
-
["case-upper", { "text-transform": "uppercase" }],
|
|
1352
|
-
["case-lower", { "text-transform": "lowercase" }],
|
|
1353
|
-
["case-capital", { "text-transform": "capitalize" }],
|
|
1354
|
-
["case-normal", { "text-transform": "none" }],
|
|
1355
|
-
["uppercase", { "text-transform": "uppercase" }],
|
|
1356
|
-
["lowercase", { "text-transform": "lowercase" }],
|
|
1357
|
-
["capitalize", { "text-transform": "capitalize" }],
|
|
1358
|
-
["normal-case", { "text-transform": "none" }],
|
|
1359
|
-
...l("case", "text-transform")
|
|
1360
|
-
], yn = [
|
|
1361
|
-
["italic", { "font-style": "italic" }],
|
|
1362
|
-
["not-italic", { "font-style": "normal" }],
|
|
1363
|
-
["font-italic", { "font-style": "italic" }],
|
|
1364
|
-
["font-not-italic", { "font-style": "normal" }],
|
|
1365
|
-
["oblique", { "font-style": "oblique" }],
|
|
1366
|
-
["not-oblique", { "font-style": "normal" }],
|
|
1367
|
-
["font-oblique", { "font-style": "oblique" }],
|
|
1368
|
-
["font-not-oblique", { "font-style": "normal" }]
|
|
1369
|
-
], kn = [
|
|
1370
|
-
["antialiased", {
|
|
1371
|
-
"-webkit-font-smoothing": "antialiased",
|
|
1372
|
-
"-moz-osx-font-smoothing": "grayscale"
|
|
1373
|
-
}],
|
|
1374
|
-
["subpixel-antialiased", {
|
|
1375
|
-
"-webkit-font-smoothing": "auto",
|
|
1376
|
-
"-moz-osx-font-smoothing": "auto"
|
|
1377
|
-
}]
|
|
1378
|
-
], $n = [
|
|
1379
|
-
...["manual", "auto", "none", ...f].map((e) => [`hyphens-${e}`, {
|
|
1380
|
-
"-webkit-hyphens": e,
|
|
1381
|
-
"-ms-hyphens": e,
|
|
1382
|
-
hyphens: e
|
|
1383
|
-
}])
|
|
1384
|
-
], xn = [
|
|
1385
|
-
["write-vertical-right", { "writing-mode": "vertical-rl" }],
|
|
1386
|
-
["write-vertical-left", { "writing-mode": "vertical-lr" }],
|
|
1387
|
-
["write-normal", { "writing-mode": "horizontal-tb" }],
|
|
1388
|
-
...l("write", "writing-mode")
|
|
1389
|
-
], wn = [
|
|
1390
|
-
["write-orient-mixed", { "text-orientation": "mixed" }],
|
|
1391
|
-
["write-orient-sideways", { "text-orientation": "sideways" }],
|
|
1392
|
-
["write-orient-upright", { "text-orientation": "upright" }],
|
|
1393
|
-
...l("write-orient", "text-orientation")
|
|
1394
|
-
], jn = [
|
|
1395
|
-
[
|
|
1396
|
-
"sr-only",
|
|
1397
|
-
{
|
|
1398
|
-
position: "absolute",
|
|
1399
|
-
width: "1px",
|
|
1400
|
-
height: "1px",
|
|
1401
|
-
padding: "0",
|
|
1402
|
-
margin: "-1px",
|
|
1403
|
-
overflow: "hidden",
|
|
1404
|
-
clip: "rect(0,0,0,0)",
|
|
1405
|
-
"white-space": "nowrap",
|
|
1406
|
-
"border-width": 0
|
|
1407
|
-
}
|
|
1408
|
-
],
|
|
1409
|
-
[
|
|
1410
|
-
"not-sr-only",
|
|
1411
|
-
{
|
|
1412
|
-
position: "static",
|
|
1413
|
-
width: "auto",
|
|
1414
|
-
height: "auto",
|
|
1415
|
-
padding: "0",
|
|
1416
|
-
margin: "0",
|
|
1417
|
-
overflow: "visible",
|
|
1418
|
-
clip: "auto",
|
|
1419
|
-
"white-space": "normal"
|
|
1420
|
-
}
|
|
1421
|
-
]
|
|
1422
|
-
], zn = [
|
|
1423
|
-
["isolate", { isolation: "isolate" }],
|
|
1424
|
-
["isolate-auto", { isolation: "auto" }],
|
|
1425
|
-
["isolation-auto", { isolation: "auto" }]
|
|
1426
|
-
], Sn = [
|
|
1427
|
-
// object fit
|
|
1428
|
-
["object-cover", { "object-fit": "cover" }],
|
|
1429
|
-
["object-contain", { "object-fit": "contain" }],
|
|
1430
|
-
["object-fill", { "object-fit": "fill" }],
|
|
1431
|
-
["object-scale-down", { "object-fit": "scale-down" }],
|
|
1432
|
-
["object-none", { "object-fit": "none" }],
|
|
1433
|
-
// object position
|
|
1434
|
-
[/^object-(.+)$/, ([, e]) => {
|
|
1435
|
-
if (v[e])
|
|
1436
|
-
return { "object-position": v[e] };
|
|
1437
|
-
if (r.bracketOfPosition(e) != null)
|
|
1438
|
-
return { "object-position": r.bracketOfPosition(e).split(" ").map((t) => r.position.fraction.auto.px.cssvar(t) ?? t).join(" ") };
|
|
1439
|
-
}, { autocomplete: `object-(${Object.keys(v).join("|")})` }]
|
|
1440
|
-
], Vn = [
|
|
1441
|
-
["bg-blend-multiply", { "background-blend-mode": "multiply" }],
|
|
1442
|
-
["bg-blend-screen", { "background-blend-mode": "screen" }],
|
|
1443
|
-
["bg-blend-overlay", { "background-blend-mode": "overlay" }],
|
|
1444
|
-
["bg-blend-darken", { "background-blend-mode": "darken" }],
|
|
1445
|
-
["bg-blend-lighten", { "background-blend-mode": "lighten" }],
|
|
1446
|
-
["bg-blend-color-dodge", { "background-blend-mode": "color-dodge" }],
|
|
1447
|
-
["bg-blend-color-burn", { "background-blend-mode": "color-burn" }],
|
|
1448
|
-
["bg-blend-hard-light", { "background-blend-mode": "hard-light" }],
|
|
1449
|
-
["bg-blend-soft-light", { "background-blend-mode": "soft-light" }],
|
|
1450
|
-
["bg-blend-difference", { "background-blend-mode": "difference" }],
|
|
1451
|
-
["bg-blend-exclusion", { "background-blend-mode": "exclusion" }],
|
|
1452
|
-
["bg-blend-hue", { "background-blend-mode": "hue" }],
|
|
1453
|
-
["bg-blend-saturation", { "background-blend-mode": "saturation" }],
|
|
1454
|
-
["bg-blend-color", { "background-blend-mode": "color" }],
|
|
1455
|
-
["bg-blend-luminosity", { "background-blend-mode": "luminosity" }],
|
|
1456
|
-
["bg-blend-normal", { "background-blend-mode": "normal" }],
|
|
1457
|
-
...l("bg-blend", "background-blend")
|
|
1458
|
-
], On = [
|
|
1459
|
-
["mix-blend-multiply", { "mix-blend-mode": "multiply" }],
|
|
1460
|
-
["mix-blend-screen", { "mix-blend-mode": "screen" }],
|
|
1461
|
-
["mix-blend-overlay", { "mix-blend-mode": "overlay" }],
|
|
1462
|
-
["mix-blend-darken", { "mix-blend-mode": "darken" }],
|
|
1463
|
-
["mix-blend-lighten", { "mix-blend-mode": "lighten" }],
|
|
1464
|
-
["mix-blend-color-dodge", { "mix-blend-mode": "color-dodge" }],
|
|
1465
|
-
["mix-blend-color-burn", { "mix-blend-mode": "color-burn" }],
|
|
1466
|
-
["mix-blend-hard-light", { "mix-blend-mode": "hard-light" }],
|
|
1467
|
-
["mix-blend-soft-light", { "mix-blend-mode": "soft-light" }],
|
|
1468
|
-
["mix-blend-difference", { "mix-blend-mode": "difference" }],
|
|
1469
|
-
["mix-blend-exclusion", { "mix-blend-mode": "exclusion" }],
|
|
1470
|
-
["mix-blend-hue", { "mix-blend-mode": "hue" }],
|
|
1471
|
-
["mix-blend-saturation", { "mix-blend-mode": "saturation" }],
|
|
1472
|
-
["mix-blend-color", { "mix-blend-mode": "color" }],
|
|
1473
|
-
["mix-blend-luminosity", { "mix-blend-mode": "luminosity" }],
|
|
1474
|
-
["mix-blend-plus-lighter", { "mix-blend-mode": "plus-lighter" }],
|
|
1475
|
-
["mix-blend-normal", { "mix-blend-mode": "normal" }],
|
|
1476
|
-
...l("mix-blend")
|
|
1477
|
-
], Cn = [
|
|
1478
|
-
["min-h-dvh", { "min-height": "100dvh" }],
|
|
1479
|
-
["min-h-svh", { "min-height": "100svh" }],
|
|
1480
|
-
["min-h-lvh", { "min-height": "100lvh" }],
|
|
1481
|
-
["h-dvh", { height: "100dvh" }],
|
|
1482
|
-
["h-svh", { height: "100svh" }],
|
|
1483
|
-
["h-lvh", { height: "100lvh" }],
|
|
1484
|
-
["max-h-dvh", { "max-height": "100dvh" }],
|
|
1485
|
-
["max-h-svh", { "max-height": "100svh" }],
|
|
1486
|
-
["max-h-lvh", { "max-height": "100lvh" }]
|
|
1487
|
-
], Wn = [
|
|
1488
|
-
["forced-color-adjust-auto", { "forced-color-adjust": "auto" }],
|
|
1489
|
-
["forced-color-adjust-none", { "forced-color-adjust": "none" }]
|
|
1490
|
-
], An = [
|
|
1491
|
-
["field-sizing-fixed", { "field-sizing": "fixed" }],
|
|
1492
|
-
["field-sizing-content", { "field-sizing": "content" }]
|
|
1493
|
-
], Rn = [
|
|
1494
|
-
// fills
|
|
1495
|
-
[/^fill-(.+)$/, b("fill", "fill"), { autocomplete: "fill-$colors" }],
|
|
1496
|
-
[/^fill-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-fill-opacity": r.bracket.percent.cssvar(e) }), { autocomplete: "fill-(op|opacity)-<percent>" }],
|
|
1497
|
-
["fill-none", { fill: "none" }],
|
|
1498
|
-
// stroke size
|
|
1499
|
-
[/^stroke-(?:width-|size-)?(.+)$/, Ue],
|
|
1500
|
-
// stroke dash
|
|
1501
|
-
[/^stroke-dash-(.+)$/, ([, e]) => ({ "stroke-dasharray": r.bracket.cssvar.number(e) }), { autocomplete: "stroke-dash-<num>" }],
|
|
1502
|
-
[/^stroke-offset-(.+)$/, ([, e]) => ({ "stroke-dashoffset": r.bracket.cssvar.px.numberWithUnit(e) })],
|
|
1503
|
-
// stroke colors
|
|
1504
|
-
[/^stroke-(.+)$/, Un, { autocomplete: "stroke-$colors" }],
|
|
1505
|
-
[/^stroke-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-stroke-opacity": r.bracket.percent.cssvar(e) }), { autocomplete: "stroke-(op|opacity)-<percent>" }],
|
|
1506
|
-
// line cap
|
|
1507
|
-
["stroke-cap-square", { "stroke-linecap": "square" }],
|
|
1508
|
-
["stroke-cap-round", { "stroke-linecap": "round" }],
|
|
1509
|
-
["stroke-cap-auto", { "stroke-linecap": "butt" }],
|
|
1510
|
-
// line join
|
|
1511
|
-
["stroke-join-arcs", { "stroke-linejoin": "arcs" }],
|
|
1512
|
-
["stroke-join-bevel", { "stroke-linejoin": "bevel" }],
|
|
1513
|
-
["stroke-join-clip", { "stroke-linejoin": "miter-clip" }],
|
|
1514
|
-
["stroke-join-round", { "stroke-linejoin": "round" }],
|
|
1515
|
-
["stroke-join-auto", { "stroke-linejoin": "miter" }],
|
|
1516
|
-
// none
|
|
1517
|
-
["stroke-none", { stroke: "none" }]
|
|
1518
|
-
];
|
|
1519
|
-
function Ue([, e]) {
|
|
1520
|
-
return { "stroke-width": r.bracket.cssvar.fraction.px.number(e) };
|
|
1521
|
-
}
|
|
1522
|
-
function Un(e, t) {
|
|
1523
|
-
return E(r.bracket(e[1])) ? Ue(e) : b("stroke", "stroke")(e, t);
|
|
1524
|
-
}
|
|
1525
|
-
const En = [
|
|
1526
|
-
// displays
|
|
1527
|
-
["inline-table", { display: "inline-table" }],
|
|
1528
|
-
["table", { display: "table" }],
|
|
1529
|
-
["table-caption", { display: "table-caption" }],
|
|
1530
|
-
["table-cell", { display: "table-cell" }],
|
|
1531
|
-
["table-column", { display: "table-column" }],
|
|
1532
|
-
["table-column-group", { display: "table-column-group" }],
|
|
1533
|
-
["table-footer-group", { display: "table-footer-group" }],
|
|
1534
|
-
["table-header-group", { display: "table-header-group" }],
|
|
1535
|
-
["table-row", { display: "table-row" }],
|
|
1536
|
-
["table-row-group", { display: "table-row-group" }],
|
|
1537
|
-
// layouts
|
|
1538
|
-
["border-collapse", { "border-collapse": "collapse" }],
|
|
1539
|
-
["border-separate", { "border-collapse": "separate" }],
|
|
1540
|
-
[/^border-spacing-(.+)$/, function* ([, e], { theme: t }) {
|
|
1541
|
-
const n = fe(e, t);
|
|
1542
|
-
if (n != null) {
|
|
1543
|
-
yield {
|
|
1544
|
-
"--un-border-spacing-x": n,
|
|
1545
|
-
"--un-border-spacing-y": n,
|
|
1546
|
-
"border-spacing": "var(--un-border-spacing-x) var(--un-border-spacing-y)"
|
|
1547
|
-
};
|
|
1548
|
-
for (const o of ["x", "y"])
|
|
1549
|
-
yield s(`--un-border-spacing-${o}`, { syntax: "<length>", initialValue: "0" });
|
|
1550
|
-
}
|
|
1551
|
-
}, { autocomplete: ["border-spacing", "border-spacing-$spacing"] }],
|
|
1552
|
-
[/^border-spacing-([xy])-(.+)$/, function* ([, e, t], { theme: n }) {
|
|
1553
|
-
const o = fe(t, n);
|
|
1554
|
-
if (o != null) {
|
|
1555
|
-
yield {
|
|
1556
|
-
[`--un-border-spacing-${e}`]: o,
|
|
1557
|
-
"border-spacing": "var(--un-border-spacing-x) var(--un-border-spacing-y)"
|
|
1558
|
-
};
|
|
1559
|
-
for (const a of ["x", "y"])
|
|
1560
|
-
yield s(`--un-border-spacing-${a}`, { syntax: "<length>", initialValue: "0" });
|
|
1561
|
-
}
|
|
1562
|
-
}, { autocomplete: ["border-spacing-(x|y)", "border-spacing-(x|y)-$spacing"] }],
|
|
1563
|
-
["caption-top", { "caption-side": "top" }],
|
|
1564
|
-
["caption-bottom", { "caption-side": "bottom" }],
|
|
1565
|
-
["table-auto", { "table-layout": "auto" }],
|
|
1566
|
-
["table-fixed", { "table-layout": "fixed" }],
|
|
1567
|
-
["table-empty-cells-visible", { "empty-cells": "show" }],
|
|
1568
|
-
["table-empty-cells-hidden", { "empty-cells": "hide" }]
|
|
1569
|
-
];
|
|
1570
|
-
function fe(e, t) {
|
|
1571
|
-
var o;
|
|
1572
|
-
let n = (o = t.spacing) == null ? void 0 : o[e];
|
|
1573
|
-
if (!n) {
|
|
1574
|
-
const a = $(e);
|
|
1575
|
-
a != null ? (u("spacing"), n = `calc(var(--spacing) * ${a})`) : n = r.bracket.cssvar.global.auto.fraction.rem(e);
|
|
1576
|
-
}
|
|
1577
|
-
return n;
|
|
1578
|
-
}
|
|
1579
|
-
const H = "var(--un-pan-x) var(--un-pan-y) var(--un-pinch-zoom)", K = ["pan-x", "pan-y", "pinch-zoom"].map((e) => s(`--un-${e}`)), Tn = [
|
|
1580
|
-
[/^touch-pan-(x|left|right)$/, function* ([, e]) {
|
|
1581
|
-
yield {
|
|
1582
|
-
"--un-pan-x": `pan-${e}`,
|
|
1583
|
-
"touch-action": H
|
|
1584
|
-
};
|
|
1585
|
-
for (const t of K)
|
|
1586
|
-
yield t;
|
|
1587
|
-
}, { autocomplete: ["touch-pan", "touch-pan-(x|left|right|y|up|down)"] }],
|
|
1588
|
-
[/^touch-pan-(y|up|down)$/, function* ([, e]) {
|
|
1589
|
-
yield {
|
|
1590
|
-
"--un-pan-y": `pan-${e}`,
|
|
1591
|
-
"touch-action": H
|
|
1592
|
-
};
|
|
1593
|
-
for (const t of K)
|
|
1594
|
-
yield t;
|
|
1595
|
-
}],
|
|
1596
|
-
[/^touch-pinch-zoom$/, function* () {
|
|
1597
|
-
yield {
|
|
1598
|
-
"--un-pinch-zoom": "pinch-zoom",
|
|
1599
|
-
"touch-action": H
|
|
1600
|
-
};
|
|
1601
|
-
for (const e of K)
|
|
1602
|
-
yield e;
|
|
1603
|
-
}],
|
|
1604
|
-
["touch-auto", { "touch-action": "auto" }],
|
|
1605
|
-
["touch-manipulation", { "touch-action": "manipulation" }],
|
|
1606
|
-
["touch-none", { "touch-action": "none" }],
|
|
1607
|
-
...l("touch", "touch-action")
|
|
1608
|
-
], M = [
|
|
1609
|
-
"translate",
|
|
1610
|
-
"rotate",
|
|
1611
|
-
"scale"
|
|
1612
|
-
], Q = [
|
|
1613
|
-
"var(--un-rotate-x)",
|
|
1614
|
-
"var(--un-rotate-y)",
|
|
1615
|
-
"var(--un-rotate-z)",
|
|
1616
|
-
"var(--un-skew-x)",
|
|
1617
|
-
"var(--un-skew-y)"
|
|
1618
|
-
].join(" "), ee = Q, Ln = [
|
|
1619
|
-
"translateZ(0)",
|
|
1620
|
-
Q
|
|
1621
|
-
].join(" "), Pn = [
|
|
1622
|
-
// origins
|
|
1623
|
-
[
|
|
1624
|
-
/^(?:transform-)?origin-(.+)$/,
|
|
1625
|
-
([, e]) => ({ "transform-origin": v[e] ?? r.bracket.cssvar(e) }),
|
|
1626
|
-
{ autocomplete: [`transform-origin-(${Object.keys(v).join("|")})`, `origin-(${Object.keys(v).join("|")})`] }
|
|
1627
|
-
],
|
|
1628
|
-
// perspectives
|
|
1629
|
-
[/^(?:transform-)?perspect(?:ive)?-(.+)$/, ([, e], { theme: t }) => {
|
|
1630
|
-
var o;
|
|
1631
|
-
let n;
|
|
1632
|
-
if ((o = t.perspective) != null && o[e] ? (u("perspective", e), n = p("perspective", e)) : n = r.bracket.cssvar.px.numberWithUnit(e), n != null)
|
|
1633
|
-
return {
|
|
1634
|
-
perspective: n
|
|
1635
|
-
};
|
|
1636
|
-
}, { autocomplete: ["transform-perspective-<num>", "perspective-<num>", "perspective-$perspective"] }],
|
|
1637
|
-
// skip 1 & 2 letters shortcut
|
|
1638
|
-
[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/, ([, e]) => {
|
|
1639
|
-
const t = r.bracket.cssvar(e) ?? (e.length >= 3 ? v[e] : void 0);
|
|
1640
|
-
if (t != null)
|
|
1641
|
-
return {
|
|
1642
|
-
"perspective-origin": t
|
|
1643
|
-
};
|
|
1644
|
-
}],
|
|
1645
|
-
// modifiers
|
|
1646
|
-
[/^(?:transform-)?translate-()(.+)$/, me],
|
|
1647
|
-
[/^(?:transform-)?translate-([xyz])-(.+)$/, me],
|
|
1648
|
-
[/^(?:transform-)?rotate-()(.+)$/, he],
|
|
1649
|
-
[/^(?:transform-)?rotate-([xyz])-(.+)$/, he],
|
|
1650
|
-
[/^(?:transform-)?skew-()(.+)$/, ve],
|
|
1651
|
-
[/^(?:transform-)?skew-([xy])-(.+)$/, ve, { autocomplete: ["transform-skew-(x|y)-<percent>", "skew-(x|y)-<percent>"] }],
|
|
1652
|
-
[/^(?:transform-)?scale-()(.+)$/, ge],
|
|
1653
|
-
[/^(?:transform-)?scale-([xyz])-(.+)$/, ge, { autocomplete: [`transform-(${M.join("|")})-<percent>`, `transform-(${M.join("|")})-(x|y|z)-<percent>`, `(${M.join("|")})-<percent>`, `(${M.join("|")})-(x|y|z)-<percent>`] }],
|
|
1654
|
-
// style
|
|
1655
|
-
["transform-3d", { "transform-style": "preserve-3d" }],
|
|
1656
|
-
["transform-flat", { "transform-style": "flat" }],
|
|
1657
|
-
// transform-box
|
|
1658
|
-
[/^transform-(border|content|fill|stroke|view)$/, ([, e]) => ({ "transform-box": `${e}-box` })],
|
|
1659
|
-
// base
|
|
1660
|
-
["transform", { transform: ee }],
|
|
1661
|
-
["transform-cpu", { transform: Q }],
|
|
1662
|
-
["transform-gpu", { transform: Ln }],
|
|
1663
|
-
["transform-none", { transform: "none" }],
|
|
1664
|
-
...l("transform")
|
|
1665
|
-
];
|
|
1666
|
-
function me([, e, t]) {
|
|
1667
|
-
const n = $(t) ?? r.bracket.cssvar.none.fraction.rem(t);
|
|
1668
|
-
if (n != null)
|
|
1669
|
-
return n === "none" ? {
|
|
1670
|
-
translate: "none"
|
|
1671
|
-
} : (u("spacing"), [
|
|
1672
|
-
[
|
|
1673
|
-
...te(e, typeof n == "number" ? `calc(var(--spacing) * ${n})` : n, "translate"),
|
|
1674
|
-
["translate", `var(--un-translate-x) var(--un-translate-y)${e === "z" ? " var(--un-translate-z)" : ""}`, Be]
|
|
1675
|
-
],
|
|
1676
|
-
...["x", "y", "z"].map((o) => s(`--un-translate-${o}`, { initialValue: 0 }))
|
|
1677
|
-
]);
|
|
1678
|
-
}
|
|
1679
|
-
function ge([, e, t]) {
|
|
1680
|
-
const n = r.bracket.cssvar.none.fraction.percent(t);
|
|
1681
|
-
if (n != null)
|
|
1682
|
-
return n === "none" ? {
|
|
1683
|
-
scale: "none"
|
|
1684
|
-
} : [
|
|
1685
|
-
[
|
|
1686
|
-
...te(e, n, "scale"),
|
|
1687
|
-
["scale", `var(--un-scale-x) var(--un-scale-y)${e === "z" ? " var(--un-scale-z)" : ""}`]
|
|
1688
|
-
],
|
|
1689
|
-
...["x", "y", "z"].map((o) => s(`--un-scale-${o}`, { initialValue: 1 }))
|
|
1690
|
-
];
|
|
1691
|
-
}
|
|
1692
|
-
function he([, e = "", t]) {
|
|
1693
|
-
const n = r.bracket.cssvar.none.degree(t);
|
|
1694
|
-
if (n != null)
|
|
1695
|
-
return n === "none" ? {
|
|
1696
|
-
rotate: "none"
|
|
1697
|
-
} : e ? [
|
|
1698
|
-
[
|
|
1699
|
-
...te(e, n.endsWith("deg") ? `rotate${e.toUpperCase()}(${n})` : n, "rotate"),
|
|
1700
|
-
["transform", ee]
|
|
1701
|
-
],
|
|
1702
|
-
...["x", "y", "z"].map((o) => s(`--un-rotate-${o}`, { initialValue: `rotate${o.toUpperCase()}(0)` })),
|
|
1703
|
-
...["x", "y"].map((o) => s(`--un-skew-${o}`, { initialValue: `skew${o.toUpperCase()}(0)` }))
|
|
1704
|
-
] : {
|
|
1705
|
-
rotate: r.bracket.cssvar.degree(t)
|
|
1706
|
-
};
|
|
1707
|
-
}
|
|
1708
|
-
function ve([, e, t]) {
|
|
1709
|
-
const n = r.bracket.cssvar.degree(t), o = xe[e];
|
|
1710
|
-
if (n != null && o)
|
|
1711
|
-
return [
|
|
1712
|
-
[
|
|
1713
|
-
...o.map((a) => [`--un-skew${a}`, n.endsWith("deg") ? `skew${a.slice(1).toUpperCase()}(${n})` : n]),
|
|
1714
|
-
["transform", ee]
|
|
1715
|
-
],
|
|
1716
|
-
...["x", "y", "z"].map((a) => s(`--un-rotate-${a}`, { initialValue: `rotate${a.toUpperCase()}(0)` })),
|
|
1717
|
-
...["x", "y"].map((a) => s(`--un-skew-${a}`, { initialValue: `skew${a.toUpperCase()}(0)` }))
|
|
1718
|
-
];
|
|
1719
|
-
}
|
|
1720
|
-
function te(e, t, n) {
|
|
1721
|
-
const o = t.split(Ne);
|
|
1722
|
-
return e || !e && o.length === 1 ? xe[e].map((a) => [`--un-${n}${a}`, t]) : o.map((a, i) => [`--un-${n}-${He[i]}`, a]);
|
|
1723
|
-
}
|
|
1724
|
-
function ye(e, t) {
|
|
1725
|
-
let n;
|
|
1726
|
-
if (r.cssvar(e) != null)
|
|
1727
|
-
n = r.cssvar(e);
|
|
1728
|
-
else {
|
|
1729
|
-
e.startsWith("[") && e.endsWith("]") && (e = e.slice(1, -1));
|
|
1730
|
-
const o = e.split(",").map((a) => {
|
|
1731
|
-
var i;
|
|
1732
|
-
return ((i = t.property) == null ? void 0 : i[a]) ?? r.properties(a);
|
|
1733
|
-
});
|
|
1734
|
-
o.every(Boolean) && (n = o.join(","));
|
|
1735
|
-
}
|
|
1736
|
-
return n;
|
|
1737
|
-
}
|
|
1738
|
-
const Fn = [
|
|
1739
|
-
// transition
|
|
1740
|
-
[
|
|
1741
|
-
/^transition(?:-(\D+?))?(?:-(\d+))?$/,
|
|
1742
|
-
([, e, t], { theme: n }) => {
|
|
1743
|
-
var a;
|
|
1744
|
-
u("default", ["transition", "timingFunction"]), u("default", ["transition", "duration"]);
|
|
1745
|
-
const o = {
|
|
1746
|
-
"transition-property": (a = n.property) == null ? void 0 : a.DEFAULT,
|
|
1747
|
-
"transition-timing-function": `var(--un-ease, ${p("default", ["transition", "timingFunction"])})`,
|
|
1748
|
-
"transition-duration": `var(--un-duration, ${p("default", ["transition", "duration"])})`
|
|
1749
|
-
};
|
|
1750
|
-
if (!e && !t)
|
|
1751
|
-
return {
|
|
1752
|
-
...o
|
|
1753
|
-
};
|
|
1754
|
-
if (e != null) {
|
|
1755
|
-
const i = ye(e, n);
|
|
1756
|
-
if (i)
|
|
1757
|
-
return {
|
|
1758
|
-
"--un-duration": t && r.time(t),
|
|
1759
|
-
...o,
|
|
1760
|
-
"transition-property": i
|
|
1761
|
-
};
|
|
1762
|
-
} else if (t != null)
|
|
1763
|
-
return {
|
|
1764
|
-
"--un-duration": r.time(t),
|
|
1765
|
-
...o
|
|
1766
|
-
};
|
|
1767
|
-
}
|
|
1768
|
-
],
|
|
1769
|
-
// timings
|
|
1770
|
-
[
|
|
1771
|
-
/^(?:transition-)?duration-(.+)$/,
|
|
1772
|
-
([, e]) => ({
|
|
1773
|
-
"--un-duration": r.bracket.cssvar.time(e),
|
|
1774
|
-
"transition-duration": r.bracket.cssvar.time(e)
|
|
1775
|
-
})
|
|
1776
|
-
],
|
|
1777
|
-
[
|
|
1778
|
-
/^(?:transition-)?delay-(.+)$/,
|
|
1779
|
-
([, e]) => ({ "transition-delay": r.bracket.cssvar.time(e) })
|
|
1780
|
-
],
|
|
1781
|
-
[
|
|
1782
|
-
/^(?:transition-)?ease(?:-(.+))?$/,
|
|
1783
|
-
([, e = "DEFAULT"], { theme: t }) => {
|
|
1784
|
-
var o;
|
|
1785
|
-
let n;
|
|
1786
|
-
return (o = t.ease) != null && o[e] ? (u("ease", e), n = p("ease", e)) : n = r.bracket.cssvar(e), [
|
|
1787
|
-
{
|
|
1788
|
-
"--un-ease": n,
|
|
1789
|
-
"transition-timing-function": n
|
|
1790
|
-
},
|
|
1791
|
-
s("--un-ease")
|
|
1792
|
-
];
|
|
1793
|
-
},
|
|
1794
|
-
{ autocomplete: ["transition-ease-(linear|in|out|in-out)", "ease-(linear|in|out|in-out)"] }
|
|
1795
|
-
],
|
|
1796
|
-
// props
|
|
1797
|
-
[
|
|
1798
|
-
/^(?:transition-)?property-(.+)$/,
|
|
1799
|
-
([, e], { theme: t }) => {
|
|
1800
|
-
const n = r.global(e) || ye(e, t);
|
|
1801
|
-
if (n)
|
|
1802
|
-
return { "transition-property": n };
|
|
1803
|
-
},
|
|
1804
|
-
{ autocomplete: [
|
|
1805
|
-
`transition-property-(${[...f].join("|")})`
|
|
1806
|
-
] }
|
|
1807
|
-
],
|
|
1808
|
-
// none
|
|
1809
|
-
["transition-none", { transition: "none" }],
|
|
1810
|
-
...l("transition"),
|
|
1811
|
-
// behavior
|
|
1812
|
-
["transition-discrete", { "transition-behavior": "allow-discrete" }],
|
|
1813
|
-
["transition-normal", { "transition-behavior": "normal" }]
|
|
1814
|
-
], Mn = [
|
|
1815
|
-
// text
|
|
1816
|
-
[/^text-(.+)$/, In, { autocomplete: "text-$text" }],
|
|
1817
|
-
// // text size
|
|
1818
|
-
[/^(?:text|font)-size-(.+)$/, Ee, { autocomplete: "text-size-$text" }],
|
|
1819
|
-
// text colors
|
|
1820
|
-
[/^text-(?:color-)?(.+)$/, Nn, { autocomplete: "text-$colors" }],
|
|
1821
|
-
// colors
|
|
1822
|
-
[/^(?:color|c)-(.+)$/, b("color", "text")],
|
|
1823
|
-
// style
|
|
1824
|
-
[/^(?:text|color|c)-(.+)$/, ([, e]) => f.includes(e) ? { color: e } : void 0, { autocomplete: `(text|color|c)-(${f.join("|")})` }],
|
|
1825
|
-
// opacity
|
|
1826
|
-
[/^(?:text|color|c)-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-text-opacity": r.bracket.percent.cssvar(e) }), { autocomplete: "(text|color|c)-(op|opacity)-<percent>" }],
|
|
1827
|
-
// weights
|
|
1828
|
-
[
|
|
1829
|
-
/^fw-?([^-]+)$/,
|
|
1830
|
-
([, e], { theme: t }) => {
|
|
1831
|
-
var o;
|
|
1832
|
-
let n;
|
|
1833
|
-
return (o = t.fontWeight) != null && o[e] ? (u("fontWeight", e), n = p("fontWeight", e)) : n = r.bracket.cssvar.global.number(e), {
|
|
1834
|
-
"--un-font-weight": n,
|
|
1835
|
-
"font-weight": n
|
|
1836
|
-
};
|
|
1837
|
-
},
|
|
1838
|
-
{
|
|
1839
|
-
autocomplete: [
|
|
1840
|
-
"(font|fw)-(100|200|300|400|500|600|700|800|900)",
|
|
1841
|
-
"(font|fw)-$fontWeight"
|
|
1842
|
-
]
|
|
1843
|
-
}
|
|
1844
|
-
],
|
|
1845
|
-
// leadings
|
|
1846
|
-
[
|
|
1847
|
-
/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,
|
|
1848
|
-
([, e], { theme: t }) => {
|
|
1849
|
-
var o;
|
|
1850
|
-
let n;
|
|
1851
|
-
if ((o = t.leading) != null && o[e] ? (u("leading", e), n = p("leading", e)) : $(e) ? (u("spacing"), n = `calc(var(--spacing) * ${$(e)})`) : n = r.bracket.cssvar.global.rem(e), n != null)
|
|
1852
|
-
return [
|
|
1853
|
-
{
|
|
1854
|
-
"--un-leading": n,
|
|
1855
|
-
"line-height": n
|
|
1856
|
-
},
|
|
1857
|
-
s("--un-leading")
|
|
1858
|
-
];
|
|
1859
|
-
},
|
|
1860
|
-
{ autocomplete: "(leading|lh|line-height)-$leading" }
|
|
1861
|
-
],
|
|
1862
|
-
// synthesis
|
|
1863
|
-
["font-synthesis-weight", { "font-synthesis": "weight" }],
|
|
1864
|
-
["font-synthesis-style", { "font-synthesis": "style" }],
|
|
1865
|
-
["font-synthesis-small-caps", { "font-synthesis": "small-caps" }],
|
|
1866
|
-
["font-synthesis-none", { "font-synthesis": "none" }],
|
|
1867
|
-
[/^font-synthesis-(.+)$/, ([, e]) => ({ "font-synthesis": r.bracket.cssvar.global(e) })],
|
|
1868
|
-
// tracking
|
|
1869
|
-
[
|
|
1870
|
-
/^(?:font-)?tracking-(.+)$/,
|
|
1871
|
-
([, e], { theme: t }) => {
|
|
1872
|
-
var o;
|
|
1873
|
-
let n;
|
|
1874
|
-
return (o = t.tracking) != null && o[e] ? (u("tracking", e), n = p("tracking", e)) : n = r.bracket.cssvar.global.rem(e), {
|
|
1875
|
-
"--un-tracking": n,
|
|
1876
|
-
"letter-spacing": n
|
|
1877
|
-
};
|
|
1878
|
-
},
|
|
1879
|
-
{ autocomplete: "tracking-$tracking" }
|
|
1880
|
-
],
|
|
1881
|
-
// word-spacing
|
|
1882
|
-
[
|
|
1883
|
-
/^(?:font-)?word-spacing-(.+)$/,
|
|
1884
|
-
([, e], { theme: t }) => {
|
|
1885
|
-
var o;
|
|
1886
|
-
const n = (o = t.tracking) != null && o[e] ? p("tracking", e) : r.bracket.cssvar.global.rem(e);
|
|
1887
|
-
return {
|
|
1888
|
-
"--un-word-spacing": n,
|
|
1889
|
-
"word-spacing": n
|
|
1890
|
-
};
|
|
1891
|
-
},
|
|
1892
|
-
{ autocomplete: "word-spacing-$spacing" }
|
|
1893
|
-
],
|
|
1894
|
-
// stretch
|
|
1895
|
-
["font-stretch-normal", { "font-stretch": "normal" }],
|
|
1896
|
-
["font-stretch-ultra-condensed", { "font-stretch": "ultra-condensed" }],
|
|
1897
|
-
["font-stretch-extra-condensed", { "font-stretch": "extra-condensed" }],
|
|
1898
|
-
["font-stretch-condensed", { "font-stretch": "condensed" }],
|
|
1899
|
-
["font-stretch-semi-condensed", { "font-stretch": "semi-condensed" }],
|
|
1900
|
-
["font-stretch-semi-expanded", { "font-stretch": "semi-expanded" }],
|
|
1901
|
-
["font-stretch-expanded", { "font-stretch": "expanded" }],
|
|
1902
|
-
["font-stretch-extra-expanded", { "font-stretch": "extra-expanded" }],
|
|
1903
|
-
["font-stretch-ultra-expanded", { "font-stretch": "ultra-expanded" }],
|
|
1904
|
-
[
|
|
1905
|
-
/^font-stretch-(.+)$/,
|
|
1906
|
-
([, e]) => ({ "font-stretch": r.bracket.cssvar.fraction.global(e) }),
|
|
1907
|
-
{ autocomplete: "font-stretch-<percentage>" }
|
|
1908
|
-
],
|
|
1909
|
-
// family & weight
|
|
1910
|
-
[
|
|
1911
|
-
/^font-(.+)$/,
|
|
1912
|
-
([, e], { theme: t }) => {
|
|
1913
|
-
var o, a;
|
|
1914
|
-
let n;
|
|
1915
|
-
if ((o = t.font) != null && o[e])
|
|
1916
|
-
return u("font", e), n = p("font", e), { "font-family": n };
|
|
1917
|
-
if ((a = t.fontWeight) != null && a[e])
|
|
1918
|
-
return u("fontWeight", e), n = p("fontWeight", e), { "--un-font-weight": n, "font-weight": n };
|
|
1919
|
-
if (n = r.number(e), n != null)
|
|
1920
|
-
return { "--un-font-weight": n, "font-weight": n };
|
|
1921
|
-
if (n = r.bracketOfFamily(e), n != null && r.number(n) == null)
|
|
1922
|
-
return n = r.cssvar(n) ?? n, { "font-family": n };
|
|
1923
|
-
if (n = r.bracketOfNumber(e), n != null)
|
|
1924
|
-
return n = r.cssvar.number(n), { "--un-font-weight": n, "font-weight": n };
|
|
1925
|
-
if (n = r.bracket(e), n != null && r.number(n) != null) {
|
|
1926
|
-
const i = r.number(n);
|
|
1927
|
-
return { "--un-font-weight": i, "font-weight": i };
|
|
1928
|
-
}
|
|
1929
|
-
if (n = r.bracket.cssvar.global(e), n != null)
|
|
1930
|
-
return { "font-family": n };
|
|
1931
|
-
},
|
|
1932
|
-
{ autocomplete: ["font-$font", "font-$fontWeight"] }
|
|
1933
|
-
]
|
|
1934
|
-
], qn = [
|
|
1935
|
-
[/^tab(?:-(.+))?$/, ([, e]) => {
|
|
1936
|
-
const t = r.bracket.cssvar.global.number(e || "4");
|
|
1937
|
-
if (t != null)
|
|
1938
|
-
return {
|
|
1939
|
-
"-moz-tab-size": t,
|
|
1940
|
-
"-o-tab-size": t,
|
|
1941
|
-
"tab-size": t
|
|
1942
|
-
};
|
|
1943
|
-
}]
|
|
1944
|
-
], Dn = [
|
|
1945
|
-
[/^indent-(.+)$/, ([, e]) => {
|
|
1946
|
-
let t = $(e);
|
|
1947
|
-
if (t != null)
|
|
1948
|
-
return u("spacing"), { "text-indent": `calc(var(--spacing) * ${t})` };
|
|
1949
|
-
if (t = r.bracket.cssvar.auto.global.rem(e), t != null)
|
|
1950
|
-
return { "text-indent": t };
|
|
1951
|
-
}]
|
|
1952
|
-
], Bn = [
|
|
1953
|
-
// widths
|
|
1954
|
-
[/^text-stroke(?:-(.+))?$/, ([, e = "DEFAULT"], { theme: t }) => {
|
|
1955
|
-
var n, o;
|
|
1956
|
-
return (n = t.textStrokeWidth) != null && n[e] && u("textStrokeWidth", e), {
|
|
1957
|
-
"-webkit-text-stroke-width": (o = t.textStrokeWidth) != null && o[e] ? p("textStrokeWidth", e) : r.bracket.cssvar.px(e)
|
|
1958
|
-
};
|
|
1959
|
-
}, { autocomplete: "text-stroke-$textStrokeWidth" }],
|
|
1960
|
-
// colors
|
|
1961
|
-
[/^text-stroke-(.+)$/, b("-webkit-text-stroke-color", "text-stroke"), { autocomplete: "text-stroke-$colors" }],
|
|
1962
|
-
[/^text-stroke-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-text-stroke-opacity": r.bracket.percent.cssvar(e) }), { autocomplete: "text-stroke-(op|opacity)-<percent>" }]
|
|
1963
|
-
], ke = /op(?:acity)?-/, _n = [
|
|
1964
|
-
[/^text-shadow(?:-(.+))?$/, (e, t) => {
|
|
1965
|
-
var i;
|
|
1966
|
-
const [n, o = "DEFAULT"] = e, a = (i = t.theme.textShadow) == null ? void 0 : i[o];
|
|
1967
|
-
return a != null ? {
|
|
1968
|
-
"--un-text-shadow": Y(a, "--un-text-shadow-color").join(","),
|
|
1969
|
-
"text-shadow": "var(--un-text-shadow)"
|
|
1970
|
-
} : ke.test(o) ? { "--un-text-shadow-opacity": r.bracket.percent.cssvar(o.replace(ke, "")) } : b("--un-text-shadow-color", "text-shadow")(e, t) ?? { "text-shadow": r.bracket.cssvar.global(o) };
|
|
1971
|
-
}, {
|
|
1972
|
-
autocomplete: [
|
|
1973
|
-
"text-shadow-$textShadow",
|
|
1974
|
-
"text-shadow(-color)?-$colors",
|
|
1975
|
-
"text-shadow(-color)?-(op|opacity)-<percent>"
|
|
1976
|
-
]
|
|
1977
|
-
}],
|
|
1978
|
-
// colors
|
|
1979
|
-
[/^text-shadow-color-(.+)$/, b("--un-text-shadow-color", "text-shadow"), { autocomplete: "text-shadow-color-$colors" }],
|
|
1980
|
-
[/^text-shadow-color-op(?:acity)?-?(.+)$/, ([, e]) => ({ "--un-text-shadow-opacity": r.bracket.percent.cssvar(e) }), { autocomplete: "text-shadow-color-(op|opacity)-<percent>" }]
|
|
1981
|
-
], w = [
|
|
1982
|
-
s("--un-ordinal"),
|
|
1983
|
-
s("--un-slashed-zero"),
|
|
1984
|
-
s("--un-numeric-figure"),
|
|
1985
|
-
s("--un-numeric-spacing"),
|
|
1986
|
-
s("--un-numeric-fraction")
|
|
1987
|
-
], j = {
|
|
1988
|
-
"font-variant-numeric": "var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)"
|
|
1989
|
-
}, Gn = [
|
|
1990
|
-
["ordinal", [{ "--un-ordinal": "ordinal", ...j }, ...w]],
|
|
1991
|
-
["slashed-zero", [{ "--un-slashed-zero": "slashed-zero", ...j }, ...w]],
|
|
1992
|
-
["lining-nums", [{ "--un-numeric-figure": "lining-nums", ...j }, ...w]],
|
|
1993
|
-
["oldstyle-nums", [{ "--un-numeric-figure": "oldstyle-nums", ...j }, ...w]],
|
|
1994
|
-
["proportional-nums", [{ "--un-numeric-spacing": "proportional-nums", ...j }, ...w]],
|
|
1995
|
-
["tabular-nums", [{ "--un-numeric-spacing": "tabular-nums", ...j }, ...w]],
|
|
1996
|
-
["diagonal-fractions", [{ "--un-numeric-fraction": "diagonal-fractions", ...j }, ...w]],
|
|
1997
|
-
["stacked-fractions", [{ "--un-numeric-fraction": "stacked-fractions", ...j }, ...w]],
|
|
1998
|
-
["normal-nums", [{ "font-variant-numeric": "normal" }]]
|
|
1999
|
-
];
|
|
2000
|
-
function In([, e = "base"], { theme: t }) {
|
|
2001
|
-
var g, z;
|
|
2002
|
-
const n = Hn(e, "length");
|
|
2003
|
-
if (!n)
|
|
2004
|
-
return;
|
|
2005
|
-
const [o, a] = n, i = (g = t.text) == null ? void 0 : g[o];
|
|
2006
|
-
let c;
|
|
2007
|
-
if (a && ((z = t.leading) != null && z[a] ? (u("leading", a), c = p("leading", a)) : c = r.bracket.cssvar.global.rem(a)), i)
|
|
2008
|
-
return u("text", [o, "fontSize"]), u("text", [o, "lineHeight"]), i.letterSpacing && u("text", [o, "letterSpacing"]), {
|
|
2009
|
-
"font-size": p("text", [o, "fontSize"]),
|
|
2010
|
-
"line-height": c ?? `var(--un-leading, ${p("text", [o, "lineHeight"])})`,
|
|
2011
|
-
"letter-spacing": i.letterSpacing ? p("text", [o, "letterSpacing"]) : void 0
|
|
2012
|
-
};
|
|
2013
|
-
const m = r.bracketOfLength.rem(o);
|
|
2014
|
-
return c && m ? {
|
|
2015
|
-
"font-size": m,
|
|
2016
|
-
"line-height": c
|
|
2017
|
-
} : { "font-size": r.bracketOfLength.rem(e) };
|
|
2018
|
-
}
|
|
2019
|
-
function Ee([, e], { theme: t }) {
|
|
2020
|
-
var n;
|
|
2021
|
-
if (((n = t.text) == null ? void 0 : n[e]) != null)
|
|
2022
|
-
return u("text", [e, "fontSize"]), u("text", [e, "lineHeight"]), {
|
|
2023
|
-
"font-size": p("text", [e, "fontSize"]),
|
|
2024
|
-
"line-height": `var(--un-leading, ${p("text", [e, "lineHeight"])})`
|
|
2025
|
-
};
|
|
2026
|
-
{
|
|
2027
|
-
const o = r.bracket.cssvar.global.rem(e);
|
|
2028
|
-
if (o)
|
|
2029
|
-
return { "font-size": o };
|
|
2030
|
-
}
|
|
2031
|
-
}
|
|
2032
|
-
function Nn(e, t) {
|
|
2033
|
-
return E(r.bracket(e[1])) ? Ee(e, t) : b("color", "text")(e, t);
|
|
2034
|
-
}
|
|
2035
|
-
function Hn(e, t) {
|
|
2036
|
-
const [n, o] = Ye(e, "[", "]", ["/", ":"]) ?? [];
|
|
2037
|
-
if (n != null) {
|
|
2038
|
-
const a = (n.match(Ge) ?? [])[1];
|
|
2039
|
-
if (a == null || a === t)
|
|
2040
|
-
return [n, o];
|
|
2041
|
-
}
|
|
2042
|
-
}
|
|
2043
|
-
const Kn = {
|
|
2044
|
-
backface: "backface-visibility",
|
|
2045
|
-
break: "word-break",
|
|
2046
|
-
case: "text-transform",
|
|
2047
|
-
content: "align-content",
|
|
2048
|
-
fw: "font-weight",
|
|
2049
|
-
items: "align-items",
|
|
2050
|
-
justify: "justify-content",
|
|
2051
|
-
select: "user-select",
|
|
2052
|
-
self: "align-self",
|
|
2053
|
-
vertical: "vertical-align",
|
|
2054
|
-
visible: "visibility",
|
|
2055
|
-
whitespace: "white-space",
|
|
2056
|
-
ws: "white-space",
|
|
2057
|
-
"bg-blend": "background-blend-mode",
|
|
2058
|
-
"bg-clip": "-webkit-background-clip",
|
|
2059
|
-
"bg-image": "background-image",
|
|
2060
|
-
"bg-origin": "background-origin",
|
|
2061
|
-
"bg-position": "background-position",
|
|
2062
|
-
"bg-repeat": "background-repeat",
|
|
2063
|
-
"bg-size": "background-size",
|
|
2064
|
-
"mix-blend": "mix-blend-mode",
|
|
2065
|
-
object: "object-fit",
|
|
2066
|
-
"object-position": "object-position",
|
|
2067
|
-
write: "writing-mode",
|
|
2068
|
-
"write-orient": "text-orientation"
|
|
2069
|
-
}, Jn = [
|
|
2070
|
-
[/^(.+?)-(\$.+)$/, ([, e, t]) => {
|
|
2071
|
-
const n = Kn[e];
|
|
2072
|
-
if (n)
|
|
2073
|
-
return { [n]: r.cssvar(t) };
|
|
2074
|
-
}]
|
|
2075
|
-
], Zn = [
|
|
2076
|
-
[/^\[(.*)\]$/, ([e, t]) => {
|
|
2077
|
-
if (!t.includes(":"))
|
|
2078
|
-
return;
|
|
2079
|
-
const [n, ...o] = t.split(":"), a = o.join(":");
|
|
2080
|
-
if (!Yn(t) && /^[\w-]+$/.test(n) && Xn(a)) {
|
|
2081
|
-
const i = r.bracket(`[${a}]`);
|
|
2082
|
-
if (i)
|
|
2083
|
-
return { [n]: i };
|
|
2084
|
-
}
|
|
2085
|
-
}]
|
|
2086
|
-
];
|
|
2087
|
-
function Xn(e) {
|
|
2088
|
-
let t = 0;
|
|
2089
|
-
function n(o) {
|
|
2090
|
-
for (; t < e.length; )
|
|
2091
|
-
if (t += 1, e[t] === o)
|
|
2092
|
-
return !0;
|
|
2093
|
-
return !1;
|
|
2094
|
-
}
|
|
2095
|
-
for (t = 0; t < e.length; t++) {
|
|
2096
|
-
const o = e[t];
|
|
2097
|
-
if ("\"`'".includes(o)) {
|
|
2098
|
-
if (!n(o))
|
|
2099
|
-
return !1;
|
|
2100
|
-
} else if (o === "(") {
|
|
2101
|
-
if (!n(")"))
|
|
2102
|
-
return !1;
|
|
2103
|
-
} else if ("[]{}:".includes(o))
|
|
2104
|
-
return !1;
|
|
2105
|
-
}
|
|
2106
|
-
return !0;
|
|
2107
|
-
}
|
|
2108
|
-
function Yn(e) {
|
|
2109
|
-
if (!e.includes("://"))
|
|
2110
|
-
return !1;
|
|
2111
|
-
try {
|
|
2112
|
-
return new URL(e).host !== "";
|
|
2113
|
-
} catch {
|
|
2114
|
-
return !1;
|
|
2115
|
-
}
|
|
2116
|
-
}
|
|
2117
|
-
const Qn = [
|
|
2118
|
-
[/^view-transition-([\w-]+)$/, ([, e]) => ({ "view-transition-name": e })]
|
|
2119
|
-
], ro = [
|
|
2120
|
-
Mn,
|
|
2121
|
-
qn,
|
|
2122
|
-
Dn,
|
|
2123
|
-
Bn,
|
|
2124
|
-
_n,
|
|
2125
|
-
Ot,
|
|
2126
|
-
Vt,
|
|
2127
|
-
et,
|
|
2128
|
-
Qe,
|
|
2129
|
-
it,
|
|
2130
|
-
se,
|
|
2131
|
-
le,
|
|
2132
|
-
lt,
|
|
2133
|
-
ct,
|
|
2134
|
-
ut,
|
|
2135
|
-
dt,
|
|
2136
|
-
pt,
|
|
2137
|
-
se,
|
|
2138
|
-
bt,
|
|
2139
|
-
le,
|
|
2140
|
-
ft,
|
|
2141
|
-
xt,
|
|
2142
|
-
gt,
|
|
2143
|
-
wt,
|
|
2144
|
-
Ze,
|
|
2145
|
-
Xe,
|
|
2146
|
-
zt,
|
|
2147
|
-
Tt,
|
|
2148
|
-
Lt,
|
|
2149
|
-
Ft,
|
|
2150
|
-
en,
|
|
2151
|
-
nn,
|
|
2152
|
-
rn,
|
|
2153
|
-
an,
|
|
2154
|
-
sn,
|
|
2155
|
-
ln,
|
|
2156
|
-
cn,
|
|
2157
|
-
un,
|
|
2158
|
-
dn,
|
|
2159
|
-
pn,
|
|
2160
|
-
bn,
|
|
2161
|
-
fn,
|
|
2162
|
-
mn,
|
|
2163
|
-
gn,
|
|
2164
|
-
hn,
|
|
2165
|
-
vn,
|
|
2166
|
-
yn,
|
|
2167
|
-
kn,
|
|
2168
|
-
Xt,
|
|
2169
|
-
Zt,
|
|
2170
|
-
Pn,
|
|
2171
|
-
Fn,
|
|
2172
|
-
Jn,
|
|
2173
|
-
Zn,
|
|
2174
|
-
Ae,
|
|
2175
|
-
Kt,
|
|
2176
|
-
Gt,
|
|
2177
|
-
Nt,
|
|
2178
|
-
It,
|
|
2179
|
-
We,
|
|
2180
|
-
_t,
|
|
2181
|
-
Re,
|
|
2182
|
-
Bt,
|
|
2183
|
-
Ht,
|
|
2184
|
-
Mt,
|
|
2185
|
-
Rn,
|
|
2186
|
-
tt,
|
|
2187
|
-
rt,
|
|
2188
|
-
$n,
|
|
2189
|
-
xn,
|
|
2190
|
-
wn,
|
|
2191
|
-
Wn,
|
|
2192
|
-
jn,
|
|
2193
|
-
zn,
|
|
2194
|
-
Sn,
|
|
2195
|
-
Vn,
|
|
2196
|
-
On,
|
|
2197
|
-
Cn,
|
|
2198
|
-
jt,
|
|
2199
|
-
Et,
|
|
2200
|
-
qt,
|
|
2201
|
-
Dt,
|
|
2202
|
-
Yt,
|
|
2203
|
-
En,
|
|
2204
|
-
Tn,
|
|
2205
|
-
Gn,
|
|
2206
|
-
Qn,
|
|
2207
|
-
Ct,
|
|
2208
|
-
At,
|
|
2209
|
-
An,
|
|
2210
|
-
// should be the last
|
|
2211
|
-
Jt
|
|
2212
|
-
].flat();
|
|
2213
|
-
export {
|
|
2214
|
-
sn as $,
|
|
2215
|
-
Ft as A,
|
|
2216
|
-
Mt as B,
|
|
2217
|
-
qt as C,
|
|
2218
|
-
Dt as D,
|
|
2219
|
-
Bt as E,
|
|
2220
|
-
We as F,
|
|
2221
|
-
_t as G,
|
|
2222
|
-
Ae as H,
|
|
2223
|
-
Re as I,
|
|
2224
|
-
Gt as J,
|
|
2225
|
-
It as K,
|
|
2226
|
-
Nt as L,
|
|
2227
|
-
Ht as M,
|
|
2228
|
-
Kt as N,
|
|
2229
|
-
Jt as O,
|
|
2230
|
-
Xt as P,
|
|
2231
|
-
Yt as Q,
|
|
2232
|
-
X as R,
|
|
2233
|
-
Zt as S,
|
|
2234
|
-
en as T,
|
|
2235
|
-
nn as U,
|
|
2236
|
-
Vt as V,
|
|
2237
|
-
Ot as W,
|
|
2238
|
-
Ct as X,
|
|
2239
|
-
V as Y,
|
|
2240
|
-
rn as Z,
|
|
2241
|
-
an as _,
|
|
2242
|
-
tt as a,
|
|
2243
|
-
ln as a0,
|
|
2244
|
-
cn as a1,
|
|
2245
|
-
un as a2,
|
|
2246
|
-
dn as a3,
|
|
2247
|
-
pn as a4,
|
|
2248
|
-
bn as a5,
|
|
2249
|
-
fn as a6,
|
|
2250
|
-
mn as a7,
|
|
2251
|
-
gn as a8,
|
|
2252
|
-
hn as a9,
|
|
2253
|
-
Hn as aA,
|
|
2254
|
-
Jn as aB,
|
|
2255
|
-
Zn as aC,
|
|
2256
|
-
Qn as aD,
|
|
2257
|
-
vn as aa,
|
|
2258
|
-
yn as ab,
|
|
2259
|
-
kn as ac,
|
|
2260
|
-
$n as ad,
|
|
2261
|
-
xn as ae,
|
|
2262
|
-
wn as af,
|
|
2263
|
-
jn as ag,
|
|
2264
|
-
zn as ah,
|
|
2265
|
-
Sn as ai,
|
|
2266
|
-
Vn as aj,
|
|
2267
|
-
On as ak,
|
|
2268
|
-
Cn as al,
|
|
2269
|
-
Wn as am,
|
|
2270
|
-
An as an,
|
|
2271
|
-
Rn as ao,
|
|
2272
|
-
En as ap,
|
|
2273
|
-
Tn as aq,
|
|
2274
|
-
Pn as as,
|
|
2275
|
-
Fn as at,
|
|
2276
|
-
Mn as au,
|
|
2277
|
-
qn as av,
|
|
2278
|
-
Dn as aw,
|
|
2279
|
-
Bn as ax,
|
|
2280
|
-
_n as ay,
|
|
2281
|
-
Gn as az,
|
|
2282
|
-
rt as b,
|
|
2283
|
-
it as c,
|
|
2284
|
-
ct as d,
|
|
2285
|
-
ut as e,
|
|
2286
|
-
pt as f,
|
|
2287
|
-
S as g,
|
|
2288
|
-
ft as h,
|
|
2289
|
-
dt as i,
|
|
2290
|
-
R as j,
|
|
2291
|
-
gt as k,
|
|
2292
|
-
lt as l,
|
|
2293
|
-
xt as m,
|
|
2294
|
-
wt as n,
|
|
2295
|
-
se as o,
|
|
2296
|
-
jt as p,
|
|
2297
|
-
zt as q,
|
|
2298
|
-
ro as r,
|
|
2299
|
-
bt as s,
|
|
2300
|
-
et as t,
|
|
2301
|
-
At as u,
|
|
2302
|
-
Qe as v,
|
|
2303
|
-
le as w,
|
|
2304
|
-
Et as x,
|
|
2305
|
-
Tt as y,
|
|
2306
|
-
Lt as z
|
|
2307
|
-
};
|