@synnaxlabs/pluto 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Center-8mBjm1cO.js +126 -0
- package/dist/{Center-gEKkAkdh.js.map → Center-8mBjm1cO.js.map} +1 -1
- package/dist/Center-ER_owvfX.cjs +2 -0
- package/dist/{Center-ZAcURh-3.cjs.map → Center-ER_owvfX.cjs.map} +1 -1
- package/dist/Header-9CR1VnwV.js +34 -0
- package/dist/{Header-7x6367IV.js.map → Header-9CR1VnwV.js.map} +1 -1
- package/dist/Header-PpcdP7hn.cjs +2 -0
- package/dist/{Header-5YX6FUn6.cjs.map → Header-PpcdP7hn.cjs.map} +1 -1
- package/dist/Item--h4UWJZo.js +80 -0
- package/dist/{Item-owLU4Xop.js.map → Item--h4UWJZo.js.map} +1 -1
- package/dist/Item-EBiM5yGJ.cjs +2 -0
- package/dist/{Item-HWzX7RK2.cjs.map → Item-EBiM5yGJ.cjs.map} +1 -1
- package/dist/Item-_og4CdwZ.cjs +2 -0
- package/dist/{Item-rkSKzZoh.cjs.map → Item-_og4CdwZ.cjs.map} +1 -1
- package/dist/Item-kbCoFEj2.js +137 -0
- package/dist/{Item-EDdYN2NK.js.map → Item-kbCoFEj2.js.map} +1 -1
- package/dist/Keyboard-IWRXgioJ.js +14 -0
- package/dist/{Keyboard-mE03PKwA.js.map → Keyboard-IWRXgioJ.js.map} +1 -1
- package/dist/Keyboard-bXNOi0bP.cjs +2 -0
- package/dist/{Keyboard-w372197S.cjs.map → Keyboard-bXNOi0bP.cjs.map} +1 -1
- package/dist/Link-16dbGK7G.cjs +2 -0
- package/dist/{Link-xlTZan29.cjs.map → Link-16dbGK7G.cjs.map} +1 -1
- package/dist/Link-fRQvqiYx.js +11 -0
- package/dist/{Link-laNlv47N.js.map → Link-fRQvqiYx.js.map} +1 -1
- package/dist/SelectLevel-DrdlLBOs.cjs +2 -0
- package/dist/{SelectLevel-bGb0dRXh.cjs.map → SelectLevel-DrdlLBOs.cjs.map} +1 -1
- package/dist/SelectLevel-Uod3Ez6y.js +121 -0
- package/dist/{SelectLevel-cewIWtOv.js.map → SelectLevel-Uod3Ez6y.js.map} +1 -1
- package/dist/Selector-8rTHUToj.cjs +2 -0
- package/dist/{Selector-hQLSIYum.cjs.map → Selector-8rTHUToj.cjs.map} +1 -1
- package/dist/Selector-R4SumEUV.js +233 -0
- package/dist/{Selector-R3lL41_i.js.map → Selector-R4SumEUV.js.map} +1 -1
- package/dist/Swatch--Prmb5q_.cjs +2 -0
- package/dist/Swatch--Prmb5q_.cjs.map +1 -0
- package/dist/Swatch-IH4OmVdd.js +82 -0
- package/dist/Swatch-IH4OmVdd.js.map +1 -0
- package/dist/TimeRangeChip-jI9Nn9z8.js +7384 -0
- package/dist/TimeRangeChip-jI9Nn9z8.js.map +1 -0
- package/dist/TimeRangeChip-jQH9NacG.cjs +50 -0
- package/dist/TimeRangeChip-jQH9NacG.cjs.map +1 -0
- package/dist/Toggle-HVxv8bv2.js +10648 -0
- package/dist/Toggle-HVxv8bv2.js.map +1 -0
- package/dist/Toggle-QnKinMl4.cjs +73 -0
- package/dist/Toggle-QnKinMl4.cjs.map +1 -0
- package/dist/Video-iiPAk_ej.cjs +2 -0
- package/dist/{Video-a7BUKvzF.cjs.map → Video-iiPAk_ej.cjs.map} +1 -1
- package/dist/Video-vyIORMaH.js +11 -0
- package/dist/{Video-Vpwp5ao1.js.map → Video-vyIORMaH.js.map} +1 -1
- package/dist/aether.cjs +1 -89
- package/dist/aether.cjs.map +1 -1
- package/dist/aether.js +76 -80
- package/dist/aether.js.map +1 -1
- package/dist/align.cjs +1 -9
- package/dist/align.cjs.map +1 -1
- package/dist/align.js +5 -5
- package/dist/button.cjs +1 -14
- package/dist/button.cjs.map +1 -1
- package/dist/button.js +9 -8
- package/dist/button.js.map +1 -1
- package/dist/color-9QRifwqk.js +9 -0
- package/dist/color-9QRifwqk.js.map +1 -0
- package/dist/color-gJTR__ef.cjs +2 -0
- package/dist/color-gJTR__ef.cjs.map +1 -0
- package/dist/color.cjs +2 -0
- package/dist/color.cjs.map +1 -0
- package/dist/color.js +16 -0
- package/dist/color.js.map +1 -0
- package/dist/component-LA8IXGSG.js +17961 -0
- package/dist/component-LA8IXGSG.js.map +1 -0
- package/dist/component-dgLAEMbt.cjs +23 -0
- package/dist/component-dgLAEMbt.cjs.map +1 -0
- package/dist/css-5RvvUhjr.js +6414 -0
- package/dist/{css-NTD4Xm8x.js.map → css-5RvvUhjr.js.map} +1 -1
- package/dist/css-s9KpanYu.cjs +8 -0
- package/dist/{css-V3VUT_Js.cjs.map → css-s9KpanYu.cjs.map} +1 -1
- package/dist/css.cjs +2 -0
- package/dist/css.cjs.map +1 -0
- package/dist/css.js +10 -0
- package/dist/css.js.map +1 -0
- package/dist/dimensions--C45ahLe.js +20 -0
- package/dist/{dimensions-guJ5PHmb.js.map → dimensions--C45ahLe.js.map} +1 -1
- package/dist/dimensions-HfZjDJQz.cjs +2 -0
- package/dist/{dimensions-Sej0Zly9.cjs.map → dimensions-HfZjDJQz.cjs.map} +1 -1
- package/dist/dropdown.cjs +1 -12
- package/dist/dropdown.cjs.map +1 -1
- package/dist/dropdown.js +7 -6
- package/dist/dropdown.js.map +1 -1
- package/dist/external--jsfNkbo.cjs +2 -0
- package/dist/external--jsfNkbo.cjs.map +1 -0
- package/dist/external-1DGLK9F2.js +17 -0
- package/dist/external-1DGLK9F2.js.map +1 -0
- package/dist/external-4h9H4Y_N.js +21 -0
- package/dist/external-4h9H4Y_N.js.map +1 -0
- package/dist/external-4uqucf0m.js +67 -0
- package/dist/{external-QuVTCnGl.js.map → external-4uqucf0m.js.map} +1 -1
- package/dist/external-A_eQgT5T.cjs +2 -0
- package/dist/external-A_eQgT5T.cjs.map +1 -0
- package/dist/external-FCO_hdNr.js +24 -0
- package/dist/external-FCO_hdNr.js.map +1 -0
- package/dist/external-HZ6f2KvU.cjs +2 -0
- package/dist/external-HZ6f2KvU.cjs.map +1 -0
- package/dist/external-LPdjowBG.cjs +2 -0
- package/dist/external-LPdjowBG.cjs.map +1 -0
- package/dist/external-O1b3FJKI.cjs +2 -0
- package/dist/external-O1b3FJKI.cjs.map +1 -0
- package/dist/external-RGdrJX7y.cjs +2 -0
- package/dist/{external-9Ncn2J9B.cjs.map → external-RGdrJX7y.cjs.map} +1 -1
- package/dist/external-WiHGqQPA.js +30 -0
- package/dist/external-WiHGqQPA.js.map +1 -0
- package/dist/external-eWu6hCLU.cjs +2 -0
- package/dist/external-eWu6hCLU.cjs.map +1 -0
- package/dist/external-kvAz85mu.js +18 -0
- package/dist/external-kvAz85mu.js.map +1 -0
- package/dist/external-mpVdVPF1.js +88 -0
- package/dist/external-mpVdVPF1.js.map +1 -0
- package/dist/external-nTDD8IMd.cjs +2 -0
- package/dist/external-nTDD8IMd.cjs.map +1 -0
- package/dist/external-phknItOL.js +15 -0
- package/dist/external-phknItOL.js.map +1 -0
- package/dist/external-rGcWjp84.cjs +2 -0
- package/dist/{external-zBiIxeDG.cjs.map → external-rGcWjp84.cjs.map} +1 -1
- package/dist/external-r_2-tYfC.js +88 -0
- package/dist/{external-up1sE3F6.js.map → external-r_2-tYfC.js.map} +1 -1
- package/dist/external-sHbzLUrP.js +17 -0
- package/dist/external-sHbzLUrP.js.map +1 -0
- package/dist/external-tZiYBM94.cjs +2 -0
- package/dist/external-tZiYBM94.cjs.map +1 -0
- package/dist/external-tnCo64yx.cjs +2 -0
- package/dist/external-tnCo64yx.cjs.map +1 -0
- package/dist/external-uR-7_68y.js +16 -0
- package/dist/external-uR-7_68y.js.map +1 -0
- package/dist/external-uSIsCKNG.js +15 -0
- package/dist/external-uSIsCKNG.js.map +1 -0
- package/dist/external-z6BLlxur.cjs +2 -0
- package/dist/external-z6BLlxur.cjs.map +1 -0
- package/dist/font-HpLrwPSD.js +16 -0
- package/dist/{font-t7KoGNFX.js.map → font-HpLrwPSD.js.map} +1 -1
- package/dist/font-yosRgv9n.cjs +2 -0
- package/dist/{font-wlgaMRYN.cjs.map → font-yosRgv9n.cjs.map} +1 -1
- package/dist/fontString-_dtZSiPk.cjs +2 -0
- package/dist/{fontString-i24UxKCQ.cjs.map → fontString-_dtZSiPk.cjs.map} +1 -1
- package/dist/fontString-lodjYTYz.js +12 -0
- package/dist/{fontString-RKvYIr5H.js.map → fontString-lodjYTYz.js.map} +1 -1
- package/dist/header.cjs +1 -14
- package/dist/header.cjs.map +1 -1
- package/dist/header.js +9 -8
- package/dist/header.js.map +1 -1
- package/dist/index.cjs +1 -1174
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +737 -930
- package/dist/index.js.map +1 -1
- package/dist/input/Input.stories.d.ts +1 -0
- package/dist/input/TextArea.d.ts +20 -0
- package/dist/input/external.d.ts +1 -0
- package/dist/input/types.d.ts +4 -2
- package/dist/input.cjs +1 -14
- package/dist/input.cjs.map +1 -1
- package/dist/input.js +9 -8
- package/dist/input.js.map +1 -1
- package/dist/jsx-runtime-NmMXPjeo.js +632 -0
- package/dist/{jsx-runtime-rX5tAIG2.js.map → jsx-runtime-NmMXPjeo.js.map} +1 -1
- package/dist/jsx-runtime-evvPGacs.cjs +28 -0
- package/dist/{jsx-runtime-N1ikfypN.cjs.map → jsx-runtime-evvPGacs.cjs.map} +1 -1
- package/dist/list.cjs +1 -26
- package/dist/list.cjs.map +1 -1
- package/dist/list.js +21 -19
- package/dist/list.js.map +1 -1
- package/dist/menu.cjs +1 -15
- package/dist/menu.cjs.map +1 -1
- package/dist/menu.js +10 -9
- package/dist/menu.js.map +1 -1
- package/dist/style.css +1 -3119
- package/dist/table-MJysJcCC.js +10312 -0
- package/dist/table-MJysJcCC.js.map +1 -0
- package/dist/table-NIrLpFOm.cjs +69 -0
- package/dist/table-NIrLpFOm.cjs.map +1 -0
- package/dist/tabs.cjs +1 -14
- package/dist/tabs.cjs.map +1 -1
- package/dist/tabs.js +9 -8
- package/dist/tabs.js.map +1 -1
- package/dist/text.cjs +1 -16
- package/dist/text.cjs.map +1 -1
- package/dist/text.js +11 -10
- package/dist/text.js.map +1 -1
- package/dist/theming.cjs +1 -15
- package/dist/theming.cjs.map +1 -1
- package/dist/theming.js +10 -9
- package/dist/theming.js.map +1 -1
- package/dist/tree.cjs +1 -25
- package/dist/tree.cjs.map +1 -1
- package/dist/tree.js +20 -18
- package/dist/tree.js.map +1 -1
- package/dist/triggers.cjs +1 -15
- package/dist/triggers.cjs.map +1 -1
- package/dist/triggers.js +10 -9
- package/dist/triggers.js.map +1 -1
- package/dist/useDrag-4o21IpGy.js +36 -0
- package/dist/{useDrag-rQt5hv4R.js.map → useDrag-4o21IpGy.js.map} +1 -1
- package/dist/useDrag-l_moa7e3.cjs +2 -0
- package/dist/{useDrag-KRQ7DTg1.cjs.map → useDrag-l_moa7e3.cjs.map} +1 -1
- package/dist/video.cjs +1 -9
- package/dist/video.cjs.map +1 -1
- package/dist/video.js +3 -3
- package/package.json +61 -51
- package/dist/Center-ZAcURh-3.cjs +0 -148
- package/dist/Center-gEKkAkdh.js +0 -149
- package/dist/Header-5YX6FUn6.cjs +0 -35
- package/dist/Header-7x6367IV.js +0 -36
- package/dist/Item-EDdYN2NK.js +0 -171
- package/dist/Item-HWzX7RK2.cjs +0 -170
- package/dist/Item-owLU4Xop.js +0 -97
- package/dist/Item-rkSKzZoh.cjs +0 -96
- package/dist/Keyboard-mE03PKwA.js +0 -14
- package/dist/Keyboard-w372197S.cjs +0 -13
- package/dist/Link-laNlv47N.js +0 -13
- package/dist/Link-xlTZan29.cjs +0 -12
- package/dist/SelectLevel-bGb0dRXh.cjs +0 -152
- package/dist/SelectLevel-cewIWtOv.js +0 -153
- package/dist/Selector-R3lL41_i.js +0 -267
- package/dist/Selector-hQLSIYum.cjs +0 -266
- package/dist/TimeRangeChip-XXXLMCrf.cjs +0 -9316
- package/dist/TimeRangeChip-XXXLMCrf.cjs.map +0 -1
- package/dist/TimeRangeChip-eDCX5pUC.js +0 -9301
- package/dist/TimeRangeChip-eDCX5pUC.js.map +0 -1
- package/dist/Toggle-eOKYw1OT.cjs +0 -13664
- package/dist/Toggle-eOKYw1OT.cjs.map +0 -1
- package/dist/Toggle-kLunfJtR.js +0 -13665
- package/dist/Toggle-kLunfJtR.js.map +0 -1
- package/dist/Video-Vpwp5ao1.js +0 -12
- package/dist/Video-a7BUKvzF.cjs +0 -11
- package/dist/component-joFaJiQW.cjs +0 -24719
- package/dist/component-joFaJiQW.cjs.map +0 -1
- package/dist/component-k78Jq9I7.js +0 -24720
- package/dist/component-k78Jq9I7.js.map +0 -1
- package/dist/css-NTD4Xm8x.js +0 -9206
- package/dist/css-V3VUT_Js.cjs +0 -9204
- package/dist/dimensions-Sej0Zly9.cjs +0 -26
- package/dist/dimensions-guJ5PHmb.js +0 -27
- package/dist/external-2Aicsb3l.js +0 -88
- package/dist/external-2Aicsb3l.js.map +0 -1
- package/dist/external-9Ncn2J9B.cjs +0 -93
- package/dist/external-9RCzxzgZ.js +0 -30
- package/dist/external-9RCzxzgZ.js.map +0 -1
- package/dist/external-9pS8-DvV.js +0 -15
- package/dist/external-9pS8-DvV.js.map +0 -1
- package/dist/external-KxlyA74C.js +0 -20
- package/dist/external-KxlyA74C.js.map +0 -1
- package/dist/external-OSLzuRs1.cjs +0 -14
- package/dist/external-OSLzuRs1.cjs.map +0 -1
- package/dist/external-PS3nzqUn.cjs +0 -23
- package/dist/external-PS3nzqUn.cjs.map +0 -1
- package/dist/external-QRmqSjV0.js +0 -18
- package/dist/external-QRmqSjV0.js.map +0 -1
- package/dist/external-QuVTCnGl.js +0 -71
- package/dist/external-U5HRPaDI.cjs +0 -17
- package/dist/external-U5HRPaDI.cjs.map +0 -1
- package/dist/external-_CtRDtih.js +0 -17
- package/dist/external-_CtRDtih.js.map +0 -1
- package/dist/external-eQU48hM4.cjs +0 -87
- package/dist/external-eQU48hM4.cjs.map +0 -1
- package/dist/external-kbDFnfuk.js +0 -24
- package/dist/external-kbDFnfuk.js.map +0 -1
- package/dist/external-oX1JmOFf.js +0 -17
- package/dist/external-oX1JmOFf.js.map +0 -1
- package/dist/external-oZe6tF4A.cjs +0 -14
- package/dist/external-oZe6tF4A.cjs.map +0 -1
- package/dist/external-tVcmKSsT.cjs +0 -19
- package/dist/external-tVcmKSsT.cjs.map +0 -1
- package/dist/external-up1sE3F6.js +0 -94
- package/dist/external-uvx0b-Jw.cjs +0 -16
- package/dist/external-uvx0b-Jw.cjs.map +0 -1
- package/dist/external-vXBQOmKv.js +0 -15
- package/dist/external-vXBQOmKv.js.map +0 -1
- package/dist/external-yiqRIIvW.cjs +0 -16
- package/dist/external-yiqRIIvW.cjs.map +0 -1
- package/dist/external-zBiIxeDG.cjs +0 -70
- package/dist/external-zw9fckWT.cjs +0 -29
- package/dist/external-zw9fckWT.cjs.map +0 -1
- package/dist/font-t7KoGNFX.js +0 -17
- package/dist/font-wlgaMRYN.cjs +0 -16
- package/dist/fontString-RKvYIr5H.js +0 -13
- package/dist/fontString-i24UxKCQ.cjs +0 -12
- package/dist/jsx-runtime-N1ikfypN.cjs +0 -931
- package/dist/jsx-runtime-rX5tAIG2.js +0 -932
- package/dist/table-8MFXzE4C.js +0 -13664
- package/dist/table-8MFXzE4C.js.map +0 -1
- package/dist/table-VNkSG_Cj.cjs +0 -13661
- package/dist/table-VNkSG_Cj.cjs.map +0 -1
- package/dist/useDrag-KRQ7DTg1.cjs +0 -48
- package/dist/useDrag-rQt5hv4R.js +0 -49
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-
|
|
1
|
+
{"version":3,"file":"external-rGcWjp84.cjs","sources":["../src/triggers/Status.tsx","../src/triggers/Text.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement, useEffect, useState } from \"react\";\n\nimport { Status as CoreStatus } from \"@/status\";\nimport { useContext } from \"@/triggers/Provider\";\nimport { type Trigger } from \"@/triggers/triggers\";\n\nexport interface StatusProps extends CoreStatus.TextProps {}\n\nexport const Status = (props: StatusProps): ReactElement => {\n const { listen } = useContext();\n const [trigger, setTrigger] = useState<Trigger>([]);\n\n useEffect(\n () => listen(({ next: [trigger] }) => setTrigger(trigger ?? [])),\n [listen, setTrigger],\n );\n\n return (\n <CoreStatus.Text hideIcon {...props}>\n {trigger.join(\" \")}\n </CoreStatus.Text>\n );\n};\n","// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement } from \"react\";\n\nimport { Icon } from \"@synnaxlabs/media\";\n\nimport { Align } from \"@/align\";\nimport { Text as Core } from \"@/text\";\nimport { type Key, type Trigger } from \"@/triggers/triggers\";\n\nexport type TextProps<L extends Core.Level> = Core.KeyboardProps<L> & {\n trigger: Trigger;\n};\n\nexport const Text = <L extends Core.Level>({\n className,\n style,\n trigger,\n ...props\n}: TextProps<L>): ReactElement => {\n const CUSTOM_TEXT: Partial<Record<Key, ReactElement | string>> = {\n Control: <Core.Symbols.Meta />,\n Alt: <Core.Symbols.Alt />,\n Shift: <Icon.Keyboard.Shift />,\n MouseLeft: \"Left Click\",\n MouseRight: \"Right Click\",\n MouseMiddle: \"Middle Click\",\n };\n return (\n <Align.Space className={className} style={style} direction=\"x\">\n {trigger.map((t) => (\n // @ts-expect-error\n <Core.Keyboard<L> key={t} {...props}>\n {CUSTOM_TEXT[t] ?? t}\n </Core.Keyboard>\n ))}\n </Align.Space>\n );\n};\n"],"names":["Status","props","listen","useContext","trigger","setTrigger","useState","useEffect","jsx","CoreStatus.Text","Text","className","style","CUSTOM_TEXT","Core.Symbols","Icon","Align.Space","t","Core.Keyboard"],"mappings":"2SAiBaA,EAAUC,GAAqC,CACpD,KAAA,CAAE,OAAAC,GAAWC,EAAAA,eACb,CAACC,EAASC,CAAU,EAAIC,EAAA,SAAkB,CAAE,CAAA,EAElDC,OAAAA,EAAA,UACE,IAAML,EAAO,CAAC,CAAE,KAAM,CAACE,CAAO,CAAA,IAAQC,EAAWD,GAAW,CAAA,CAAE,CAAC,EAC/D,CAACF,EAAQG,CAAU,CAAA,EAInBG,wBAACC,EAAAA,OAAA,CAAgB,SAAQ,GAAE,GAAGR,EAC3B,SAAAG,EAAQ,KAAK,GAAG,CACnB,CAAA,CAEJ,ECVaM,EAAO,CAAuB,CACzC,UAAAC,EACA,MAAAC,EACA,QAAAR,EACA,GAAGH,CACL,IAAkC,CAChC,MAAMY,EAA2D,CAC/D,QAASL,EAAA,kBAAA,IAACM,UAAa,KAAb,CAAA,CAAkB,EAC5B,IAAKN,EAAA,kBAAA,IAACM,UAAa,IAAb,CAAA,CAAiB,EACvB,MAAON,EAAAA,kBAAAA,IAACO,EAAAA,GAAK,SAAS,MAAd,CAAA,CAAoB,EAC5B,UAAW,aACX,WAAY,cACZ,YAAa,cAAA,EAGb,OAAAP,wBAACQ,EAAAA,MAAA,CAAY,UAAAL,EAAsB,MAAAC,EAAc,UAAU,IACxD,SAAQR,EAAA,IAAKa,GAEZT,wBAACU,EAAAA,SAAA,CAA0B,GAAGjB,EAC3B,SAAYY,EAAAI,CAAC,GAAKA,CAAA,EADEA,CAEvB,CACD,CACH,CAAA,CAEJ"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { j as a } from "./jsx-runtime-NmMXPjeo.js";
|
|
2
|
+
import { isValidElement as p, Fragment as u } from "react";
|
|
3
|
+
import { C as n, g as x } from "./css-5RvvUhjr.js";
|
|
4
|
+
import { S as v } from "./Center-8mBjm1cO.js";
|
|
5
|
+
import { I as f, a8 as j, B, W as S } from "./Toggle-HVxv8bv2.js";
|
|
6
|
+
import { u as l, H as g } from "./Header-9CR1VnwV.js";
|
|
7
|
+
import { c as d } from "./component-LA8IXGSG.js";
|
|
8
|
+
const h = ({ children: o = [] }) => {
|
|
9
|
+
const { level: s, divided: e } = l();
|
|
10
|
+
return /* @__PURE__ */ a.jsx(
|
|
11
|
+
v,
|
|
12
|
+
{
|
|
13
|
+
direction: "x",
|
|
14
|
+
size: "small",
|
|
15
|
+
align: "center",
|
|
16
|
+
className: n.BE("header", "actions"),
|
|
17
|
+
children: x(o).map((r, t) => /* @__PURE__ */ a.jsx(C, { index: t, level: s, divided: e, children: r }, t))
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}, C = ({ index: o, level: s, children: e, divided: r }) => {
|
|
21
|
+
let t = e;
|
|
22
|
+
if (!p(e)) {
|
|
23
|
+
const i = e;
|
|
24
|
+
t = /* @__PURE__ */ a.jsx(
|
|
25
|
+
f,
|
|
26
|
+
{
|
|
27
|
+
onClick: (c) => {
|
|
28
|
+
var m;
|
|
29
|
+
c.stopPropagation(), c.preventDefault(), (m = i.onClick) == null || m.call(i, c);
|
|
30
|
+
},
|
|
31
|
+
size: d[s],
|
|
32
|
+
...i
|
|
33
|
+
},
|
|
34
|
+
o
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
return /* @__PURE__ */ a.jsxs(u, { children: [
|
|
38
|
+
r && /* @__PURE__ */ a.jsx(j, {}),
|
|
39
|
+
t
|
|
40
|
+
] }, o);
|
|
41
|
+
}, z = ({
|
|
42
|
+
children: o = "",
|
|
43
|
+
className: s,
|
|
44
|
+
onClick: e,
|
|
45
|
+
...r
|
|
46
|
+
}) => {
|
|
47
|
+
const { level: t } = l();
|
|
48
|
+
return /* @__PURE__ */ a.jsx(
|
|
49
|
+
B,
|
|
50
|
+
{
|
|
51
|
+
variant: "text",
|
|
52
|
+
size: d[t],
|
|
53
|
+
onClick: e,
|
|
54
|
+
className: n(n.B("header-button-title"), s),
|
|
55
|
+
sharp: !0,
|
|
56
|
+
...r,
|
|
57
|
+
children: o
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}, b = ({
|
|
61
|
+
className: o,
|
|
62
|
+
level: s,
|
|
63
|
+
...e
|
|
64
|
+
}) => {
|
|
65
|
+
const { level: r, divided: t } = l();
|
|
66
|
+
return /* @__PURE__ */ a.jsx(
|
|
67
|
+
S,
|
|
68
|
+
{
|
|
69
|
+
className: n(n.BE("header", "text"), o),
|
|
70
|
+
level: s ?? r,
|
|
71
|
+
divided: t,
|
|
72
|
+
...e
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
}, k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76
|
+
__proto__: null,
|
|
77
|
+
Actions: h,
|
|
78
|
+
ButtonTitle: z,
|
|
79
|
+
Header: g,
|
|
80
|
+
Title: b,
|
|
81
|
+
useContext: l
|
|
82
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
83
|
+
export {
|
|
84
|
+
h as A,
|
|
85
|
+
z as B,
|
|
86
|
+
k as e
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=external-r_2-tYfC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-
|
|
1
|
+
{"version":3,"file":"external-r_2-tYfC.js","sources":["../src/header/Actions.tsx","../src/header/ButtonTitle.tsx","../src/header/Title.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { Fragment, isValidElement, type ReactElement } from \"react\";\n\nimport { toArray } from \"@synnaxlabs/x\";\n\nimport { Align } from \"@/align\";\nimport { Button } from \"@/button\";\nimport { CSS } from \"@/css\";\nimport { Divider } from \"@/divider\";\nimport { useContext } from \"@/header/Header\";\nimport { Text } from \"@/text\";\n\nexport type ActionSpec = Button.IconProps | ReactElement;\n\nexport interface ActionsProps {\n children?: ActionSpec | ActionSpec[];\n}\n\n/**\n * Custom actions to render on the right side of the header.\n *\n * @param children - The actions to render. If the action is of type\n * {@link ButtonIconProps}, a correectly sized {@link ButtonIconOnly} is rendered\n * using the given props. If the action is a JSX element, it is renderered directly.\n * It's a good idea to prefer the latter in almost all cases for simplicity.\n */\nexport const Actions = ({ children = [] }: ActionsProps): ReactElement => {\n const { level, divided } = useContext();\n return (\n <Align.Space\n direction=\"x\"\n size=\"small\"\n align=\"center\"\n className={CSS.BE(\"header\", \"actions\")}\n >\n {toArray(children).map((action, i) => (\n <Action key={i} index={i} level={level} divided={divided}>\n {action}\n </Action>\n ))}\n </Align.Space>\n );\n};\n\ninterface ActionProps {\n index: number;\n level: Text.Level;\n children: ReactElement | Button.IconProps;\n divided: boolean;\n}\n\nconst Action = ({ index, level, children, divided }: ActionProps): ReactElement => {\n let content: ReactElement = children as ReactElement;\n if (!isValidElement(children)) {\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n const props = children as Button.IconProps;\n content = (\n <Button.Icon\n onClick={(e) => {\n e.stopPropagation();\n e.preventDefault();\n props.onClick?.(e);\n }}\n key={index}\n size={Text.LevelComponentSizes[level]}\n {...props}\n />\n );\n }\n return (\n <Fragment key={index}>\n {divided && <Divider.Divider />}\n {content}\n </Fragment>\n );\n};\n","// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement } from \"react\";\n\nimport { Button } from \"@/button\";\nimport { CSS } from \"@/css\";\nimport { useContext } from \"@/header/Header\";\nimport { Text } from \"@/text\";\n\nexport interface ButtonTitleProps\n extends Omit<Button.ButtonProps, \"variant\" | \"size\"> {}\n\n/**\n * Header.Title.Use renders a clickable header title.\n *\n * @param props - The comonent props. The props for this component are identical\n * to {@link Button}, except the variant is always 'outlined' and that the component size\n * is automatically inferred from the 'level' prop passsed to the parent {@link Header}\n * component.\n */\nexport const ButtonTitle = ({\n children = \"\",\n className,\n onClick,\n ...props\n}: ButtonTitleProps): ReactElement => {\n const { level } = useContext();\n return (\n <Button.Button\n variant=\"text\"\n size={Text.LevelComponentSizes[level]}\n onClick={onClick}\n className={CSS(CSS.B(\"header-button-title\"), className)}\n sharp\n {...props}\n >\n {children}\n </Button.Button>\n );\n};\n","// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement } from \"react\";\n\nimport { type Optional } from \"@synnaxlabs/x\";\n\nimport { CSS } from \"@/css\";\nimport { useContext } from \"@/header/Header\";\nimport { Text } from \"@/text\";\n\nexport interface TitleProps\n extends Optional<Omit<Text.WithIconProps, \"divided\">, \"level\"> {}\n\n/**\n * Renders the title for the header component.\n *\n * @param props - The component props. The props for this component are identical\n * to the {@link Typography.TextWithIcon} component, except that the 'level', and\n * 'divider' props are inherited from the parent {@link Header} component.\n */\nexport const Title = ({\n className,\n level: propsLevel,\n ...props\n}: TitleProps): ReactElement => {\n const { level, divided } = useContext();\n return (\n <Text.WithIcon\n className={CSS(CSS.BE(\"header\", \"text\"), className)}\n level={propsLevel ?? level}\n divided={divided}\n {...props}\n />\n );\n};\n"],"names":["Actions","children","level","divided","useContext","jsx","Align.Space","CSS","toArray","action","i","Action","index","content","isValidElement","props","Button.Icon","e","_a","Text.LevelComponentSizes","Fragment","Divider.Divider","ButtonTitle","className","onClick","Button.Button","Title","propsLevel","Text.WithIcon"],"mappings":";;;;;;;AAkCO,MAAMA,IAAU,CAAC,EAAE,UAAAC,IAAW,CAAA,QAAqC;AACxE,QAAM,EAAE,OAAAC,GAAO,SAAAC,EAAQ,IAAIC,EAAW;AAEpC,SAAAC,gBAAAA,EAAA;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,MAAK;AAAA,MACL,OAAM;AAAA,MACN,WAAWC,EAAI,GAAG,UAAU,SAAS;AAAA,MAEpC,UAAQC,EAAAP,CAAQ,EAAE,IAAI,CAACQ,GAAQC,MAC7BL,gBAAAA,MAAAM,GAAA,EAAe,OAAOD,GAAG,OAAAR,GAAc,SAAAC,GACrC,UAAAM,EAAA,GADUC,CAEb,CACD;AAAA,IAAA;AAAA,EAAA;AAGP,GASMC,IAAS,CAAC,EAAE,OAAAC,GAAO,OAAAV,GAAO,UAAAD,GAAU,SAAAE,QAAyC;AACjF,MAAIU,IAAwBZ;AACxB,MAAA,CAACa,EAAeb,CAAQ,GAAG;AAE7B,UAAMc,IAAQd;AAEZ,IAAAY,IAAAR,gBAAAA,EAAA;AAAA,MAACW;AAAAA,MAAA;AAAA,QACC,SAAS,CAACC,MAAM;;AACd,UAAAA,EAAE,gBAAgB,GAClBA,EAAE,eAAe,IACjBC,IAAAH,EAAM,YAAN,QAAAG,EAAA,KAAAH,GAAgBE;AAAA,QAClB;AAAA,QAEA,MAAME,EAAyBjB,CAAK;AAAA,QACnC,GAAGa;AAAA,MAAA;AAAA,MAFCH;AAAA,IAAA;AAAA,EAKX;AACA,gCACGQ,GACE,EAAA,UAAA;AAAA,IAAWjB,KAAAE,gBAAAA,EAAAA,IAACgB,GAAA,EAAgB;AAAA,IAC5BR;AAAA,EAAA,EAAA,GAFYD,CAGf;AAEJ,GCxDaU,IAAc,CAAC;AAAA,EAC1B,UAAArB,IAAW;AAAA,EACX,WAAAsB;AAAA,EACA,SAAAC;AAAA,EACA,GAAGT;AACL,MAAsC;AAC9B,QAAA,EAAE,OAAAb,MAAUE;AAEhB,SAAAC,gBAAAA,EAAA;AAAA,IAACoB;AAAAA,IAAA;AAAA,MACC,SAAQ;AAAA,MACR,MAAMN,EAAyBjB,CAAK;AAAA,MACpC,SAAAsB;AAAA,MACA,WAAWjB,EAAIA,EAAI,EAAE,qBAAqB,GAAGgB,CAAS;AAAA,MACtD,OAAK;AAAA,MACJ,GAAGR;AAAA,MAEH,UAAAd;AAAA,IAAA;AAAA,EAAA;AAGP,GCnBayB,IAAQ,CAAC;AAAA,EACpB,WAAAH;AAAA,EACA,OAAOI;AAAA,EACP,GAAGZ;AACL,MAAgC;AAC9B,QAAM,EAAE,OAAAb,GAAO,SAAAC,EAAQ,IAAIC,EAAW;AAEpC,SAAAC,gBAAAA,EAAA;AAAA,IAACuB;AAAAA,IAAA;AAAA,MACC,WAAWrB,EAAIA,EAAI,GAAG,UAAU,MAAM,GAAGgB,CAAS;AAAA,MAClD,OAAOI,KAAczB;AAAA,MACrB,SAAAC;AAAA,MACC,GAAGY;AAAA,IAAA;AAAA,EAAA;AAGV;;;;;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { C as e, a as t, b as o, c as a, I as n, M as s, d as u, u as r, e as C } from "./Item-kbCoFEj2.js";
|
|
2
|
+
const M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
CONTEXT_SELECTED: e,
|
|
5
|
+
CONTEXT_TARGET: t,
|
|
6
|
+
ContextMenu: o,
|
|
7
|
+
CoreItem: a,
|
|
8
|
+
Item: n,
|
|
9
|
+
Menu: s,
|
|
10
|
+
MenuContext: u,
|
|
11
|
+
useContextMenu: r,
|
|
12
|
+
useMenuContext: C
|
|
13
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
14
|
+
export {
|
|
15
|
+
M as e
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=external-sHbzLUrP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-sHbzLUrP.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("./css-s9KpanYu.cjs"),r=require("./Swatch--Prmb5q_.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,Color:e.Color,Picker:r.Picker,Swatch:r.Swatch,ZERO:e.ZERO,cssString:e.cssString,fromHSLA:e.fromHSLA,toHex:e.toHex},Symbol.toStringTag,{value:"Module"}));exports.external=t;
|
|
2
|
+
//# sourceMappingURL=external-tZiYBM94.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-tZiYBM94.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("./Center-ER_owvfX.cjs"),r=Object.freeze(Object.defineProperty({__proto__:null,ALIGNMENTS:e.ALIGNMENTS,Center:e.Center,CoreCenter:e.CoreCenter,JUSTIFICATIONS:e.JUSTIFICATIONS,Pack:e.Pack,Space:e.Space,shouldReverse:e.shouldReverse},Symbol.toStringTag,{value:"Module"}));exports.external=r;
|
|
2
|
+
//# sourceMappingURL=external-tnCo64yx.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-tnCo64yx.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { a as e, Z as o, c as r, f as t, t as a } from "./css-5RvvUhjr.js";
|
|
2
|
+
import { P as s, S as c } from "./Swatch-IH4OmVdd.js";
|
|
3
|
+
const i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
|
+
__proto__: null,
|
|
5
|
+
Color: e,
|
|
6
|
+
Picker: s,
|
|
7
|
+
Swatch: c,
|
|
8
|
+
ZERO: o,
|
|
9
|
+
cssString: r,
|
|
10
|
+
fromHSLA: t,
|
|
11
|
+
toHex: a
|
|
12
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
13
|
+
export {
|
|
14
|
+
i as e
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=external-uR-7_68y.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-uR-7_68y.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { A as e, C as a, a as r, J as o, P as s, S as t, s as l } from "./Center-8mBjm1cO.js";
|
|
2
|
+
const S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
ALIGNMENTS: e,
|
|
5
|
+
Center: a,
|
|
6
|
+
CoreCenter: r,
|
|
7
|
+
JUSTIFICATIONS: o,
|
|
8
|
+
Pack: s,
|
|
9
|
+
Space: t,
|
|
10
|
+
shouldReverse: l
|
|
11
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
12
|
+
export {
|
|
13
|
+
S as e
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=external-uSIsCKNG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-uSIsCKNG.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("./Selector-8rTHUToj.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,Content:e.Content,Provider:e.Provider,Selector:e.Selector,Tabs:e.Tabs,TabsContext:e.TabsContext,rename:e.rename,resetSelection:e.resetSelection,useStatic:e.useStatic,useTabsContext:e.useTabsContext},Symbol.toStringTag,{value:"Module"}));exports.external=t;
|
|
2
|
+
//# sourceMappingURL=external-z6BLlxur.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-z6BLlxur.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { a as i } from "./Toggle-HVxv8bv2.js";
|
|
2
|
+
import { f as o } from "./fontString-lodjYTYz.js";
|
|
3
|
+
const n = (t) => {
|
|
4
|
+
const { theme: s } = i(), e = s.typography[t];
|
|
5
|
+
return {
|
|
6
|
+
...e,
|
|
7
|
+
toString: () => o(s, t),
|
|
8
|
+
baseSize: s.sizes.base,
|
|
9
|
+
lineHeightPx: e.lineHeight * s.sizes.base,
|
|
10
|
+
sizePx: e.size * s.sizes.base
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
n as u
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=font-HpLrwPSD.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"font-
|
|
1
|
+
{"version":3,"file":"font-HpLrwPSD.js","sources":["../src/theming/font.ts"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type Text } from \"@/text\";\nimport { useContext } from \"@/theming/context\";\nimport { fontString } from \"@/theming/core/fontString\";\n\nexport interface UseTypographyReturn extends Text.Spec {\n toString: () => string;\n baseSize: number;\n lineHeightPx: number;\n sizePx: number;\n}\n\nexport const useTypography = (level: Text.Level): UseTypographyReturn => {\n const { theme } = useContext();\n const t = theme.typography[level];\n return {\n ...t,\n toString: () => fontString(theme, level),\n baseSize: theme.sizes.base,\n lineHeightPx: t.lineHeight * theme.sizes.base,\n sizePx: t.size * theme.sizes.base,\n };\n};\n"],"names":["useTypography","level","theme","useContext","t","fontString"],"mappings":";;AAoBa,MAAAA,IAAgB,CAACC,MAA2C;AACjE,QAAA,EAAE,OAAAC,MAAUC,KACZC,IAAIF,EAAM,WAAWD,CAAK;AACzB,SAAA;AAAA,IACL,GAAGG;AAAA,IACH,UAAU,MAAMC,EAAWH,GAAOD,CAAK;AAAA,IACvC,UAAUC,EAAM,MAAM;AAAA,IACtB,cAAcE,EAAE,aAAaF,EAAM,MAAM;AAAA,IACzC,QAAQE,EAAE,OAAOF,EAAM,MAAM;AAAA,EAAA;AAEjC;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const i=require("./Toggle-QnKinMl4.cjs"),n=require("./fontString-_dtZSiPk.cjs"),o=t=>{const{theme:e}=i.useContext(),s=e.typography[t];return{...s,toString:()=>n.fontString(e,t),baseSize:e.sizes.base,lineHeightPx:s.lineHeight*e.sizes.base,sizePx:s.size*e.sizes.base}};exports.useTypography=o;
|
|
2
|
+
//# sourceMappingURL=font-yosRgv9n.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"font-
|
|
1
|
+
{"version":3,"file":"font-yosRgv9n.cjs","sources":["../src/theming/font.ts"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type Text } from \"@/text\";\nimport { useContext } from \"@/theming/context\";\nimport { fontString } from \"@/theming/core/fontString\";\n\nexport interface UseTypographyReturn extends Text.Spec {\n toString: () => string;\n baseSize: number;\n lineHeightPx: number;\n sizePx: number;\n}\n\nexport const useTypography = (level: Text.Level): UseTypographyReturn => {\n const { theme } = useContext();\n const t = theme.typography[level];\n return {\n ...t,\n toString: () => fontString(theme, level),\n baseSize: theme.sizes.base,\n lineHeightPx: t.lineHeight * theme.sizes.base,\n sizePx: t.size * theme.sizes.base,\n };\n};\n"],"names":["useTypography","level","theme","useContext","t","fontString"],"mappings":"6FAoBaA,EAAiBC,GAA2C,CACjE,KAAA,CAAE,MAAAC,GAAUC,EAAAA,aACZC,EAAIF,EAAM,WAAWD,CAAK,EACzB,MAAA,CACL,GAAGG,EACH,SAAU,IAAMC,EAAAA,WAAWH,EAAOD,CAAK,EACvC,SAAUC,EAAM,MAAM,KACtB,aAAcE,EAAE,WAAaF,EAAM,MAAM,KACzC,OAAQE,EAAE,KAAOF,EAAM,MAAM,IAAA,CAEjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fontString-
|
|
1
|
+
{"version":3,"file":"fontString-_dtZSiPk.cjs","sources":["../src/theming/core/fontString.ts"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { ComponentSizeLevels, type Level } from \"@/text/types\";\nimport { type ThemeSpec } from \"@/theming/core/theme\";\nimport { type ComponentSize, isComponentSize } from \"@/util/component\";\n\nexport const fontString = (theme: ThemeSpec, level: Level | ComponentSize): string => {\n const {\n typography,\n sizes: { base },\n } = theme;\n const size =\n typography[isComponentSize(level) ? ComponentSizeLevels[level] : level].size;\n return ` ${base * size}px ${typography.family}`;\n};\n"],"names":["fontString","theme","level","typography","base","size","isComponentSize","ComponentSizeLevels"],"mappings":"yDAaaA,EAAa,CAACC,EAAkBC,IAAyC,CAC9E,KAAA,CACJ,WAAAC,EACA,MAAO,CAAE,KAAAC,CAAK,CACZ,EAAAH,EACEI,EACJF,EAAWG,EAAAA,gBAAgBJ,CAAK,EAAIK,EAAoB,oBAAAL,CAAK,EAAIA,CAAK,EAAE,KAC1E,MAAO,IAAIE,EAAOC,CAAI,MAAMF,EAAW,MAAM,EAC/C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { i as e, C as p } from "./component-LA8IXGSG.js";
|
|
2
|
+
const a = (t, s) => {
|
|
3
|
+
const {
|
|
4
|
+
typography: o,
|
|
5
|
+
sizes: { base: i }
|
|
6
|
+
} = t, n = o[e(s) ? p[s] : s].size;
|
|
7
|
+
return ` ${i * n}px ${o.family}`;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
a as f
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=fontString-lodjYTYz.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fontString-
|
|
1
|
+
{"version":3,"file":"fontString-lodjYTYz.js","sources":["../src/theming/core/fontString.ts"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { ComponentSizeLevels, type Level } from \"@/text/types\";\nimport { type ThemeSpec } from \"@/theming/core/theme\";\nimport { type ComponentSize, isComponentSize } from \"@/util/component\";\n\nexport const fontString = (theme: ThemeSpec, level: Level | ComponentSize): string => {\n const {\n typography,\n sizes: { base },\n } = theme;\n const size =\n typography[isComponentSize(level) ? ComponentSizeLevels[level] : level].size;\n return ` ${base * size}px ${typography.family}`;\n};\n"],"names":["fontString","theme","level","typography","base","size","isComponentSize","ComponentSizeLevels"],"mappings":";AAaa,MAAAA,IAAa,CAACC,GAAkBC,MAAyC;AAC9E,QAAA;AAAA,IACJ,YAAAC;AAAA,IACA,OAAO,EAAE,MAAAC,EAAK;AAAA,EACZ,IAAAH,GACEI,IACJF,EAAWG,EAAgBJ,CAAK,IAAIK,EAAoBL,CAAK,IAAIA,CAAK,EAAE;AAC1E,SAAO,IAAIE,IAAOC,CAAI,MAAMF,EAAW,MAAM;AAC/C;"}
|
package/dist/header.cjs
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const external = require("./external-9Ncn2J9B.cjs");
|
|
4
|
-
require("./jsx-runtime-N1ikfypN.cjs");
|
|
5
|
-
require("react");
|
|
6
|
-
require("./css-V3VUT_Js.cjs");
|
|
7
|
-
require("zod");
|
|
8
|
-
require("./Center-ZAcURh-3.cjs");
|
|
9
|
-
require("./Toggle-eOKYw1OT.cjs");
|
|
10
|
-
require("./component-joFaJiQW.cjs");
|
|
11
|
-
require("react-dom");
|
|
12
|
-
require("react-hook-form");
|
|
13
|
-
require("./Header-5YX6FUn6.cjs");
|
|
14
|
-
exports.Header = external.external;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-RGdrJX7y.cjs");require("./jsx-runtime-evvPGacs.cjs");require("react");require("./css-s9KpanYu.cjs");require("zod");require("./Center-ER_owvfX.cjs");require("./Toggle-QnKinMl4.cjs");require("./component-dgLAEMbt.cjs");require("react-dom");require("./color-gJTR__ef.cjs");require("react-hook-form");require("./Header-PpcdP7hn.cjs");exports.Header=e.external;
|
|
15
2
|
//# sourceMappingURL=header.cjs.map
|
package/dist/header.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"header.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/header.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { e } from "./external-
|
|
2
|
-
import "./jsx-runtime-
|
|
1
|
+
import { e as b } from "./external-r_2-tYfC.js";
|
|
2
|
+
import "./jsx-runtime-NmMXPjeo.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "./css-
|
|
4
|
+
import "./css-5RvvUhjr.js";
|
|
5
5
|
import "zod";
|
|
6
|
-
import "./Center-
|
|
7
|
-
import "./Toggle-
|
|
8
|
-
import "./component-
|
|
6
|
+
import "./Center-8mBjm1cO.js";
|
|
7
|
+
import "./Toggle-HVxv8bv2.js";
|
|
8
|
+
import "./component-LA8IXGSG.js";
|
|
9
9
|
import "react-dom";
|
|
10
|
+
import "./color-9QRifwqk.js";
|
|
10
11
|
import "react-hook-form";
|
|
11
|
-
import "./Header-
|
|
12
|
+
import "./Header-9CR1VnwV.js";
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
+
b as Header
|
|
14
15
|
};
|
|
15
16
|
//# sourceMappingURL=header.js.map
|
package/dist/header.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"header.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|