lism-css 0.3.5 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/build-config.js +157 -0
- package/bin/build-css.cjs +92 -0
- package/bin/build-css.js +90 -0
- package/bin/cli.mjs +69 -0
- package/bin/script-build-css.js +6 -0
- package/config/__prop_list.js +44 -0
- package/config/__props.scss +25 -0
- package/config/default-config.js +9 -0
- package/config/defaults/__props-memo.js +45 -0
- package/config/defaults/props.js +370 -0
- package/config/defaults/states.js +42 -0
- package/config/defaults/tokens.js +26 -0
- package/config/helper/getSvgUrl.js +28 -0
- package/config/helper/minifyHtml.js +22 -0
- package/config/helper.js +67 -0
- package/config/index.js +15 -0
- package/config.js +2 -0
- package/dist/components/Accordion/AccIcon.js +1 -1
- package/dist/components/Accordion/getProps.js +15 -17
- package/dist/components/Accordion/index.js +4 -4
- package/dist/components/Accordion/index2.js +28 -23
- package/dist/components/Accordion/setAccordion.js +11 -11
- package/dist/components/Box/index.js +5 -6
- package/dist/components/Center/index.js +2 -2
- package/dist/components/Cluster/index.js +8 -0
- package/dist/components/Columns/index.js +5 -6
- package/dist/components/Container/index.js +3 -3
- package/dist/components/Dummy/index.js +9 -14
- package/dist/components/Dummy/texts.js +6 -6
- package/dist/components/Flex/index.js +5 -6
- package/dist/components/Flow/index.js +8 -0
- package/dist/components/Frame/index.js +5 -6
- package/dist/components/Grid/index.js +5 -6
- package/dist/components/HTML/index.js +5 -0
- package/dist/components/HTML/index2.js +44 -0
- package/dist/components/Layer/index.js +5 -5
- package/dist/components/LinkBox/index.js +6 -6
- package/dist/components/Lism/Link.js +5 -5
- package/dist/components/Lism/Text.js +4 -4
- package/dist/components/Lism/index.js +5 -4
- package/dist/components/Modal/Body.js +5 -5
- package/dist/components/Modal/CloseBtn.js +13 -0
- package/dist/components/Modal/Inner.js +5 -5
- package/dist/components/Modal/OpenBtn.js +9 -0
- package/dist/components/Modal/getProps.js +12 -13
- package/dist/components/Modal/index.js +4 -5
- package/dist/components/Modal/index2.js +12 -12
- package/dist/components/Stack/index.js +5 -5
- package/dist/components/Tabs/Tab.js +7 -9
- package/dist/components/Tabs/TabList.js +4 -4
- package/dist/components/Tabs/TabPanel.js +6 -7
- package/dist/components/Tabs/getProps.js +1 -8
- package/dist/components/Tabs/index2.js +14 -23
- package/dist/components/WithSide/index.js +4 -5
- package/dist/components/atomic/Decorator/getProps.js +13 -0
- package/dist/components/{Decorator → atomic/Decorator}/index.js +1 -1
- package/dist/components/atomic/Divider/getProps.js +10 -0
- package/dist/components/atomic/Divider/index.js +9 -0
- package/dist/components/atomic/Icon/getProps.js +59 -0
- package/dist/components/{Icon → atomic/Icon}/index.js +1 -1
- package/dist/components/atomic/Media/getProps.js +9 -0
- package/dist/components/atomic/Media/index.js +9 -0
- package/dist/components/atomic/Spacer/getProps.js +21 -0
- package/dist/components/atomic/Spacer/index.js +9 -0
- package/dist/components/getFilterProps.js +8 -18
- package/dist/components/getLayoutProps.js +27 -0
- package/dist/config/default-config.js +11 -0
- package/dist/config/defaults/props.js +342 -0
- package/dist/config/defaults/states.js +36 -0
- package/dist/config/defaults/tokens.js +29 -0
- package/dist/config/helper/getSvgUrl.js +4 -0
- package/dist/config/helper.js +31 -0
- package/dist/config/index.js +11 -0
- package/dist/css/base.css +1 -0
- package/dist/css/main.css +1 -0
- package/dist/css/main_no_layer.css +1 -0
- package/dist/css/modules/atomic.css +1 -0
- package/dist/css/modules/dynamic.css +1 -0
- package/dist/css/modules/layout.css +1 -0
- package/dist/css/modules/state.css +1 -0
- package/dist/css/props.css +1 -0
- package/dist/css/reset.css +1 -0
- package/dist/css/utility.css +1 -0
- package/dist/index.js +50 -50
- package/dist/lib/getBpData.js +1 -1
- package/dist/lib/getLismProps.js +109 -177
- package/dist/lib/getMaybeCssVar.js +30 -54
- package/dist/lib/getMaybeTokenValue.js +26 -0
- package/dist/lib/getUtilKey.js +13 -0
- package/dist/lib/isPresetValue.js +3 -3
- package/dist/lib/isTokenValue.js +6 -5
- package/package.json +16 -3
- package/packages/astro/Accordion/AccBody.astro +5 -6
- package/packages/astro/Accordion/AccHeader.astro +4 -4
- package/packages/astro/Accordion/AccHeaderLabel.astro +12 -0
- package/packages/astro/Accordion/AccIcon.astro +1 -1
- package/packages/astro/Accordion/AccLabel.astro +1 -1
- package/packages/astro/Accordion/Accordion.astro +1 -1
- package/packages/astro/Accordion/index.js +2 -1
- package/packages/astro/Box/Box.astro +2 -3
- package/packages/astro/Center/Center.astro +2 -8
- package/packages/astro/Cluster/Cluster.astro +5 -0
- package/packages/astro/Cluster/index.js +1 -0
- package/packages/astro/Columns/Columns.astro +2 -8
- package/packages/astro/Container/Container.astro +3 -4
- package/packages/astro/Decorator/Decorator.astro +2 -2
- package/packages/astro/Divider/Divider.astro +3 -3
- package/packages/astro/Dummy/Dummy.astro +3 -2
- package/packages/astro/Flex/Flex.astro +1 -10
- package/packages/astro/Flex/index.js +0 -1
- package/packages/astro/Flow/Flow.astro +5 -0
- package/packages/astro/Flow/index.js +1 -0
- package/packages/astro/Frame/Frame.astro +1 -8
- package/packages/astro/Grid/Grid.astro +1 -9
- package/packages/astro/Grid/index.js +0 -1
- package/packages/astro/HTML/a.astro +5 -0
- package/packages/astro/HTML/button.astro +5 -0
- package/packages/astro/HTML/div.astro +5 -0
- package/packages/astro/HTML/h.astro +6 -0
- package/packages/astro/HTML/img.astro +5 -0
- package/packages/astro/HTML/index.js +12 -0
- package/packages/astro/HTML/li.astro +5 -0
- package/packages/astro/HTML/ol.astro +5 -0
- package/packages/astro/HTML/p.astro +5 -0
- package/packages/astro/HTML/span.astro +5 -0
- package/packages/astro/HTML/ul.astro +5 -0
- package/packages/astro/Icon/Icon.astro +3 -5
- package/packages/astro/Layer/Layer.astro +3 -10
- package/packages/astro/LinkBox/LinkBox.astro +4 -5
- package/packages/astro/Lism/Link.astro +2 -2
- package/packages/astro/Lism/Lism.astro +4 -3
- package/packages/astro/Lism/Text.astro +2 -2
- package/packages/astro/Lism/index.js +0 -1
- package/packages/astro/{Lism → Media}/Media.astro +1 -9
- package/packages/astro/Media/index.js +1 -0
- package/packages/astro/Modal/Body.astro +4 -5
- package/packages/astro/Modal/CloseBtn.astro +24 -0
- package/packages/astro/Modal/Inner.astro +4 -4
- package/packages/astro/Modal/Modal.astro +4 -5
- package/packages/astro/Modal/OpenBtn.astro +14 -0
- package/packages/astro/Modal/index.js +3 -4
- package/packages/astro/OverlayLink/OverlayLink.astro +1 -1
- package/packages/astro/Spacer/Spacer.astro +3 -3
- package/packages/astro/Stack/Stack.astro +2 -4
- package/packages/astro/Tabs/Tab.astro +2 -11
- package/packages/astro/Tabs/TabList.astro +4 -4
- package/packages/astro/Tabs/TabPanel.astro +1 -1
- package/packages/astro/Tabs/Tabs.astro +6 -10
- package/packages/astro/Test/Test.astro +1 -1
- package/packages/astro/Test/TestItem.astro +1 -1
- package/packages/astro/WithSide/WithSide.astro +1 -8
- package/packages/astro/index.js +6 -2
- package/packages/types/index.d.ts +22 -26
- package/src/scss/{_props.scss → __props copy.scss } +146 -169
- package/src/scss/__props.scss +786 -0
- package/src/scss/_auto_output.scss +102 -76
- package/src/scss/_prop-config.scss +862 -0
- package/src/scss/_setting.scss +2 -3
- package/src/scss/_with_layer.scss +19 -14
- package/src/scss/base/_dom.scss +35 -26
- package/src/scss/base/_property.scss +4 -16
- package/src/scss/base/_tokens.scss +105 -116
- package/src/scss/base/index.scss +18 -42
- package/src/scss/base/set/_hover.scss +13 -0
- package/src/scss/base/set/_innerRs.scss +3 -0
- package/src/scss/base/set/_mask.scss +6 -0
- package/src/scss/base/set/_plain.scss +14 -0
- package/src/scss/base/set/_shadow.scss +27 -0
- package/src/scss/base/set/_snap.scss +8 -0
- package/src/scss/base/set/_transition.scss +20 -0
- package/src/scss/main.scss +0 -1
- package/src/scss/main_no_layer.scss +6 -14
- package/src/scss/modules/atomic/_divider.scss +6 -0
- package/src/scss/{layout → modules/atomic}/_icon.scss +3 -9
- package/src/scss/modules/atomic/_media.scss +3 -0
- package/src/scss/{layout → modules/atomic}/_spacer.scss +1 -1
- package/src/scss/modules/atomic/index.scss +6 -0
- package/src/scss/{dynamic → modules/dynamic}/_accordion.scss +24 -24
- package/src/scss/modules/dynamic/_modal.scss +33 -0
- package/src/scss/{dynamic → modules/dynamic}/_tabs.scss +4 -5
- package/src/scss/{layout/_flex.scss → modules/layout/_cluster.scss} +1 -4
- package/src/scss/modules/layout/_columns.scss +9 -0
- package/src/scss/modules/layout/_flex.scss +3 -0
- package/src/scss/modules/layout/_flow.scss +46 -0
- package/src/scss/{layout → modules/layout}/_frame.scss +1 -1
- package/src/scss/modules/layout/_grid.scss +35 -0
- package/src/scss/{layout → modules/layout}/_withSide.scss +3 -3
- package/src/scss/{layout → modules/layout}/index.scss +4 -6
- package/src/scss/modules/state/_container.scss +37 -0
- package/src/scss/{state → modules/state}/_linkbox.scss +1 -1
- package/src/scss/modules/state/index.scss +5 -0
- package/src/scss/props/_border.scss +25 -40
- package/src/scss/props/_hover.scss +12 -23
- package/src/scss/props/_size.scss +17 -0
- package/src/scss/props/index.scss +1 -2
- package/src/scss/reset.scss +1 -1
- package/src/scss/utility/_cbox.scss +5 -4
- package/src/scss/utility/_hidden.scss +14 -0
- package/src/scss/utility/_itemDivider.scss +11 -0
- package/src/scss/utility/_linkExpand.scss +10 -0
- package/src/scss/utility/_trimHL.scss +29 -13
- package/src/scss/utility/index.scss +3 -45
- package/dist/components/Box/getProps.js +0 -7
- package/dist/components/Columns/getProps.js +0 -6
- package/dist/components/Decorator/getProps.js +0 -17
- package/dist/components/Divider/getProps.js +0 -11
- package/dist/components/Divider/index.js +0 -9
- package/dist/components/Flex/Cluster.js +0 -8
- package/dist/components/Flex/FlexItem.js +0 -8
- package/dist/components/Flex/getProps.js +0 -13
- package/dist/components/Frame/getProps.js +0 -7
- package/dist/components/Grid/GridItem.js +0 -9
- package/dist/components/Grid/getProps.js +0 -28
- package/dist/components/Icon/getProps.js +0 -60
- package/dist/components/Layer/getProps.js +0 -9
- package/dist/components/Lism/Media.js +0 -9
- package/dist/components/Modal/CloseIconBtn.js +0 -19
- package/dist/components/Modal/Footer.js +0 -9
- package/dist/components/Modal/Header.js +0 -9
- package/dist/components/Spacer/getProps.js +0 -21
- package/dist/components/Spacer/index.js +0 -9
- package/dist/components/WithSide/getProps.js +0 -14
- package/dist/components/getInsetProps.js +0 -8
- package/dist/components/getMediaProps.js +0 -7
- package/dist/components/getTransformProps.js +0 -8
- package/dist/config/prop_list.js +0 -386
- package/dist/config/tokens.js +0 -43
- package/dist/config.js +0 -9
- package/dist/lib/getMaybeUtilValue.js +0 -6
- package/packages/astro/Flex/Cluster.astro +0 -11
- package/packages/astro/Grid/GridItem.astro +0 -14
- package/packages/astro/Modal/CloseIconBtn.astro +0 -24
- package/packages/astro/Modal/Footer.astro +0 -14
- package/packages/astro/Modal/Header.astro +0 -14
- package/src/scss/dynamic/_modal.scss +0 -30
- package/src/scss/layout/_columns.scss +0 -13
- package/src/scss/layout/_divider.scss +0 -3
- package/src/scss/layout/_grid.scss +0 -9
- package/src/scss/props/__memo.scss +0 -15
- package/src/scss/props/_color.scss +0 -7
- package/src/scss/props/_transition.scss +0 -20
- package/src/scss/state/_container.scss +0 -34
- package/src/scss/state/_flow.scss +0 -45
- package/src/scss/state/_size.scss +0 -22
- package/src/scss/state/index.scss +0 -12
- /package/dist/components/{Icon → atomic/Icon}/SVG.js +0 -0
- /package/dist/components/{Icon → atomic/Icon}/presets.js +0 -0
- /package/packages/astro/{helper/index.js → helper.js} +0 -0
- /package/src/scss/{dynamic → modules/dynamic}/index.scss +0 -0
- /package/src/scss/{layout → modules/layout}/_center.scss +0 -0
- /package/src/scss/{layout → modules/layout}/_stack.scss +0 -0
- /package/src/scss/{state → modules/state}/_gutter.scss +0 -0
- /package/src/scss/{state → modules/state}/_layer.scss +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.-bd,[class*=-bd-]{border-color:var(--bdc);border-width:var(--bdw)}.-bd{border-style:var(--bds)}.-bd-x{border-inline-style:var(--bds)}.-bd-y{border-block-style:var(--bds)}.-bd-x-s{border-inline-start-style:var(--bds)}.-bd-x-e{border-inline-end-style:var(--bds)}.-bd-t{border-top-style:var(--bds)}.-bd-b{border-bottom-style:var(--bds)}.-bd-l{border-left-style:var(--bds)}.-bd-r{border-right-style:var(--bds)}.-bd-y-s{border-block-start-style:var(--bds)}.-bd-y-e{border-block-end-style:var(--bds)}.-max-sz\:full{max-inline-size:100%}:where(.has--gutter)>.-max-sz\:full{margin-inline:calc(var(--gutter)*-1);max-inline-size:calc(100% + var(--gutter)*2)}.-max-sz\:outer{margin-inline:calc(50% - var(--sz--outer)/2);max-inline-size:var(--sz--outer,100vi)}.-f\:inherit{font:inherit}.-fz,[class*="-fz:"]{font-size:var(--fz)}.-fz\:root{--fz:var(--fz--root)}.-fz\:base{--fz:var(--fz--base)}.-fz\:5xl{--fz:var(--fz--5xl)}.-fz\:4xl{--fz:var(--fz--4xl)}.-fz\:3xl{--fz:var(--fz--3xl)}.-fz\:2xl{--fz:var(--fz--2xl)}.-fz\:xl{--fz:var(--fz--xl)}.-fz\:l{--fz:var(--fz--l)}.-fz\:m{--fz:var(--fz--m)}.-fz\:s{--fz:var(--fz--s)}.-fz\:xs{--fz:var(--fz--xs)}.-fz\:2xs{--fz:var(--fz--2xs)}.-fw\:thin{font-weight:var(--fw--thin)}.-fw\:light{font-weight:var(--fw--light)}.-fw\:normal{font-weight:var(--fw--normal)}.-fw\:medium{font-weight:var(--fw--medium)}.-fw\:bold{font-weight:var(--fw--bold)}.-fw\:black{font-weight:var(--fw--black)}.-ff\:base{font-family:var(--ff--base)}.-ff\:accent{font-family:var(--ff--accent)}.-ff\:mono{font-family:var(--ff--mono)}.-fs\:italic{font-style:italic}.-lh,[class*="-lh:"]{line-height:var(--lh)}.-lh\:1{--lh:1}.-lh\:base{--lh:var(--lh--base)}.-lh\:xs{--lh:var(--lh--xs)}.-lh\:s{--lh:var(--lh--s)}.-lh\:l{--lh:var(--lh--l)}.-lh\:xl{--lh:var(--lh--xl)}.-lts\:base{letter-spacing:var(--lts--base)}.-lts\:s{letter-spacing:var(--lts--s)}.-lts\:l{letter-spacing:var(--lts--l)}.-ta\:center{text-align:center}.-ta\:left{text-align:left}.-ta\:right{text-align:right}.-td\:under{text-decoration:underline}.-td\:none{text-decoration:none}.-d{display:var(--d)}.-d\:none{display:none}.-d\:block{display:block}.-d\:in-flex{display:inline-flex}.-o\:0{opacity:0}.-o\:-10{opacity:var(--o--n10)}.-o\:-20{opacity:var(--o--n20)}.-o\:-30{opacity:var(--o--n30)}.-v\:hidden{visibility:hidden}.-ov\:hidden{overflow:hidden}.-ov\:auto{overflow:auto}.-ov\:clip{overflow:clip}.-ov-x\:clip{overflow-x:clip}.-ov-x\:auto{overflow-x:auto}.-ov-x\:scroll{overflow-x:scroll}.-ov-y\:clip{overflow-y:clip}.-ov-y\:auto{overflow-y:auto}.-ov-y\:scroll{overflow-y:scroll}.-ar{aspect-ratio:var(--ar)}.-ar\:21\/9{aspect-ratio:21/9}.-ar\:16\/9{aspect-ratio:16/9}.-ar\:3\/2{aspect-ratio:3/2}.-ar\:1\/1{aspect-ratio:1/1}.-ar\:og{aspect-ratio:var(--ar--og)}.-w{width:var(--w)}.-w\:100\%{width:100%}.-w\:fit{width:-moz-fit-content;width:fit-content}.-h{height:var(--h)}.-h\:100\%{height:100%}.-min-w{min-width:var(--min-w)}.-min-w\:100\%{min-width:100%}.-max-w{max-width:var(--max-w)}.-max-w\:100\%{max-width:100%}.-min-h{min-height:var(--min-h)}.-min-h\:100\%{min-height:100%}.-max-h{max-height:var(--max-h)}.-max-h\:100\%{max-height:100%}.-max-sz\:xs{max-inline-size:var(--sz--xs)}.-max-sz\:s{max-inline-size:var(--sz--s)}.-max-sz\:m{max-inline-size:var(--sz--m)}.-max-sz\:l{max-inline-size:var(--sz--l)}.-max-sz\:xl{max-inline-size:var(--sz--xl)}.-bg{background:var(--bg)}.-bgr\:no{background-repeat:no-repeat}.-bgp\:center{background-position:50%}.-bgsz\:cover{background-size:cover}.-bgsz\:contain{background-size:contain}.-bgclip\:text{-webkit-background-clip:text;background-clip:text}.-bgc,[class*="-bgc:"]{background-color:var(--bgc)}.-bgc\:base{--bgc:var(--c--base)}.-bgc\:base-2{--bgc:var(--c--base-2)}.-bgc\:text{--bgc:var(--c--text)}.-bgc\:main{--bgc:var(--c--main)}.-bgc\:accent{--bgc:var(--c--accent)}.-bgc\:trsp{--bgc:transparent}.-bgc\:inherit{background-color:inherit}.-c,[class*="-c:"]{color:var(--c)}.-c\:base{--c:var(--c--base)}.-c\:text{--c:var(--c--text)}.-c\:text-2{--c:var(--c--text-2)}.-c\:main{--c:var(--c--main)}.-c\:accent{--c:var(--c--accent)}.-c\:trsp{--c:transparent}.-c\:inherit{color:inherit}.-bd\:none{border:none}.-bds\:dashed{--bds:dashed}.-bds\:dotted{--bds:dotted}.-bds\:double{--bds:double}.-bdc\:main{--bdc:var(--c--main)}.-bdc\:accent{--bdc:var(--c--accent)}.-bdc\:line{--bdc:var(--c--line)}.-bdc\:inherit{--bdc:inherit}.-bdc\:trsp{--bdc:transparent}.-bdrs,[class*="-bdrs:"]{border-radius:var(--bdrs)}.-bdrs\:0{--bdrs:0}.-bdrs\:5{--bdrs:var(--bdrs--5)}.-bdrs\:10{--bdrs:var(--bdrs--10)}.-bdrs\:20{--bdrs:var(--bdrs--20)}.-bdrs\:30{--bdrs:var(--bdrs--30)}.-bdrs\:40{--bdrs:var(--bdrs--40)}.-bdrs\:50{--bdrs:var(--bdrs--50)}.-bdrs\:99{--bdrs:var(--bdrs--99)}.-bdrs\:inner{--bdrs:var(--bdrs--inner)}.-bxsh,[class*="-bxsh:"]{box-shadow:var(--bxsh)}.-bxsh\:0{--bxsh:none}.-bxsh\:5{--bxsh:var(--bxsh--5)}.-bxsh\:10{--bxsh:var(--bxsh--10)}.-bxsh\:20{--bxsh:var(--bxsh--20)}.-bxsh\:30{--bxsh:var(--bxsh--30)}.-bxsh\:40{--bxsh:var(--bxsh--40)}.-bxsh\:50{--bxsh:var(--bxsh--50)}.-pos\:static{position:static}.-pos\:fixed{position:fixed}.-pos\:sticky{position:sticky}.-pos\:rel{position:relative}.-pos\:abs{position:absolute}.-z\:0{z-index:0}.-z\:1{z-index:1}.-z\:99{z-index:99}.-z\:-1{z-index:-1}.-t\:0{top:0}.-t\:50\%{top:50%}.-t\:100\%{top:100%}.-l\:0{left:0}.-l\:50\%{left:50%}.-l\:100\%{left:100%}.-r\:0{right:0}.-r\:50\%{right:50%}.-r\:100\%{right:100%}.-b\:0{bottom:0}.-b\:50\%{bottom:50%}.-b\:100\%{bottom:100%}.-i\:0{inset:0}.-p,[class*="-p:"]{padding:var(--p)}.-p\:0{--p:0}.-p\:5{--p:var(--s5)}.-p\:10{--p:var(--s10)}.-p\:20{--p:var(--s20)}.-p\:30{--p:var(--s30)}.-p\:40{--p:var(--s40)}.-p\:50{--p:var(--s50)}.-p\:60{--p:var(--s60)}.-p\:70{--p:var(--s70)}.-p\:80{--p:var(--s80)}.-px,[class*="-px:"]{padding-inline:var(--px)}.-px\:0{--px:0}.-px\:5{--px:var(--s5)}.-px\:10{--px:var(--s10)}.-px\:20{--px:var(--s20)}.-px\:30{--px:var(--s30)}.-px\:40{--px:var(--s40)}.-px\:50{--px:var(--s50)}.-px\:60{--px:var(--s60)}.-px\:70{--px:var(--s70)}.-px\:80{--px:var(--s80)}.-py,[class*="-py:"]{padding-block:var(--py)}.-py\:0{--py:0}.-py\:5{--py:var(--s5)}.-py\:10{--py:var(--s10)}.-py\:20{--py:var(--s20)}.-py\:30{--py:var(--s30)}.-py\:40{--py:var(--s40)}.-py\:50{--py:var(--s50)}.-py\:60{--py:var(--s60)}.-py\:70{--py:var(--s70)}.-py\:80{--py:var(--s80)}.-px-s{padding-inline-start:var(--px-s)}.-px-e{padding-inline-end:var(--px-e)}.-py-s{padding-block-start:var(--py-s)}.-py-e{padding-block-end:var(--py-e)}.-pl{padding-left:var(--pl)}.-pr{padding-right:var(--pr)}.-pt{padding-top:var(--pt)}.-pb{padding-bottom:var(--pb)}.-m,[class*="-m:"]{margin:var(--m)}.-m\:0{--m:0}.-m\:5{--m:var(--s5)}.-m\:10{--m:var(--s10)}.-m\:20{--m:var(--s20)}.-m\:30{--m:var(--s30)}.-m\:40{--m:var(--s40)}.-m\:50{--m:var(--s50)}.-m\:60{--m:var(--s60)}.-m\:70{--m:var(--s70)}.-m\:80{--m:var(--s80)}.-m\:auto{--m:auto}.-mx,[class*="-mx:"]{margin-inline:var(--mx)}.-mx\:0{--mx:0}.-mx\:5{--mx:var(--s5)}.-mx\:10{--mx:var(--s10)}.-mx\:20{--mx:var(--s20)}.-mx\:30{--mx:var(--s30)}.-mx\:40{--mx:var(--s40)}.-mx\:50{--mx:var(--s50)}.-mx\:60{--mx:var(--s60)}.-mx\:70{--mx:var(--s70)}.-mx\:80{--mx:var(--s80)}.-mx\:auto{--mx:auto}.-my,[class*="-my:"]{margin-block:var(--my)}.-my\:0{--my:0}.-my\:5{--my:var(--s5)}.-my\:10{--my:var(--s10)}.-my\:20{--my:var(--s20)}.-my\:30{--my:var(--s30)}.-my\:40{--my:var(--s40)}.-my\:50{--my:var(--s50)}.-my\:60{--my:var(--s60)}.-my\:70{--my:var(--s70)}.-my\:80{--my:var(--s80)}.-my\:auto{--my:auto}.-mx-s{margin-inline-start:var(--mx-s)}.-mx-s\:auto{margin-inline-start:auto}.-mx-e{margin-inline-end:var(--mx-e)}.-mx-e\:auto{margin-inline-end:auto}.-my-s{margin-block-start:var(--my-s)}.-my-s\:0{margin-block-start:0}.-my-s\:5{margin-block-start:var(--s5)}.-my-s\:10{margin-block-start:var(--s10)}.-my-s\:20{margin-block-start:var(--s20)}.-my-s\:30{margin-block-start:var(--s30)}.-my-s\:40{margin-block-start:var(--s40)}.-my-s\:50{margin-block-start:var(--s50)}.-my-s\:60{margin-block-start:var(--s60)}.-my-s\:70{margin-block-start:var(--s70)}.-my-s\:80{margin-block-start:var(--s80)}.-my-s\:auto{margin-block-start:auto}.-my-e{margin-inline-end:var(--my-e)}.-my-e\:auto{margin-inline-end:auto}.-ml{margin-left:var(--ml)}.-mr{margin-right:var(--mr)}.-mt{margin-top:var(--mt)}.-mb{margin-bottom:var(--mb)}.-g,[class*="-g:"]{gap:var(--g)}.-g\:0{--g:0}.-g\:5{--g:var(--s5)}.-g\:10{--g:var(--s10)}.-g\:20{--g:var(--s20)}.-g\:30{--g:var(--s30)}.-g\:40{--g:var(--s40)}.-g\:50{--g:var(--s50)}.-g\:60{--g:var(--s60)}.-g\:70{--g:var(--s70)}.-g\:80{--g:var(--s80)}.-g\:inherit{gap:inherit}.-g-x{-moz-column-gap:var(--g-x);column-gap:var(--g-x)}.-g-y{row-gap:var(--g-y)}.-fxw{flex-wrap:var(--fxw)}.-fxw\:wrap{flex-wrap:wrap}.-fxd{flex-direction:var(--fxd)}.-fxd\:col{flex-direction:column}.-fxd\:col-r{flex-direction:column-reverse}.-fxd\:row-r{flex-direction:row-reverse}.-fx{flex:var(--fx)}.-fx\:1{flex:1}.-fxg\:1{flex-grow:1}.-fxsh\:0{flex-shrink:0}.-fxb{flex-basis:var(--fxb)}.-gt{grid-template:var(--gt)}.-gt\:repeat{--cols:1;--rows:1;grid-template:repeat(var(--rows),1fr) /repeat(var(--cols),1fr)}.-gta{grid-template-areas:var(--gta)}.-gtc{grid-template-columns:var(--gtc)}.-gtc\:subgrid{grid-template-columns:subgrid}.-gtc\:liquid{--cols:var(--sz--min);--gtc:repeat(auto-fill,minmax(min(var(--cols),100%),1fr))}.-gtr{grid-template-rows:var(--gtr)}.-gtr\:subgrid{grid-template-rows:subgrid}.-gaf{grid-auto-flow:var(--gaf)}.-gaf\:row{grid-auto-flow:row}.-gaf\:col{grid-auto-flow:column}.-ga{grid-area:var(--ga)}.-ga\:1\/1{grid-area:1/1}.-gc{grid-column:var(--gc)}.-gc\:1\/-1{grid-column:1/-1}.-gr{grid-row:var(--gr)}.-gr\:1\/-1{grid-row:1/-1}.-ai{align-items:var(--ai)}.-ai\:start{align-items:start}.-ai\:center{align-items:center}.-ai\:end{align-items:end}.-ai\:stretch{align-items:stretch}.-ai\:flex-s{align-items:flex-start}.-ai\:flex-e{align-items:flex-end}.-ac{align-content:var(--ac)}.-ac\:start{align-content:start}.-ac\:center{align-content:center}.-ac\:end{align-content:end}.-ac\:flex-s{align-content:flex-start}.-ac\:flex-e{align-content:flex-end}.-ac\:between{align-content:space-between}.-ji{justify-items:var(--ji)}.-ji\:start{justify-items:start}.-ji\:center{justify-items:center}.-ji\:end{justify-items:end}.-ji\:stretch{justify-items:stretch}.-ji\:flex-s{justify-items:flex-start}.-ji\:flex-e{justify-items:flex-end}.-jc{justify-content:var(--jc)}.-jc\:start{justify-content:start}.-jc\:center{justify-content:center}.-jc\:end{justify-content:end}.-jc\:flex-s{justify-content:flex-start}.-jc\:flex-e{justify-content:flex-end}.-jc\:between{justify-content:space-between}.-aslf\:start{align-self:start}.-aslf\:center{align-self:center}.-aslf\:end{align-self:end}.-aslf\:stretch{align-self:stretch}.-jslf\:start{justify-self:start}.-jslf\:center{justify-self:center}.-jslf\:end{justify-self:end}.-jslf\:stretch{justify-self:stretch}.-order\:0{order:0}.-order\:1{order:1}.-order\:-1{order:-1}.-translate\:-50X{translate:-50% 0}.-translate\:-50Y{translate:0 -50%}.-translate\:-50XY{translate:-50% -50%}.-rotate\:45{rotate:45deg}.-rotate\:90{rotate:90deg}.-rotate\:-45{rotate:-45deg}.-rotate\:-90{rotate:-90deg}.-scale\:-X{scale:-1 1}.-scale\:-Y{scale:1 -1}.-scale\:-XY{scale:-1 -1}.-ovw\:any{overflow-wrap:anywhere}.-whitespace\:nowrap{white-space:nowrap}.-writing{writing-mode:var(--writing)}.-writing\:vertical{writing-mode:var(--writing--vertical)}.-float\:left{float:left}.-float\:right{float:right}.-clear\:both{clear:both}.-isolation\:isolate{isolation:isolate}@container (min-width: 480px){.-fz_sm{font-size:var(--fz_sm)}.-lh_sm{line-height:var(--lh_sm)}.-d_sm{display:var(--d_sm)}.-ar_sm{aspect-ratio:var(--ar_sm)}.-w_sm{width:var(--w_sm)}.-h_sm{height:var(--h_sm)}.-min-w_sm{min-width:var(--min-w_sm)}.-max-w_sm{max-width:var(--max-w_sm)}.-min-h_sm{min-height:var(--min-h_sm)}.-max-h_sm{max-height:var(--max-h_sm)}.-bg_sm{background:var(--bg_sm)}.-bdw_sm{--bdw:var(--bdw_sm)!important}.-bdrs_sm{border-radius:var(--bdrs_sm);--bdrs:var(--bdrs_sm)!important}.-bxsh_sm{box-shadow:var(--bxsh_sm)}.-p_sm{padding:var(--p_sm);--p:var(--p_sm)!important}.-px_sm{padding-inline:var(--px_sm)}.-py_sm{padding-block:var(--py_sm)}.-px-s_sm{padding-inline-start:var(--px-s_sm)}.-px-e_sm{padding-inline-end:var(--px-e_sm)}.-py-s_sm{padding-block-start:var(--py-s_sm)}.-py-e_sm{padding-block-end:var(--py-e_sm)}.-pl_sm{padding-left:var(--pl_sm)}.-pr_sm{padding-right:var(--pr_sm)}.-pt_sm{padding-top:var(--pt_sm)}.-pb_sm{padding-bottom:var(--pb_sm)}.-m_sm{margin:var(--m_sm);--m:var(--m_sm)!important}.-mx_sm{margin-inline:var(--mx_sm)}.-my_sm{margin-block:var(--my_sm)}.-mx-s_sm{margin-inline-start:var(--mx-s_sm)}.-mx-e_sm{margin-inline-end:var(--mx-e_sm)}.-my-s_sm{margin-block-start:var(--my-s_sm)}.-my-e_sm{margin-inline-end:var(--my-e_sm)}.-ml_sm{margin-left:var(--ml_sm)}.-mr_sm{margin-right:var(--mr_sm)}.-mt_sm{margin-top:var(--mt_sm)}.-mb_sm{margin-bottom:var(--mb_sm)}.-g_sm{gap:var(--g_sm);--g:var(--g_sm)!important}.-g-x_sm{-moz-column-gap:var(--g-x_sm);column-gap:var(--g-x_sm)}.-g-y_sm{row-gap:var(--g-y_sm)}.-cols_sm{--cols:var(--cols_sm)!important}.-rows_sm{--rows:var(--rows_sm)!important}.-fxw_sm{flex-wrap:var(--fxw_sm)}.-fxd_sm{flex-direction:var(--fxd_sm)}.-fx_sm{flex:var(--fx_sm)}.-fxb_sm{flex-basis:var(--fxb_sm)}.-gt_sm{grid-template:var(--gt_sm)}.-gta_sm{grid-template-areas:var(--gta_sm)}.-gtc_sm{grid-template-columns:var(--gtc_sm)}.-gtr_sm{grid-template-rows:var(--gtr_sm)}.-gaf_sm{grid-auto-flow:var(--gaf_sm)}.-ga_sm{grid-area:var(--ga_sm)}.-gc_sm{grid-column:var(--gc_sm)}.-gr_sm{grid-row:var(--gr_sm)}.-ai_sm{align-items:var(--ai_sm)}.-ac_sm{align-content:var(--ac_sm)}.-ji_sm{justify-items:var(--ji_sm)}.-jc_sm{justify-content:var(--jc_sm)}.-writing_sm{writing-mode:var(--writing_sm)}}@container (min-width: 800px){.-fz_md{font-size:var(--fz_md)}.-lh_md{line-height:var(--lh_md)}.-d_md{display:var(--d_md)}.-ar_md{aspect-ratio:var(--ar_md)}.-w_md{width:var(--w_md)}.-h_md{height:var(--h_md)}.-min-w_md{min-width:var(--min-w_md)}.-max-w_md{max-width:var(--max-w_md)}.-min-h_md{min-height:var(--min-h_md)}.-max-h_md{max-height:var(--max-h_md)}.-bg_md{background:var(--bg_md)}.-bdw_md{--bdw:var(--bdw_md)!important}.-bdrs_md{border-radius:var(--bdrs_md);--bdrs:var(--bdrs_md)!important}.-bxsh_md{box-shadow:var(--bxsh_md)}.-p_md{padding:var(--p_md);--p:var(--p_md)!important}.-px_md{padding-inline:var(--px_md)}.-py_md{padding-block:var(--py_md)}.-px-s_md{padding-inline-start:var(--px-s_md)}.-px-e_md{padding-inline-end:var(--px-e_md)}.-py-s_md{padding-block-start:var(--py-s_md)}.-py-e_md{padding-block-end:var(--py-e_md)}.-pl_md{padding-left:var(--pl_md)}.-pr_md{padding-right:var(--pr_md)}.-pt_md{padding-top:var(--pt_md)}.-pb_md{padding-bottom:var(--pb_md)}.-m_md{margin:var(--m_md);--m:var(--m_md)!important}.-mx_md{margin-inline:var(--mx_md)}.-my_md{margin-block:var(--my_md)}.-mx-s_md{margin-inline-start:var(--mx-s_md)}.-mx-e_md{margin-inline-end:var(--mx-e_md)}.-my-s_md{margin-block-start:var(--my-s_md)}.-my-e_md{margin-inline-end:var(--my-e_md)}.-ml_md{margin-left:var(--ml_md)}.-mr_md{margin-right:var(--mr_md)}.-mt_md{margin-top:var(--mt_md)}.-mb_md{margin-bottom:var(--mb_md)}.-g_md{gap:var(--g_md);--g:var(--g_md)!important}.-g-x_md{-moz-column-gap:var(--g-x_md);column-gap:var(--g-x_md)}.-g-y_md{row-gap:var(--g-y_md)}.-cols_md{--cols:var(--cols_md)!important}.-rows_md{--rows:var(--rows_md)!important}.-fxw_md{flex-wrap:var(--fxw_md)}.-fxd_md{flex-direction:var(--fxd_md)}.-fx_md{flex:var(--fx_md)}.-fxb_md{flex-basis:var(--fxb_md)}.-gt_md{grid-template:var(--gt_md)}.-gta_md{grid-template-areas:var(--gta_md)}.-gtc_md{grid-template-columns:var(--gtc_md)}.-gtr_md{grid-template-rows:var(--gtr_md)}.-gaf_md{grid-auto-flow:var(--gaf_md)}.-ga_md{grid-area:var(--ga_md)}.-gc_md{grid-column:var(--gc_md)}.-gr_md{grid-row:var(--gr_md)}.-ai_md{align-items:var(--ai_md)}.-ac_md{align-content:var(--ac_md)}.-ji_md{justify-items:var(--ji_md)}.-jc_md{justify-content:var(--jc_md)}.-writing_md{writing-mode:var(--writing_md)}}@media (any-hover:hover){.-hov\:c:hover{color:var(--hov-c,var(--c--link))}.-hov\:bdc:hover{border-color:var(--hov-bdc,var(--c--link))}.-hov\:bgc:hover{background-color:var(--hov-bgc,var(--c--base-2))}.-hov\:o:hover{opacity:var(--hov-o,.7)!important}.-hov\:bxsh:hover{box-shadow:var(--hov-bxsh,var(--bxsh--40))}}.-hov\:to\:hide{opacity:var(--isHov_,0)}.-hov\:to\:show{opacity:var(--notHov_,0);visibility:var(--notHov_,hidden)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:after,:before{box-sizing:border-box}*{margin:0}h1,h2,h3,h4,h5,h6,p{overflow-wrap:break-word}rt{font-size:50%}img,video{block-size:auto;max-inline-size:100%}audio,img,svg,video{vertical-align:middle}embed,iframe,object{border:none;display:block}button,input,select,textarea{color:inherit;font:inherit;text-transform:none}textarea{resize:vertical}button,label,select,summary{cursor:pointer}:disabled{cursor:not-allowed}[aria-busy=true]{cursor:progress}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.u-trim{margin-block:calc(.5px + var(--HL)*-1)}.u-trimItems>*{--trimHL:calc(0.5px + var(--HL)*-1);margin-block:var(--trimHL)}.u-trimItems>:where(figure,img,button){--trimHL:0px}.u-cbox{--c:color-mix(in srgb,var(--c--text),var(--keycolor) var(--cbox-cPct,40%));--bgc:color-mix(in srgb,var(--c--base),var(--keycolor) var(--cbox-bgPct,5%));--bdc:var(--keycolor);--c--link:var(--keycolor);background-color:var(--bgc);color:var(--c)}.u-itemDivider{--bdw:1px;--bdc:currentColor;gap:var(--bdw);overflow:clip}.u-itemDivider>*{box-shadow:0 0 0 var(--bdw) var(--bdc)}.u-expandedLink{position:static}.u-expandedLink:before{content:"";inset:0;position:absolute;z-index:0}.u-hidden.u-hidden{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0;white-space:nowrap}
|
package/dist/index.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as t } from "./components/
|
|
3
|
-
import { default as d } from "./components/
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as p } from "./components/Lism/
|
|
1
|
+
import { default as r } from "./components/HTML/index.js";
|
|
2
|
+
import { default as t } from "./components/Accordion/index.js";
|
|
3
|
+
import { default as d } from "./components/Tabs/index.js";
|
|
4
|
+
import { default as m } from "./components/Modal/index.js";
|
|
5
|
+
import { default as x } from "./components/Lism/index.js";
|
|
6
|
+
import { default as p } from "./components/Lism/Text.js";
|
|
7
7
|
import { default as n } from "./components/Lism/Link.js";
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as k } from "./components/
|
|
10
|
-
import { default as F } from "./components/
|
|
11
|
-
import { default as S } from "./components/
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as J } from "./components/
|
|
21
|
-
import { default as N } from "./components/
|
|
22
|
-
import { default as P } from "./components/
|
|
23
|
-
import { default as R } from "./components/
|
|
24
|
-
import { default as V } from "./components/
|
|
25
|
-
import { default as Y } from "./components/
|
|
26
|
-
import { default as _ } from "./components/
|
|
8
|
+
import { default as L } from "./components/Dummy/index.js";
|
|
9
|
+
import { default as k } from "./components/Container/index.js";
|
|
10
|
+
import { default as F } from "./components/Layer/index.js";
|
|
11
|
+
import { default as S } from "./components/LinkBox/index.js";
|
|
12
|
+
import { default as y } from "./components/Box/index.js";
|
|
13
|
+
import { default as b } from "./components/Flow/index.js";
|
|
14
|
+
import { default as v } from "./components/Flex/index.js";
|
|
15
|
+
import { default as A } from "./components/Cluster/index.js";
|
|
16
|
+
import { default as H } from "./components/Stack/index.js";
|
|
17
|
+
import { default as W } from "./components/Grid/index.js";
|
|
18
|
+
import { default as j } from "./components/WithSide/index.js";
|
|
19
|
+
import { default as z } from "./components/Center/index.js";
|
|
20
|
+
import { default as J } from "./components/Columns/index.js";
|
|
21
|
+
import { default as N } from "./components/Frame/index.js";
|
|
22
|
+
import { default as P } from "./components/atomic/Decorator/index.js";
|
|
23
|
+
import { default as R } from "./components/atomic/Divider/index.js";
|
|
24
|
+
import { default as V } from "./components/atomic/Icon/index.js";
|
|
25
|
+
import { default as Y } from "./components/atomic/Media/index.js";
|
|
26
|
+
import { default as _ } from "./components/atomic/Spacer/index.js";
|
|
27
27
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
28
|
+
t as Accordion,
|
|
29
|
+
y as Box,
|
|
30
|
+
z as Center,
|
|
31
|
+
A as Cluster,
|
|
32
|
+
J as Columns,
|
|
33
|
+
k as Container,
|
|
34
|
+
P as Decorator,
|
|
35
|
+
R as Divider,
|
|
36
|
+
L as Dummy,
|
|
37
|
+
v as Flex,
|
|
38
|
+
b as Flow,
|
|
39
|
+
N as Frame,
|
|
40
|
+
W as Grid,
|
|
41
|
+
r as HTML,
|
|
42
|
+
V as Icon,
|
|
43
|
+
F as Layer,
|
|
44
44
|
n as Link,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
45
|
+
S as LinkBox,
|
|
46
|
+
x as Lism,
|
|
47
|
+
Y as Media,
|
|
48
|
+
m as Modal,
|
|
49
|
+
_ as Spacer,
|
|
50
|
+
H as Stack,
|
|
51
|
+
d as Tabs,
|
|
52
|
+
p as Text,
|
|
53
|
+
j as WithSide
|
|
54
54
|
};
|
package/dist/lib/getBpData.js
CHANGED
package/dist/lib/getLismProps.js
CHANGED
|
@@ -1,103 +1,68 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
15
|
-
const t =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}, V = Object.keys(C), B = Object.keys(E);
|
|
20
|
-
class K {
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
|
+
var A = (r, t, s) => t in r ? E(r, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : r[t] = s;
|
|
3
|
+
var d = (r, t, s) => A(r, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
+
import { STATES as U, PROPS as P } from "../config/index.js";
|
|
5
|
+
import g from "./isPresetValue.js";
|
|
6
|
+
import V from "./isTokenValue.js";
|
|
7
|
+
import O from "./getUtilKey.js";
|
|
8
|
+
import S from "./getMaybeCssVar.js";
|
|
9
|
+
import _ from "./getBpData.js";
|
|
10
|
+
import b from "./helper/atts.js";
|
|
11
|
+
import x from "./helper/isEmptyObj.js";
|
|
12
|
+
import j from "./helper/filterEmptyObj.js";
|
|
13
|
+
import k from "./helper/splitWithComma.js";
|
|
14
|
+
const z = (r) => {
|
|
15
|
+
const t = P[r];
|
|
16
|
+
return t && (t == null ? void 0 : t.token) || "";
|
|
17
|
+
};
|
|
18
|
+
class w {
|
|
21
19
|
constructor(t) {
|
|
22
20
|
// propList = {};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
variant: f,
|
|
35
|
-
passVars: c,
|
|
36
|
-
// lismVar,
|
|
37
|
-
style: n = {},
|
|
38
|
-
_propConfig: h = {},
|
|
39
|
-
// hasBd,
|
|
40
|
-
...d
|
|
41
|
-
} = t;
|
|
42
|
-
this.lismClass = l || "", this.lismState = structuredClone(r), this.styles = structuredClone(n), this._propConfig = structuredClone(h);
|
|
43
|
-
let a = this.getStateProps(d);
|
|
44
|
-
if (f && l) {
|
|
45
|
-
const $ = l.split(" "), b = $[0], m = f.split(",").map((P) => P.trim()).filter(Boolean).map((P) => `${b}-${P}`);
|
|
46
|
-
this.lismClass = [b, ...m, ...$.slice(1)].join(" ");
|
|
21
|
+
d(this, "className", "");
|
|
22
|
+
d(this, "uClasses", []);
|
|
23
|
+
d(this, "lismState", []);
|
|
24
|
+
d(this, "styles", {});
|
|
25
|
+
d(this, "attrs", {});
|
|
26
|
+
const { forwardedRef: s, class: i, className: l, lismClass: a, layout: e, variant: h, style: f = {}, _propConfig: m = {}, ...o } = t;
|
|
27
|
+
this.styles = { ...f }, this._propConfig = { ...m };
|
|
28
|
+
let n = a || "";
|
|
29
|
+
if (h && a) {
|
|
30
|
+
const u = a.split(" "), y = u[0], $ = `${y}--${h}`;
|
|
31
|
+
n = [y, $, ...u.slice(1)].join(" ");
|
|
47
32
|
}
|
|
48
|
-
|
|
33
|
+
typeof e == "string" && e && (n = b(n, `l--${e}`)), x(o) || (this.attrs = { ...o }, this.analyzeProps()), s && (this.attrs.ref = s), this.className = b(l || i, n, this.lismState, this.uClasses);
|
|
49
34
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
i && Object.keys(s).forEach((e) => {
|
|
54
|
-
const l = i[e];
|
|
55
|
-
if (l) {
|
|
56
|
-
const r = s[e];
|
|
57
|
-
this.analyzeProp(e, r, l);
|
|
58
|
-
} else t === "css" && this.addStyle(e, s[e]);
|
|
59
|
-
});
|
|
35
|
+
analyzeState(t, s) {
|
|
36
|
+
const { className: i, preset: l, presetClass: a, customVar: e, tokenKey: h, setStyles: f } = t;
|
|
37
|
+
s === !0 ? this.lismState.push(i) : l && g(l, s) ? this.lismState.push(`${i} ${a}:${s}`) : s && (this.lismState.push(i), h ? this.addStyle(e, S(s, h)) : f && this.addStyles(f(s)));
|
|
60
38
|
}
|
|
61
39
|
// prop解析
|
|
62
|
-
analyzeProps(
|
|
63
|
-
Object.keys(
|
|
64
|
-
if (
|
|
65
|
-
const
|
|
66
|
-
this.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
this.
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
delete this.attrs[i], this.analyzeProp(i, r);
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
if (B.includes(i)) {
|
|
80
|
-
const r = this.attrs[i];
|
|
81
|
-
delete this.attrs[i], this.setContextProps(i, r);
|
|
82
|
-
return;
|
|
40
|
+
analyzeProps() {
|
|
41
|
+
Object.keys(this.attrs).forEach((t) => {
|
|
42
|
+
if (Object.hasOwn(U, t)) {
|
|
43
|
+
const s = this.extractProp(t), i = U[t];
|
|
44
|
+
typeof i == "string" ? s && this.lismState.push(i) : this.analyzeState(i, s);
|
|
45
|
+
} else if (Object.hasOwn(P, t)) {
|
|
46
|
+
const s = this.attrs[t];
|
|
47
|
+
delete this.attrs[t], this.analyzeLismProp(t, s);
|
|
48
|
+
} else if (t === "hov") {
|
|
49
|
+
const s = this.extractProp(t);
|
|
50
|
+
this.setHovProps(s);
|
|
51
|
+
} else if (t === "css") {
|
|
52
|
+
const s = this.extractProp("css");
|
|
53
|
+
this.addStyles(s);
|
|
83
54
|
}
|
|
84
55
|
});
|
|
85
56
|
}
|
|
86
|
-
//
|
|
87
|
-
|
|
88
|
-
if (s == null
|
|
57
|
+
// Lism Prop 解析
|
|
58
|
+
analyzeLismProp(t, s) {
|
|
59
|
+
if (s == null) return;
|
|
60
|
+
let i = P[t] || null;
|
|
61
|
+
if (i === null) return;
|
|
89
62
|
this._propConfig[t] && (i = Object.assign({}, i, this._propConfig[t]));
|
|
90
|
-
const {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
Object.keys(s).forEach((n) => {
|
|
94
|
-
const { prop: h, context: d } = l(n);
|
|
95
|
-
d ? this.setContextProps(t, { [h]: s[n] }) : this.analyzeProp(h, s[n]);
|
|
96
|
-
});
|
|
97
|
-
} else
|
|
98
|
-
this.setAttrs(e || t, s, r);
|
|
99
|
-
Object.keys(c).forEach((n) => {
|
|
100
|
-
this.setAttrs(e || t, c[n], r, n);
|
|
63
|
+
const { base: l, ...a } = _(s);
|
|
64
|
+
this.setAttrs(t, l, i), Object.keys(a).forEach((e) => {
|
|
65
|
+
this.setAttrs(t, a[e], i, e);
|
|
101
66
|
});
|
|
102
67
|
}
|
|
103
68
|
addUtil(t) {
|
|
@@ -130,114 +95,81 @@ class K {
|
|
|
130
95
|
}
|
|
131
96
|
// utilクラスを追加するか、styleにセットするかの分岐処理 @base
|
|
132
97
|
// 値が null, undefined, '', false の時はスキップ
|
|
133
|
-
setAttrs(t, s, i = {},
|
|
98
|
+
setAttrs(t, s, i = {}, l = "") {
|
|
134
99
|
if (s == null || s === "" || s === !1) return;
|
|
135
|
-
let
|
|
136
|
-
if (
|
|
137
|
-
this.addUtil(`${
|
|
100
|
+
let a = `--${t}`, e = `-${i.utilKey || t}`;
|
|
101
|
+
if (l && (a = `--${t}_${l}`, e += `_${l}`), typeof s == "string" && s.startsWith(":")) {
|
|
102
|
+
this.addUtil(`${e}:${s.replace(":", "")}`);
|
|
138
103
|
return;
|
|
139
104
|
}
|
|
140
|
-
if (!
|
|
141
|
-
|
|
142
|
-
if (
|
|
143
|
-
this.addUtil(`${
|
|
105
|
+
if (!l) {
|
|
106
|
+
const { presets: u, tokenClass: y, utils: $, shorthands: C } = i;
|
|
107
|
+
if (u && g(u, s)) {
|
|
108
|
+
this.addUtil(`${e}:${s}`);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
if (y && V(i.token, s)) {
|
|
112
|
+
this.addUtil(`${e}:${s}`);
|
|
144
113
|
return;
|
|
145
114
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
this.addUtil(`${r}:${a}`);
|
|
151
|
-
return;
|
|
152
|
-
}
|
|
115
|
+
let c = "";
|
|
116
|
+
if ($ && (c = O($, s)), !c && C && (c = O(C, s, !0)), c) {
|
|
117
|
+
this.addUtil(`${e}:${c}`);
|
|
118
|
+
return;
|
|
153
119
|
}
|
|
154
120
|
}
|
|
155
|
-
let { style: f, isVar: c, converter: n } = i;
|
|
156
121
|
if (s === !0 || s === "-") {
|
|
157
|
-
this.addUtil(
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
if ((t === "bgc" || t === "c" || t === "bdc") && typeof s == "string" && s.endsWith("%")) {
|
|
161
|
-
this.setMixColor(t, s);
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
164
|
-
if (n && (s = u(s, n, t)), c && (f = `--${t}`), !e && f) {
|
|
165
|
-
this.addStyle(f, s);
|
|
122
|
+
this.addUtil(e);
|
|
166
123
|
return;
|
|
167
124
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
this.addStyle(`--_${t}1`, u(e, "color", t)), this.addStyle(`--_mixpct-${t}`, l);
|
|
125
|
+
let { prop: h, isVar: f, alwaysVar: m, token: o, bp: n } = i;
|
|
126
|
+
if (o && (s = S(s, o)), !l) {
|
|
127
|
+
if (f) {
|
|
128
|
+
this.addStyle(`--${t}`, s);
|
|
129
|
+
return;
|
|
130
|
+
} else if (!n && !m) {
|
|
131
|
+
this.addStyle(h, s);
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
178
134
|
}
|
|
179
|
-
this.addUtil(
|
|
180
|
-
}
|
|
181
|
-
setPassProps(
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
135
|
+
this.addUtil(e), this.addStyle(a, s);
|
|
136
|
+
}
|
|
137
|
+
// setPassProps(passVars) {
|
|
138
|
+
// let dataList = [];
|
|
139
|
+
// Object.keys(passVars).forEach((propName) => {
|
|
140
|
+
// // プロバイダーリストに追加
|
|
141
|
+
// dataList.push(propName);
|
|
142
|
+
// // 渡す値
|
|
143
|
+
// let value = passVars[propName];
|
|
144
|
+
// if (null === value) return;
|
|
145
|
+
// // トークン値であれば変換
|
|
146
|
+
// value = getMaybeCssVar(value, getTokenKey(propName));
|
|
147
|
+
// this.addStyle(`--pass_${propName}`, value);
|
|
148
|
+
// });
|
|
149
|
+
// }
|
|
150
|
+
setHovProps(t) {
|
|
151
|
+
t && (t === "-" || t === !0 ? this.addUtil("-hov") : typeof t == "string" ? k(t).forEach((s) => {
|
|
191
152
|
this.addUtil(`-hov:${s}`);
|
|
192
153
|
}) : typeof t == "object" && Object.keys(t).forEach((s) => {
|
|
193
154
|
let i = t[s];
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
else if (s === "class")
|
|
198
|
-
S(i).forEach((e) => {
|
|
199
|
-
this.addUtil(`-hov:${e}`);
|
|
200
|
-
});
|
|
201
|
-
else {
|
|
202
|
-
const e = j(s);
|
|
203
|
-
e && (i = u(i, e, s)), this.addUtil(`-hov:${s}`), this.addStyle(`--hov-${s}`, i);
|
|
204
|
-
}
|
|
155
|
+
i == null || i === "" || i === !1 || (i === "-" || i === !0 ? this.addUtil(`-hov:${s}`) : s === "class" ? k(i).forEach((l) => {
|
|
156
|
+
this.addUtil(`-hov:${l}`);
|
|
157
|
+
}) : (i = S(i, z(s)), this.addUtil(`-hov:${s}`), this.addStyle(`--hov-${s}`, i)));
|
|
205
158
|
}));
|
|
206
159
|
}
|
|
207
|
-
setBdProps(t) {
|
|
208
|
-
if (t) {
|
|
209
|
-
if (typeof t == "string" && t.includes(",") && !t.includes("(")) {
|
|
210
|
-
S(t).forEach((s) => {
|
|
211
|
-
const i = x("bd", s) || s;
|
|
212
|
-
i && this.addUtil(`-bd:${i}`);
|
|
213
|
-
});
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
this.analyzeProp("bd", t);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
getStateProps({ skipState: t, isOverwide: s, isFullwide: i, isWide: e, isFlow: l, isContainer: r, hasGutter: f, isLayer: c, isLinkBox: n, ...h }) {
|
|
220
|
-
return t || (r && this.setContainerData(r), l && this.setFlowData(l), s && this.lismState.push("is--overwide"), i && this.lismState.push("is--fullwide"), e && this.lismState.push("is--wide"), f && this.lismState.push("has--gutter")), c && this.lismState.push("is--layer"), n && this.lismState.push("is--linkBox"), h;
|
|
221
|
-
}
|
|
222
|
-
setContainerData(t) {
|
|
223
|
-
t === !0 ? this.lismState.push("is--container") : t && (g("contentSize", t) ? this.lismState.push(`is--container -container:${t}`) : (this.lismState.push("is--container"), this.addStyle("--contentSize", u(t, "size"))));
|
|
224
|
-
}
|
|
225
|
-
setFlowData(t) {
|
|
226
|
-
t === !0 ? this.lismState.push("is--flow") : t && (g("flow", t) ? this.lismState.push(`is--flow -flow:${t}`) : (this.lismState.push("is--flow"), this.addStyle("--flowM", u(t, "space"))));
|
|
227
|
-
}
|
|
228
160
|
}
|
|
229
|
-
function
|
|
230
|
-
if (
|
|
161
|
+
function J(r) {
|
|
162
|
+
if (r.length === 0)
|
|
231
163
|
return {};
|
|
232
|
-
const
|
|
233
|
-
return
|
|
234
|
-
className:
|
|
235
|
-
style:
|
|
164
|
+
const t = new w(r);
|
|
165
|
+
return j({
|
|
166
|
+
className: t.className,
|
|
167
|
+
style: j(t.styles),
|
|
236
168
|
//filterEmptyObj(styles), // filterEmptyObj は最後にかける
|
|
237
|
-
...
|
|
169
|
+
...t.attrs
|
|
238
170
|
// 処理されずに残っているprops
|
|
239
171
|
});
|
|
240
172
|
}
|
|
241
173
|
export {
|
|
242
|
-
|
|
174
|
+
J as default
|
|
243
175
|
};
|
|
@@ -1,61 +1,37 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return p(r);
|
|
16
|
-
case "bxsh":
|
|
17
|
-
return b(r);
|
|
18
|
-
// case 'opacity':
|
|
19
|
-
// return getMaybeOpacityVar(value);
|
|
20
|
-
case "fz":
|
|
21
|
-
return y(r);
|
|
22
|
-
// case 'filter':
|
|
23
|
-
// return getMaybeFilterVar(value);
|
|
24
|
-
default:
|
|
25
|
-
return r;
|
|
26
|
-
}
|
|
27
|
-
else if (t === 1 && n(i, r))
|
|
28
|
-
return `var(--${i}--${r})`;
|
|
29
|
-
return r;
|
|
30
|
-
}
|
|
31
|
-
function e(r, t) {
|
|
32
|
-
return r === 0 || r === "0" ? "0" : typeof r == "number" || o(r) ? `var(--s${r})` : typeof r == "string" && r.includes(" ") && !r.includes("calc(") && !r.includes("var(") && !r.includes(",") ? r.split(" ").map((s) => e(s)).join(" ") : r;
|
|
33
|
-
}
|
|
34
|
-
function f(r, t) {
|
|
35
|
-
if (typeof r == "string" && r.endsWith("%")) {
|
|
36
|
-
const [i, s] = r.split(":");
|
|
37
|
-
return `color-mix(in srgb, ${f(i)} ${s}, transparent)`;
|
|
1
|
+
import { TOKENS as t } from "../config/index.js";
|
|
2
|
+
import f from "./helper/isNumStr.js";
|
|
3
|
+
import n from "./getMaybeTokenValue.js";
|
|
4
|
+
function b(r, o) {
|
|
5
|
+
if (!o) return r;
|
|
6
|
+
switch (o) {
|
|
7
|
+
case "space":
|
|
8
|
+
return s(r);
|
|
9
|
+
case "color":
|
|
10
|
+
return p(r);
|
|
11
|
+
case "bxsh":
|
|
12
|
+
return r === "0" || r === 0 ? "none" : n(o, r, t);
|
|
13
|
+
default:
|
|
14
|
+
return n(o, r, t);
|
|
38
15
|
}
|
|
39
|
-
return n("color", r) ? `var(--c-${r})` : n("palette", r) ? `var(--${r})` : r;
|
|
40
16
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
17
|
+
function s(r) {
|
|
18
|
+
return r === 0 || r === "0" ? "0" : typeof r == "number" || f(r) ? `var(--s${r})` : typeof r == "string" && r.includes(" ") && !r.includes("calc(") && !r.includes("var(") && !r.includes(",") ? r.split(" ").map((i) => s(i)).join(" ") : r;
|
|
43
19
|
}
|
|
44
20
|
function p(r) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
21
|
+
if (typeof r == "string" && r.endsWith("%")) {
|
|
22
|
+
const o = r.split(":");
|
|
23
|
+
if (o.length === 3) {
|
|
24
|
+
const [i, c, e] = o;
|
|
25
|
+
return `color-mix(in srgb, ${n("color", i, t)} ${e}, ${n("color", c, t)})`;
|
|
26
|
+
} else if (o.length === 2) {
|
|
27
|
+
const [i, c] = o;
|
|
28
|
+
return `color-mix(in srgb, ${n("color", i, t)} ${c}, transparent)`;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return n("color", r, t);
|
|
52
32
|
}
|
|
53
33
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
p as getMaybeRadiusVar,
|
|
58
|
-
b as getMaybeShadowVar,
|
|
59
|
-
c as getMaybeSizeVar,
|
|
60
|
-
e as getMaybeSpaceVar
|
|
34
|
+
b as default,
|
|
35
|
+
p as getMaybeColorVar,
|
|
36
|
+
s as getMaybeSpaceVar
|
|
61
37
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
function c(s, r, n) {
|
|
2
|
+
if (typeof s != "string") return r;
|
|
3
|
+
if (s === "color") {
|
|
4
|
+
let i = c("c", r, n);
|
|
5
|
+
return i === r && (i = c("palette", r, n)), i;
|
|
6
|
+
}
|
|
7
|
+
const t = n[s];
|
|
8
|
+
if (!t) return r;
|
|
9
|
+
if (typeof r == "number" && (r = `${r}`), t instanceof Set) {
|
|
10
|
+
if (t.has(r))
|
|
11
|
+
return r.startsWith("-") && (r = `n${r.slice(1)}`), `var(--${s}--${r})`;
|
|
12
|
+
} else if (Array.isArray(t)) {
|
|
13
|
+
if (t.includes(r))
|
|
14
|
+
return r.startsWith("-") && (r = `n${r.slice(1)}`), `var(--${s}--${r})`;
|
|
15
|
+
} else if (typeof t == "object") {
|
|
16
|
+
const { pre: i = "", values: f = [] } = t || {};
|
|
17
|
+
if (f instanceof Set && f.has(r))
|
|
18
|
+
return `var(${i}${r})`;
|
|
19
|
+
if (Array.isArray(f) && f.includes(r))
|
|
20
|
+
return `var(${i}${r})`;
|
|
21
|
+
}
|
|
22
|
+
return r;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
c as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function o(e, r, f = !1) {
|
|
2
|
+
if (e == null || typeof e != "object") return "";
|
|
3
|
+
if (r in e)
|
|
4
|
+
return f ? e[r] : r;
|
|
5
|
+
if (f) return "";
|
|
6
|
+
for (const [n, t] of Object.entries(e))
|
|
7
|
+
if (t === r)
|
|
8
|
+
return n;
|
|
9
|
+
return "";
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
o as default
|
|
13
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function
|
|
2
|
-
return
|
|
1
|
+
function f(n, r) {
|
|
2
|
+
return typeof r == "number" && (r = `${r}`), n instanceof Set ? n.has(r) : Array.isArray(n) ? n.includes(r) : !1;
|
|
3
3
|
}
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
f as default
|
|
6
6
|
};
|