bromcom-ui 2.11.2-test.0 → 2.12.0-test.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/bromcom-ui/bromcom-ui.css +1 -1
- package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
- package/dist/bromcom-ui/{p-c49b6287.entry.js → p-01416407.entry.js} +1 -1
- package/dist/bromcom-ui/p-0218b337.js +5 -0
- package/dist/bromcom-ui/p-055e4575.entry.js +5 -0
- package/dist/bromcom-ui/p-0a1c01fa.entry.js +5 -0
- package/dist/bromcom-ui/p-0d207b61.entry.js +5 -0
- package/dist/bromcom-ui/{p-a42fbe84.entry.js → p-183bc78f.entry.js} +1 -1
- package/dist/bromcom-ui/p-195c5945.entry.js +5 -0
- package/dist/bromcom-ui/p-1e793658.entry.js +5 -0
- package/dist/bromcom-ui/{p-e8eaa3bb.entry.js → p-28f78dd4.entry.js} +1 -1
- package/dist/bromcom-ui/p-2ab4e748.entry.js +5 -0
- package/dist/bromcom-ui/p-2fbae1fa.entry.js +5 -0
- package/dist/bromcom-ui/p-2fdde750.entry.js +5 -0
- package/dist/bromcom-ui/{p-a6aa173f.entry.js → p-3078fcd2.entry.js} +1 -1
- package/dist/bromcom-ui/p-30a06f92.js +5 -0
- package/dist/bromcom-ui/p-310cab1a.js +14 -0
- package/dist/bromcom-ui/p-3182df7e.js +10 -0
- package/dist/bromcom-ui/{p-1b558b0f.entry.js → p-3960cae8.entry.js} +1 -1
- package/dist/bromcom-ui/p-39eb3017.entry.js +5 -0
- package/dist/bromcom-ui/{p-59f7fa84.entry.js → p-3a06c6b1.entry.js} +1 -1
- package/dist/bromcom-ui/p-3dba7987.js +5 -0
- package/dist/bromcom-ui/{p-f7e70814.entry.js → p-3e63aea1.entry.js} +1 -1
- package/dist/bromcom-ui/p-3f8853a8.entry.js +5 -0
- package/dist/bromcom-ui/p-4680865d.js +5 -0
- package/dist/bromcom-ui/p-4689c10d.entry.js +5 -0
- package/dist/bromcom-ui/{p-d01426b6.entry.js → p-4e33341b.entry.js} +1 -1
- package/dist/bromcom-ui/p-516eb821.entry.js +5 -0
- package/dist/bromcom-ui/{p-894c02ef.entry.js → p-54c2dc4e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b66e0388.entry.js → p-56fca120.entry.js} +1 -1
- package/dist/bromcom-ui/{p-69c64256.entry.js → p-57d2c129.entry.js} +1 -1
- package/dist/bromcom-ui/{p-270e1b24.entry.js → p-59294a5a.entry.js} +1 -1
- package/dist/bromcom-ui/p-5a6caa99.entry.js +5 -0
- package/dist/bromcom-ui/{p-9098db35.entry.js → p-5bea1cd3.entry.js} +1 -1
- package/dist/bromcom-ui/{p-666d9883.entry.js → p-5e50d99c.entry.js} +1 -1
- package/dist/bromcom-ui/p-5f04686a.entry.js +5 -0
- package/dist/bromcom-ui/p-619d632d.entry.js +5 -0
- package/dist/bromcom-ui/p-626a65e9.js +5 -0
- package/dist/bromcom-ui/{p-8b3eafe7.entry.js → p-67a6f0b1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-695d8d34.entry.js → p-68fb3f60.entry.js} +1 -1
- package/dist/bromcom-ui/{p-80a43d63.js → p-6b55a1fe.js} +1 -1
- package/dist/bromcom-ui/{p-a0d6d680.js → p-6b5ed4d8.js} +1 -1
- package/dist/bromcom-ui/p-70761906.entry.js +5 -0
- package/dist/bromcom-ui/{p-6c6beb41.entry.js → p-72bbcca6.entry.js} +1 -1
- package/dist/bromcom-ui/{p-70c2412a.entry.js → p-74cedefe.entry.js} +1 -1
- package/dist/bromcom-ui/p-76edf59f.js +7 -0
- package/dist/bromcom-ui/{p-fc27c9ca.entry.js → p-7c43d2ac.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f9b59bcc.entry.js → p-7edab876.entry.js} +1 -1
- package/dist/bromcom-ui/{p-d59d9687.entry.js → p-7f1612df.entry.js} +1 -1
- package/dist/bromcom-ui/{p-61753299.js → p-816fbffd.js} +1 -1
- package/dist/bromcom-ui/p-86bfeae7.entry.js +5 -0
- package/dist/bromcom-ui/{p-0cd4e8a1.entry.js → p-8858f845.entry.js} +1 -1
- package/dist/bromcom-ui/{p-2270e612.entry.js → p-89cffdc1.entry.js} +1 -1
- package/dist/bromcom-ui/{p-32c55505.entry.js → p-8c3535b6.entry.js} +1 -1
- package/dist/bromcom-ui/p-8de5e85a.entry.js +5 -0
- package/dist/bromcom-ui/p-8e2fc0fb.entry.js +5 -0
- package/dist/bromcom-ui/{p-c6b86846.entry.js → p-8eec338f.entry.js} +1 -1
- package/dist/bromcom-ui/{p-4393b33e.entry.js → p-903d62ff.entry.js} +1 -1
- package/dist/bromcom-ui/{p-f2e06aca.entry.js → p-90b3e6b7.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9589f69c.entry.js → p-91873347.entry.js} +1 -1
- package/dist/bromcom-ui/{p-50926f4c.entry.js → p-91c0ab1c.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b6e6027b.entry.js → p-94fd1636.entry.js} +1 -1
- package/dist/bromcom-ui/p-a5830216.entry.js +5 -0
- package/dist/bromcom-ui/{p-5196912d.js → p-a8fd6d69.js} +1 -1
- package/dist/bromcom-ui/{p-d51f76b2.js → p-aaed6cc7.js} +1 -1
- package/dist/bromcom-ui/{p-4757735e.js → p-b175108e.js} +1 -1
- package/dist/bromcom-ui/{p-77b1dbdd.entry.js → p-b284e383.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ad8d9e10.entry.js → p-b378aff5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-9b59c689.entry.js → p-b3fe26a3.entry.js} +1 -1
- package/dist/bromcom-ui/p-b4548f75.entry.js +5 -0
- package/dist/bromcom-ui/{p-77ef609e.entry.js → p-ba3c6657.entry.js} +1 -1
- package/dist/bromcom-ui/p-bba4602d.entry.js +5 -0
- package/dist/bromcom-ui/p-bd640601.entry.js +5 -0
- package/dist/bromcom-ui/{p-09318a64.js → p-be7e5e83.js} +1 -1
- package/dist/bromcom-ui/p-be970dce.entry.js +5 -0
- package/dist/bromcom-ui/p-bed627ab.js +11 -0
- package/dist/bromcom-ui/p-bf2dcc43.entry.js +5 -0
- package/dist/bromcom-ui/p-c1c4d275.entry.js +5 -0
- package/dist/bromcom-ui/{p-543457d1.entry.js → p-c2620166.entry.js} +1 -1
- package/dist/bromcom-ui/p-c4b075da.entry.js +5 -0
- package/dist/bromcom-ui/{p-f6169b46.js → p-c4d3aee2.js} +1 -1
- package/dist/bromcom-ui/{p-195c1819.entry.js → p-c7a3c347.entry.js} +1 -1
- package/dist/bromcom-ui/{p-00c28e19.entry.js → p-c9aa4a0d.entry.js} +1 -1
- package/dist/bromcom-ui/{p-79153d4a.entry.js → p-cfffca09.entry.js} +1 -1
- package/dist/bromcom-ui/{p-3b38d001.js → p-d0dc95ae.js} +1 -1
- package/dist/bromcom-ui/{p-8b6d3a37.js → p-d2f863d9.js} +1 -1
- package/dist/bromcom-ui/{p-86384d20.entry.js → p-d9157255.entry.js} +1 -1
- package/dist/bromcom-ui/p-d971ec3b.entry.js +5 -0
- package/dist/bromcom-ui/p-de5a0e24.entry.js +5 -0
- package/dist/bromcom-ui/{p-a486613b.entry.js → p-df185078.entry.js} +1 -1
- package/dist/bromcom-ui/p-e0aa747b.entry.js +5 -0
- package/dist/bromcom-ui/{p-b85fd5f4.entry.js → p-e2e529ef.entry.js} +1 -1
- package/dist/bromcom-ui/{p-6657830f.js → p-e45c1546.js} +1 -1
- package/dist/bromcom-ui/p-e61cd999.entry.js +5 -0
- package/dist/bromcom-ui/{p-34740cfd.entry.js → p-e671e409.entry.js} +1 -1
- package/dist/bromcom-ui/{p-ccbb5a6b.js → p-e6755449.js} +1 -1
- package/dist/bromcom-ui/p-ebcb30ef.entry.js +5 -0
- package/dist/bromcom-ui/{p-ef4baf81.entry.js → p-ed1fb15d.entry.js} +1 -1
- package/dist/bromcom-ui/p-f06f42dc.entry.js +5 -0
- package/dist/bromcom-ui/{p-207c20c6.entry.js → p-f144de37.entry.js} +1 -1
- package/dist/bromcom-ui/{p-fc787048.entry.js → p-f1550bf5.entry.js} +1 -1
- package/dist/bromcom-ui/{p-b3f7b64d.entry.js → p-f9a7a32e.entry.js} +1 -1
- package/dist/bromcom-ui/{p-beaec5b8.js → p-fcc6f71e.js} +1 -1
- package/dist/bromcom-ui/p-fd8a6bb8.entry.js +5 -0
- package/dist/bromcom-ui/p-fe39eea8.js +5 -0
- package/dist/cjs/Overflow-7a86d378.js +2233 -0
- package/dist/cjs/bcm-accordion.cjs.entry.js +3 -3
- package/dist/cjs/bcm-alert.cjs.entry.js +3 -3
- package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +7 -6
- package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +7 -6
- package/dist/cjs/bcm-attendance-actions.cjs.entry.js +7 -6
- package/dist/cjs/bcm-attendance.cjs.entry.js +3 -3
- package/dist/cjs/bcm-avatar_2.cjs.entry.js +7 -6
- package/dist/cjs/bcm-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/bcm-button-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-button_11.cjs.entry.js +3340 -0
- package/dist/cjs/bcm-caption.cjs.entry.js +7 -6
- package/dist/cjs/bcm-card.cjs.entry.js +4 -4
- package/dist/cjs/bcm-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +3 -3
- package/dist/cjs/bcm-checkbox_2.cjs.entry.js +4 -4
- package/dist/cjs/bcm-chip-group.cjs.entry.js +7 -6
- package/dist/cjs/bcm-chip.cjs.entry.js +4 -4
- package/dist/cjs/bcm-collapse.cjs.entry.js +3 -3
- package/dist/cjs/bcm-color-input.cjs.entry.js +7 -6
- package/dist/cjs/bcm-date-picker.cjs.entry.js +182 -0
- package/dist/cjs/bcm-date.cjs.entry.js +182 -0
- package/dist/cjs/bcm-datetime-picker.cjs.entry.js +1450 -0
- package/dist/cjs/bcm-default.cjs.entry.js +3 -3
- package/dist/cjs/bcm-drawer.cjs.entry.js +7 -6
- package/dist/cjs/bcm-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/bcm-expansion-panel.cjs.entry.js +4 -4
- package/dist/cjs/bcm-form-2.cjs.entry.js +213 -0
- package/dist/cjs/bcm-input-custom.cjs.entry.js +3 -3
- package/dist/cjs/bcm-input-dropdown.cjs.entry.js +7 -6
- package/dist/cjs/bcm-item.cjs.entry.js +4 -4
- package/dist/cjs/bcm-items.cjs.entry.js +3 -3
- package/dist/cjs/bcm-list_3.cjs.entry.js +21 -19
- package/dist/cjs/bcm-menu.cjs.entry.js +8 -7
- package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +7 -6
- package/dist/cjs/bcm-modal-2-header.cjs.entry.js +7 -6
- package/dist/cjs/bcm-modal-2.cjs.entry.js +7 -6
- package/dist/cjs/bcm-modal.cjs.entry.js +3 -3
- package/dist/cjs/bcm-old-input.cjs.entry.js +397 -0
- package/dist/cjs/bcm-overlay_2.cjs.entry.js +1 -1
- package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +4 -4
- package/dist/cjs/bcm-popconfirm.cjs.entry.js +3 -3
- package/dist/cjs/bcm-popover.cjs.entry.js +7 -6
- package/dist/cjs/bcm-progress.cjs.entry.js +4 -4
- package/dist/cjs/bcm-radio-group.cjs.entry.js +7 -6
- package/dist/cjs/bcm-radio.cjs.entry.js +8 -7
- package/dist/cjs/bcm-range.cjs.entry.js +3 -3
- package/dist/cjs/bcm-rc-picker.cjs.entry.js +9986 -0
- package/dist/cjs/bcm-shortcut.cjs.entry.js +7 -6
- package/dist/cjs/bcm-skeleton.cjs.entry.js +7 -6
- package/dist/cjs/bcm-step.cjs.entry.js +4 -4
- package/dist/cjs/bcm-stepper.cjs.entry.js +8 -7
- package/dist/cjs/bcm-switch.cjs.entry.js +3 -3
- package/dist/cjs/bcm-tab-group.cjs.entry.js +7 -6
- package/dist/cjs/bcm-tab-item-header.cjs.entry.js +7 -6
- package/dist/cjs/bcm-tab-item.cjs.entry.js +7 -6
- package/dist/cjs/bcm-table.cjs.entry.js +7 -6
- package/dist/cjs/bcm-tag.cjs.entry.js +4 -4
- package/dist/cjs/bcm-text.cjs.entry.js +2 -2
- package/dist/cjs/bcm-textarea.cjs.entry.js +4 -4
- package/dist/cjs/bcm-time-picker.cjs.entry.js +150 -0
- package/dist/cjs/bcm-toast.cjs.entry.js +3 -3
- package/dist/cjs/bromcom-ui.cjs.js +3 -3
- package/dist/cjs/{color-helper-c3a819ea.js → color-helper-dc98a2ca.js} +1 -1
- package/dist/cjs/{colors-078851ec.js → colors-250d0982.js} +13 -7
- package/dist/cjs/datetime-helper-eaf4fadb.js +11 -0
- package/dist/cjs/{generate-64f84d95.js → generate-c09a3ff3.js} +2 -2
- package/dist/cjs/{global-895f2946.js → global-6b15ed51.js} +1 -1
- package/dist/cjs/{Overflow-a821abd0.js → index-e05a7c6f.js} +87 -2311
- package/dist/cjs/{input-template-9c106337.js → input-template-8ca49c2e.js} +1 -1
- package/dist/cjs/{json-parse-decarator-9db107be.js → json-parse-decarator-d32b1b4a.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/moment-d06b012f.js +4601 -0
- package/dist/cjs/{number-helper-f9323233.js → number-helper-243f0583.js} +1 -1
- package/dist/cjs/old-bcm-popover-box.cjs.entry.js +4 -4
- package/dist/cjs/old-bcm-popover.cjs.entry.js +3 -3
- package/dist/cjs/{package-992c024f.js → package-6483ada2.js} +1 -1
- package/dist/cjs/{stepper-states-b3496b3f.js → stepper-states-4e435c7d.js} +1 -1
- package/dist/cjs/{tooltip-helper-cb99c02e.js → tooltip-helper-31cc88d8.js} +5 -4
- package/dist/cjs/{validators-abb0434a.js → validators-e7423b70.js} +1 -6
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/molecules/input/input.style.js +117 -0
- package/dist/collection/components/molecules/input/input2.js +918 -0
- package/dist/collection/components/molecules/number-input/number-input.js +776 -95
- package/dist/collection/components/molecules/number-input/react-input.js +96 -0
- package/dist/collection/components/molecules/radio/radio.js +1 -1
- package/dist/collection/components/organism/form/form.js +2 -2
- package/dist/collection/components/organism/form-2/bcm-form-components.js +2 -1
- package/dist/components/bcm-form-2.js +2 -1
- package/dist/components/bcm-input-2.d.ts +11 -0
- package/dist/components/bcm-input-2.js +225 -0
- package/dist/components/bcm-number-input.js +295 -79
- package/dist/components/bcm-react-number.d.ts +11 -0
- package/dist/components/bcm-react-number.js +10 -0
- package/dist/components/colors2.js +13 -7
- package/dist/components/form.js +2 -2
- package/dist/components/generate.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/input.style.js +120 -0
- package/dist/components/radio.js +1 -1
- package/dist/components/react-input.js +1242 -0
- package/dist/esm/Overflow-32a0ec34.js +2217 -0
- package/dist/esm/{_commonjsHelpers-82aa9212.js → _commonjsHelpers-be0d4ec8.js} +1 -1
- package/dist/esm/bcm-accordion.entry.js +4 -4
- package/dist/esm/bcm-alert.entry.js +6 -6
- package/dist/esm/bcm-attendance-actions-comment.entry.js +9 -8
- package/dist/esm/bcm-attendance-actions-dropdown.entry.js +10 -9
- package/dist/esm/bcm-attendance-actions.entry.js +10 -9
- package/dist/esm/bcm-attendance.entry.js +4 -4
- package/dist/esm/bcm-autocomplete.entry.js +2 -2
- package/dist/esm/bcm-avatar_2.entry.js +9 -8
- package/dist/esm/bcm-breadcrumb.entry.js +5 -5
- package/dist/esm/bcm-button-group.entry.js +6 -6
- package/dist/esm/bcm-button_11.entry.js +3326 -0
- package/dist/esm/bcm-caption.entry.js +11 -10
- package/dist/esm/bcm-card.entry.js +8 -8
- package/dist/esm/bcm-checkbox-group.entry.js +6 -6
- package/dist/esm/bcm-checkbox-lite_9.entry.js +5 -5
- package/dist/esm/bcm-checkbox_2.entry.js +9 -9
- package/dist/esm/bcm-chip-group.entry.js +12 -11
- package/dist/esm/bcm-chip.entry.js +6 -6
- package/dist/esm/bcm-collapse.entry.js +6 -6
- package/dist/esm/bcm-color-input.entry.js +9 -8
- package/dist/esm/bcm-colorpicker.entry.js +2 -2
- package/dist/esm/bcm-date-picker.entry.js +178 -0
- package/dist/esm/bcm-date.entry.js +178 -0
- package/dist/esm/bcm-datetime-picker.entry.js +1446 -0
- package/dist/esm/bcm-default.entry.js +4 -4
- package/dist/esm/bcm-drawer.entry.js +10 -9
- package/dist/esm/bcm-dropdown.entry.js +6 -6
- package/dist/esm/bcm-error-layout.entry.js +2 -2
- package/dist/esm/bcm-expansion-panel.entry.js +7 -7
- package/dist/esm/bcm-form-2.entry.js +209 -0
- package/dist/esm/bcm-input-custom.entry.js +5 -5
- package/dist/esm/bcm-input-dropdown.entry.js +11 -10
- package/dist/esm/bcm-item.entry.js +6 -6
- package/dist/esm/bcm-items.entry.js +5 -5
- package/dist/esm/bcm-link.entry.js +2 -2
- package/dist/esm/bcm-list_3.entry.js +16 -14
- package/dist/esm/bcm-menu.entry.js +11 -10
- package/dist/esm/bcm-message.entry.js +2 -2
- package/dist/esm/bcm-modal-2-footer.entry.js +10 -9
- package/dist/esm/bcm-modal-2-header.entry.js +9 -8
- package/dist/esm/bcm-modal-2.entry.js +10 -9
- package/dist/esm/bcm-modal.entry.js +7 -7
- package/dist/esm/bcm-notification.entry.js +2 -2
- package/dist/esm/bcm-old-input.entry.js +393 -0
- package/dist/esm/bcm-old-tag_2.entry.js +2 -2
- package/dist/esm/bcm-overlay_2.entry.js +3 -3
- package/dist/esm/bcm-popconfirm-box.entry.js +8 -8
- package/dist/esm/bcm-popconfirm.entry.js +5 -5
- package/dist/esm/bcm-popover.entry.js +9 -8
- package/dist/esm/bcm-progress.entry.js +6 -6
- package/dist/esm/bcm-radio-group.entry.js +11 -10
- package/dist/esm/bcm-radio.entry.js +11 -10
- package/dist/esm/bcm-range.entry.js +5 -5
- package/dist/esm/{bcm-button_15.entry.js → bcm-rc-picker.entry.js} +9 -8632
- package/dist/esm/bcm-result.entry.js +2 -2
- package/dist/esm/bcm-select-group.entry.js +2 -2
- package/dist/esm/bcm-select-option.entry.js +2 -2
- package/dist/esm/bcm-select.entry.js +3 -3
- package/dist/esm/bcm-shortcut.entry.js +10 -9
- package/dist/esm/bcm-skeleton.entry.js +9 -8
- package/dist/esm/bcm-step.entry.js +6 -6
- package/dist/esm/bcm-stepper.entry.js +11 -10
- package/dist/esm/bcm-switch.entry.js +6 -6
- package/dist/esm/bcm-tab-group.entry.js +9 -8
- package/dist/esm/bcm-tab-item-header.entry.js +10 -9
- package/dist/esm/bcm-tab-item.entry.js +9 -8
- package/dist/esm/bcm-tab-pane.entry.js +2 -2
- package/dist/esm/bcm-tab.entry.js +2 -2
- package/dist/esm/bcm-table.entry.js +10 -9
- package/dist/esm/bcm-tabs-content.entry.js +2 -2
- package/dist/esm/bcm-tabs.entry.js +2 -2
- package/dist/esm/bcm-tag.entry.js +6 -6
- package/dist/esm/bcm-text.entry.js +6 -6
- package/dist/esm/bcm-textarea.entry.js +7 -7
- package/dist/esm/bcm-time-picker.entry.js +146 -0
- package/dist/esm/bcm-timeline-item.entry.js +2 -2
- package/dist/esm/bcm-timeline.entry.js +2 -2
- package/dist/esm/bcm-toast.entry.js +6 -6
- package/dist/esm/bromcom-ui.js +3 -3
- package/dist/esm/{caption-template-fd7738eb.js → caption-template-5c43c733.js} +1 -1
- package/dist/esm/{color-helper-3b528349.js → color-helper-c0bb1d8a.js} +1 -1
- package/dist/esm/{colors-c530a5b8.js → colors-df32bb43.js} +14 -8
- package/dist/esm/datetime-helper-df25808a.js +9 -0
- package/dist/esm/{generate-56856b63.js → generate-bcc4b036.js} +2 -2
- package/dist/esm/{global-c0272f2f.js → global-158eb485.js} +1 -1
- package/dist/esm/{Overflow-2cffcda0.js → index-a6d9d0af.js} +89 -2298
- package/dist/esm/{index-f549811f.js → index-b84bc8c9.js} +1 -1
- package/dist/esm/{input-template-19a34625.js → input-template-673e33b3.js} +2 -2
- package/dist/esm/{json-parse-decarator-c9a132f1.js → json-parse-decarator-c5dee289.js} +1 -1
- package/dist/esm/{label-template-374fbdcd.js → label-template-c15569c4.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{lodash-4197be99.js → lodash-0a4396a7.js} +1 -1
- package/dist/esm/moment-15cd9198.js +4598 -0
- package/dist/esm/{number-helper-0501b786.js → number-helper-f6f2817c.js} +1 -1
- package/dist/esm/old-bcm-popover-box.entry.js +8 -8
- package/dist/esm/old-bcm-popover.entry.js +5 -5
- package/dist/esm/{package-a9b6e2c6.js → package-255a905d.js} +1 -1
- package/dist/esm/{popover-placement-d12fec40.js → popover-placement-2f5939ea.js} +1 -1
- package/dist/esm/{slot-template-2a19b2db.js → slot-template-7c36d3be.js} +1 -1
- package/dist/esm/{stepper-states-a4b1efb3.js → stepper-states-aef71cbc.js} +1 -1
- package/dist/esm/{string-helper-3592bdc2.js → string-helper-85990695.js} +1 -1
- package/dist/esm/{tooltip-helper-de7eb9a3.js → tooltip-helper-b27db4cd.js} +6 -5
- package/dist/esm/{validators-be951131.js → validators-2052b679.js} +2 -6
- package/dist/types/components/molecules/input/input.style.d.ts +576 -0
- package/dist/types/components/molecules/input/input2.d.ts +64 -0
- package/dist/types/components/molecules/number-input/number-input.d.ts +66 -17
- package/dist/types/components/molecules/number-input/react-input.d.ts +16 -0
- package/dist/types/components.d.ts +203 -19
- package/package.json +3 -2
- package/dist/bromcom-ui/p-0533a1b0.entry.js +0 -5
- package/dist/bromcom-ui/p-0a44db90.entry.js +0 -5
- package/dist/bromcom-ui/p-19783732.entry.js +0 -5
- package/dist/bromcom-ui/p-1e5df686.entry.js +0 -5
- package/dist/bromcom-ui/p-350719ca.entry.js +0 -5
- package/dist/bromcom-ui/p-376a20ed.js +0 -5
- package/dist/bromcom-ui/p-385a50b0.entry.js +0 -5
- package/dist/bromcom-ui/p-3a43bf45.js +0 -5
- package/dist/bromcom-ui/p-3c04d0f7.entry.js +0 -5
- package/dist/bromcom-ui/p-3e2fb868.entry.js +0 -5
- package/dist/bromcom-ui/p-44faabe9.entry.js +0 -5
- package/dist/bromcom-ui/p-4d5eb722.entry.js +0 -5
- package/dist/bromcom-ui/p-58ca54dc.js +0 -5
- package/dist/bromcom-ui/p-60dd2172.entry.js +0 -5
- package/dist/bromcom-ui/p-6146d180.entry.js +0 -5
- package/dist/bromcom-ui/p-62804f2c.entry.js +0 -5
- package/dist/bromcom-ui/p-6e961eb9.entry.js +0 -7
- package/dist/bromcom-ui/p-7175c984.entry.js +0 -5
- package/dist/bromcom-ui/p-7222a8db.entry.js +0 -5
- package/dist/bromcom-ui/p-75e4f799.entry.js +0 -5
- package/dist/bromcom-ui/p-76f6db61.entry.js +0 -5
- package/dist/bromcom-ui/p-7b9e8f58.entry.js +0 -5
- package/dist/bromcom-ui/p-8b00d553.entry.js +0 -5
- package/dist/bromcom-ui/p-a516049b.entry.js +0 -5
- package/dist/bromcom-ui/p-a62adacd.js +0 -5
- package/dist/bromcom-ui/p-aaf36d5c.entry.js +0 -5
- package/dist/bromcom-ui/p-ab2dcd70.entry.js +0 -5
- package/dist/bromcom-ui/p-b12c8235.js +0 -5
- package/dist/bromcom-ui/p-b2c6659a.entry.js +0 -5
- package/dist/bromcom-ui/p-b381e7f1.js +0 -19
- package/dist/bromcom-ui/p-b4755ed0.entry.js +0 -5
- package/dist/bromcom-ui/p-cc449a87.entry.js +0 -5
- package/dist/bromcom-ui/p-d43d75d2.entry.js +0 -5
- package/dist/bromcom-ui/p-e0ab7b38.js +0 -11
- package/dist/bromcom-ui/p-f2b520a4.entry.js +0 -5
- package/dist/cjs/bcm-button_15.cjs.entry.js +0 -18623
- package/dist/cjs/bcm-number-input.cjs.entry.js +0 -108
- package/dist/collection/components/molecules/number-input/number-input.css +0 -137
- package/dist/collection/components/molecules/number-input/number-input.style.js +0 -45
- package/dist/esm/bcm-number-input.entry.js +0 -104
- package/dist/types/components/molecules/number-input/number-input.style.d.ts +0 -200
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
'use strict';
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
-
|
|
9
|
-
const index$1 = require('./index-c591ecec.js');
|
|
10
|
-
require('./color-helper-c3a819ea.js');
|
|
11
|
-
require('./validators-abb0434a.js');
|
|
12
|
-
const generate = require('./generate-64f84d95.js');
|
|
13
|
-
require('./number-helper-f9323233.js');
|
|
14
|
-
require('./string-helper-f9184277.js');
|
|
15
|
-
require('./element-dragger-a8562f82.js');
|
|
16
|
-
const bcm = require('./bcm-489c9b1a.js');
|
|
17
|
-
const captionTemplate = require('./caption-template-086e9cac.js');
|
|
18
|
-
require('./index-95ae50d0.js');
|
|
19
|
-
require('./types-cc4adee7.js');
|
|
20
|
-
require('./types-7523fd99.js');
|
|
21
|
-
const index = require('./index-5279dea2.js');
|
|
22
|
-
require('./colors-56282b00.js');
|
|
23
|
-
require('./utils-fc077139.js');
|
|
24
|
-
require('./colors-078851ec.js');
|
|
25
|
-
require('./_commonjsHelpers-ed84c3ca.js');
|
|
26
|
-
require('./package-992c024f.js');
|
|
27
|
-
|
|
28
|
-
const numberInputStyle = index.ce({
|
|
29
|
-
slots: {
|
|
30
|
-
host: "bcm-number-input bcm-ui-element tw-flex tw-flex-col tw-items-start tw-justify-start tw-max-w-[256px] tw-w-full",
|
|
31
|
-
container: "tw-flex tw-flex-row tw-items-center tw-justify-between tw-rounded tw-border tw-border-solid tw-border-slate-300 tw-w-full tw-min-h-full hover:tw-bg-slate-50",
|
|
32
|
-
inputContainer: "tw-flex tw-min-h-fit tw-w-full tw-flex-row tw-items-center tw-justify-center tw-gap-2 tw-px-3",
|
|
33
|
-
input: "tw-outline-none tw-appearance-none tw-flex-1 tw-bg-transparent tw-text-slate-400 tw-text-inherit tw-font-normal",
|
|
34
|
-
caretContainer: "tw-flex tw-flex-col tw-min-h-full tw-border-l tw-items-stretch tw-self-stretch tw-justify-center tw-border-l-slate-300 tw-select-none tw-w-[30px]",
|
|
35
|
-
caretIcon: "tw-flex tw-items-center tw-text-slate-500 tw-justify-center tw-h-full tw-cursor-pointer active:tw-bg-slate-400 last:tw-border-t last:tw-border-t-slate-300",
|
|
36
|
-
slotIcon: "tw-text-slate-500",
|
|
37
|
-
},
|
|
38
|
-
variants: {
|
|
39
|
-
size: {
|
|
40
|
-
small: {
|
|
41
|
-
host: "tw-gap-0.5 tw-text-xs",
|
|
42
|
-
slotIcon: "tw-text-[10px]",
|
|
43
|
-
inputContainer: "tw-py-[2px]",
|
|
44
|
-
caretIcon: "tw-text-[10px]",
|
|
45
|
-
},
|
|
46
|
-
medium: {
|
|
47
|
-
host: "tw-gap-1 tw-text-base",
|
|
48
|
-
slotIcon: "tw-text-xs",
|
|
49
|
-
inputContainer: "tw-py-[5px]",
|
|
50
|
-
},
|
|
51
|
-
large: {
|
|
52
|
-
host: "tw-gap-2 tw-text-base",
|
|
53
|
-
slotIcon: "tw-text-[14px]",
|
|
54
|
-
inputContainer: "tw-py-2",
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
focus: {
|
|
58
|
-
true: {
|
|
59
|
-
container: "tw-ring-1 tw-ring-blue-600",
|
|
60
|
-
input: "tw-text-slate-700",
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
defaultVariants: {
|
|
65
|
-
size: "medium",
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
const numberInputCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");\n.size-1 {\n font-size: 12px;\n line-height: 20px;\n}\n\n.size-2 {\n font-size: 14px;\n line-height: 22px;\n}\n\n.size-3 {\n font-size: 16px;\n line-height: 24px;\n}\n\n.size-4 {\n font-size: 20px;\n line-height: 28px;\n}\n\n.size-5 {\n font-size: 24px;\n line-height: 32px;\n}\n\n.size-6 {\n font-size: 30px;\n line-height: 38px;\n}\n\n.size-7 {\n font-size: 38px;\n line-height: 46px;\n}\n\n.size-8 {\n font-size: 46px;\n line-height: 54px;\n}\n\n.size-9 {\n font-size: 56px;\n line-height: 64px;\n}\n\n.weight-regular {\n font-weight: 400;\n}\n\n.weight-semibold {\n font-weight: 500;\n}\n\n/**\n * Generator\n */\n.input-size-large {\n height: 40px;\n}\n\n.input-size-medium {\n height: 32px;\n}\n\n.input-size-small {\n height: 24px;\n}\n\n.resize-none textarea {\n resize: none;\n}\n\n.resize-vertical textarea {\n resize: vertical;\n}\n\n.resize-auto textarea {\n height: auto;\n resize: none;\n}\n\n.textarea-size-large {\n padding: 4px 0 0 4px;\n min-height: 40px;\n}\n.textarea-size-large .bcm-input-element {\n min-height: calc((40px - 8px) + 2px);\n}\n.textarea-size-large .input-clear-button {\n height: calc( 40px - 16px );\n top: 8px;\n padding: 0;\n margin-right: 8px;\n}\n\n.textarea-size-medium {\n padding: 4px 0 0 4px;\n min-height: 32px;\n}\n.textarea-size-medium .bcm-input-element {\n min-height: calc((32px - 8px) + 2px);\n}\n.textarea-size-medium .input-clear-button {\n height: calc( 32px - 16px );\n top: 8px;\n padding: 0;\n margin-right: 8px;\n}\n\n.textarea-size-small {\n padding: 0px 0 0 4px;\n min-height: 24px;\n}\n.textarea-size-small .bcm-input-element {\n min-height: calc((24px - 8px) + 2px);\n}\n.textarea-size-small .input-clear-button {\n height: calc( 24px - 16px );\n top: 8px;\n padding: 0;\n margin-right: 8px;\n}\n\n@layer base {\n .bcm-number-input input[type=number]::-webkit-outer-spin-button,\n.bcm-number-input input[type=number]::-webkit-inner-spin-button,\n.bcm-number-input input[type=number] {\n -webkit-appearance: none;\n padding: 0px;\n margin: 0px;\n outline: none;\n border: 0px;\n vertical-align: baseline;\n -moz-appearance: textfield !important;\n }\n}";
|
|
70
|
-
|
|
71
|
-
const NumberInput = class {
|
|
72
|
-
constructor(hostRef) {
|
|
73
|
-
index$1.registerInstance(this, hostRef);
|
|
74
|
-
this.blockInvalidChar = e => {
|
|
75
|
-
return ["e", "E", "+", "-"].includes(e.key) && e.preventDefault();
|
|
76
|
-
};
|
|
77
|
-
this._id = generate.Generate.UID();
|
|
78
|
-
this.size = bcm.Bcm$1.Size.medium;
|
|
79
|
-
this.min = 0;
|
|
80
|
-
this.max = 100;
|
|
81
|
-
this.step = 1;
|
|
82
|
-
this.placeholder = undefined;
|
|
83
|
-
this.label = undefined;
|
|
84
|
-
this.tooltip = undefined;
|
|
85
|
-
this.value = 0;
|
|
86
|
-
this.disabled = false;
|
|
87
|
-
this.readonly = false;
|
|
88
|
-
this.required = false;
|
|
89
|
-
this.pattern = undefined;
|
|
90
|
-
this.caption = undefined;
|
|
91
|
-
this.noCaption = false;
|
|
92
|
-
this.captionType = bcm.Bcm$1.Status.default;
|
|
93
|
-
this.captionError = undefined;
|
|
94
|
-
this.customErrorMessage = undefined;
|
|
95
|
-
this.prefixIcon = undefined;
|
|
96
|
-
this.suffixIcon = undefined;
|
|
97
|
-
this.isFocus = false;
|
|
98
|
-
this.isError = false;
|
|
99
|
-
}
|
|
100
|
-
render() {
|
|
101
|
-
const { _id, value, min, max, step, tooltip, disabled, size, label, caption, captionType, required, noCaption, captionError, customErrorMessage, prefixIcon, suffixIcon, pattern } = this;
|
|
102
|
-
const { host, input, container, inputContainer, caretContainer, caretIcon, slotIcon } = numberInputStyle({ size, focus: this.isFocus });
|
|
103
|
-
return (index$1.h(index$1.Host, { class: host(), onClick: () => !disabled && this.nativeInput.focus() }, label && index$1.h("bcm-label", { tooltip: tooltip, "no-margin": true, type: captionType, value: label, required: required, htmlFor: _id }), index$1.h("div", { class: container() }, index$1.h("div", { class: inputContainer() }, prefixIcon && (index$1.h("span", { class: slotIcon() }, index$1.h("i", { class: prefixIcon }))), index$1.h("input", { type: "number", class: input(), min: min, max: max, step: step, value: value, inputmode: "numeric", pattern: pattern, ref: input => (this.nativeInput = input), onKeyPress: this.blockInvalidChar, onFocus: () => (this.isFocus = true), onBlur: () => (this.isFocus = false), onError: e => console.log(e), onErrorCapture: e => console.log(e) }), suffixIcon && (index$1.h("span", { class: slotIcon() }, index$1.h("i", { class: suffixIcon })))), index$1.h("div", { class: caretContainer() }, index$1.h("span", { class: caretIcon() }, index$1.h("i", { class: "fas fa-caret-up" })), index$1.h("span", { class: caretIcon() }, index$1.h("i", { class: "fas fa-caret-down" })))), index$1.h(captionTemplate.CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: customErrorMessage })));
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
NumberInput.style = numberInputCss;
|
|
107
|
-
|
|
108
|
-
exports.bcm_number_input = NumberInput;
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
|
|
2
|
-
.size-1 {
|
|
3
|
-
font-size: 12px;
|
|
4
|
-
line-height: 20px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.size-2 {
|
|
8
|
-
font-size: 14px;
|
|
9
|
-
line-height: 22px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.size-3 {
|
|
13
|
-
font-size: 16px;
|
|
14
|
-
line-height: 24px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.size-4 {
|
|
18
|
-
font-size: 20px;
|
|
19
|
-
line-height: 28px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.size-5 {
|
|
23
|
-
font-size: 24px;
|
|
24
|
-
line-height: 32px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.size-6 {
|
|
28
|
-
font-size: 30px;
|
|
29
|
-
line-height: 38px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.size-7 {
|
|
33
|
-
font-size: 38px;
|
|
34
|
-
line-height: 46px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.size-8 {
|
|
38
|
-
font-size: 46px;
|
|
39
|
-
line-height: 54px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.size-9 {
|
|
43
|
-
font-size: 56px;
|
|
44
|
-
line-height: 64px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.weight-regular {
|
|
48
|
-
font-weight: 400;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.weight-semibold {
|
|
52
|
-
font-weight: 500;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Generator
|
|
57
|
-
*/
|
|
58
|
-
.input-size-large {
|
|
59
|
-
height: 40px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.input-size-medium {
|
|
63
|
-
height: 32px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.input-size-small {
|
|
67
|
-
height: 24px;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.resize-none textarea {
|
|
71
|
-
resize: none;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.resize-vertical textarea {
|
|
75
|
-
resize: vertical;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.resize-auto textarea {
|
|
79
|
-
height: auto;
|
|
80
|
-
resize: none;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.textarea-size-large {
|
|
84
|
-
padding: 4px 0 0 4px;
|
|
85
|
-
min-height: 40px;
|
|
86
|
-
}
|
|
87
|
-
.textarea-size-large .bcm-input-element {
|
|
88
|
-
min-height: calc((40px - 8px) + 2px);
|
|
89
|
-
}
|
|
90
|
-
.textarea-size-large .input-clear-button {
|
|
91
|
-
height: calc( 40px - 16px );
|
|
92
|
-
top: 8px;
|
|
93
|
-
padding: 0;
|
|
94
|
-
margin-right: 8px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.textarea-size-medium {
|
|
98
|
-
padding: 4px 0 0 4px;
|
|
99
|
-
min-height: 32px;
|
|
100
|
-
}
|
|
101
|
-
.textarea-size-medium .bcm-input-element {
|
|
102
|
-
min-height: calc((32px - 8px) + 2px);
|
|
103
|
-
}
|
|
104
|
-
.textarea-size-medium .input-clear-button {
|
|
105
|
-
height: calc( 32px - 16px );
|
|
106
|
-
top: 8px;
|
|
107
|
-
padding: 0;
|
|
108
|
-
margin-right: 8px;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.textarea-size-small {
|
|
112
|
-
padding: 0px 0 0 4px;
|
|
113
|
-
min-height: 24px;
|
|
114
|
-
}
|
|
115
|
-
.textarea-size-small .bcm-input-element {
|
|
116
|
-
min-height: calc((24px - 8px) + 2px);
|
|
117
|
-
}
|
|
118
|
-
.textarea-size-small .input-clear-button {
|
|
119
|
-
height: calc( 24px - 16px );
|
|
120
|
-
top: 8px;
|
|
121
|
-
padding: 0;
|
|
122
|
-
margin-right: 8px;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
@layer base {
|
|
126
|
-
.bcm-number-input input[type=number]::-webkit-outer-spin-button,
|
|
127
|
-
.bcm-number-input input[type=number]::-webkit-inner-spin-button,
|
|
128
|
-
.bcm-number-input input[type=number] {
|
|
129
|
-
-webkit-appearance: none;
|
|
130
|
-
padding: 0px;
|
|
131
|
-
margin: 0px;
|
|
132
|
-
outline: none;
|
|
133
|
-
border: 0px;
|
|
134
|
-
vertical-align: baseline;
|
|
135
|
-
-moz-appearance: textfield !important;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { tv } from "tailwind-variants";
|
|
6
|
-
export const numberInputStyle = tv({
|
|
7
|
-
slots: {
|
|
8
|
-
host: "bcm-number-input bcm-ui-element tw-flex tw-flex-col tw-items-start tw-justify-start tw-max-w-[256px] tw-w-full",
|
|
9
|
-
container: "tw-flex tw-flex-row tw-items-center tw-justify-between tw-rounded tw-border tw-border-solid tw-border-slate-300 tw-w-full tw-min-h-full hover:tw-bg-slate-50",
|
|
10
|
-
inputContainer: "tw-flex tw-min-h-fit tw-w-full tw-flex-row tw-items-center tw-justify-center tw-gap-2 tw-px-3",
|
|
11
|
-
input: "tw-outline-none tw-appearance-none tw-flex-1 tw-bg-transparent tw-text-slate-400 tw-text-inherit tw-font-normal",
|
|
12
|
-
caretContainer: "tw-flex tw-flex-col tw-min-h-full tw-border-l tw-items-stretch tw-self-stretch tw-justify-center tw-border-l-slate-300 tw-select-none tw-w-[30px]",
|
|
13
|
-
caretIcon: "tw-flex tw-items-center tw-text-slate-500 tw-justify-center tw-h-full tw-cursor-pointer active:tw-bg-slate-400 last:tw-border-t last:tw-border-t-slate-300",
|
|
14
|
-
slotIcon: "tw-text-slate-500",
|
|
15
|
-
},
|
|
16
|
-
variants: {
|
|
17
|
-
size: {
|
|
18
|
-
small: {
|
|
19
|
-
host: "tw-gap-0.5 tw-text-xs",
|
|
20
|
-
slotIcon: "tw-text-[10px]",
|
|
21
|
-
inputContainer: "tw-py-[2px]",
|
|
22
|
-
caretIcon: "tw-text-[10px]",
|
|
23
|
-
},
|
|
24
|
-
medium: {
|
|
25
|
-
host: "tw-gap-1 tw-text-base",
|
|
26
|
-
slotIcon: "tw-text-xs",
|
|
27
|
-
inputContainer: "tw-py-[5px]",
|
|
28
|
-
},
|
|
29
|
-
large: {
|
|
30
|
-
host: "tw-gap-2 tw-text-base",
|
|
31
|
-
slotIcon: "tw-text-[14px]",
|
|
32
|
-
inputContainer: "tw-py-2",
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
focus: {
|
|
36
|
-
true: {
|
|
37
|
-
container: "tw-ring-1 tw-ring-blue-600",
|
|
38
|
-
input: "tw-text-slate-700",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
defaultVariants: {
|
|
43
|
-
size: "medium",
|
|
44
|
-
},
|
|
45
|
-
});
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Stencil
|
|
3
|
-
* Copyright (c) Bromcom.
|
|
4
|
-
*/
|
|
5
|
-
import { r as registerInstance, h, H as Host } from './index-0615c2b8.js';
|
|
6
|
-
import './color-helper-3b528349.js';
|
|
7
|
-
import './validators-be951131.js';
|
|
8
|
-
import { G as Generate } from './generate-56856b63.js';
|
|
9
|
-
import './number-helper-0501b786.js';
|
|
10
|
-
import './string-helper-3592bdc2.js';
|
|
11
|
-
import './element-dragger-89bb52fd.js';
|
|
12
|
-
import { a as Bcm } from './bcm-a50d55ba.js';
|
|
13
|
-
import { C as CaptionTemplate } from './caption-template-fd7738eb.js';
|
|
14
|
-
import './index-f549811f.js';
|
|
15
|
-
import './types-6f06fa1a.js';
|
|
16
|
-
import './types-9493a7ed.js';
|
|
17
|
-
import { c as ce } from './index-3bc8c6e3.js';
|
|
18
|
-
import './colors-1d7854ea.js';
|
|
19
|
-
import './utils-57652744.js';
|
|
20
|
-
import './colors-c530a5b8.js';
|
|
21
|
-
import './_commonjsHelpers-82aa9212.js';
|
|
22
|
-
import './package-a9b6e2c6.js';
|
|
23
|
-
|
|
24
|
-
const numberInputStyle = ce({
|
|
25
|
-
slots: {
|
|
26
|
-
host: "bcm-number-input bcm-ui-element tw-flex tw-flex-col tw-items-start tw-justify-start tw-max-w-[256px] tw-w-full",
|
|
27
|
-
container: "tw-flex tw-flex-row tw-items-center tw-justify-between tw-rounded tw-border tw-border-solid tw-border-slate-300 tw-w-full tw-min-h-full hover:tw-bg-slate-50",
|
|
28
|
-
inputContainer: "tw-flex tw-min-h-fit tw-w-full tw-flex-row tw-items-center tw-justify-center tw-gap-2 tw-px-3",
|
|
29
|
-
input: "tw-outline-none tw-appearance-none tw-flex-1 tw-bg-transparent tw-text-slate-400 tw-text-inherit tw-font-normal",
|
|
30
|
-
caretContainer: "tw-flex tw-flex-col tw-min-h-full tw-border-l tw-items-stretch tw-self-stretch tw-justify-center tw-border-l-slate-300 tw-select-none tw-w-[30px]",
|
|
31
|
-
caretIcon: "tw-flex tw-items-center tw-text-slate-500 tw-justify-center tw-h-full tw-cursor-pointer active:tw-bg-slate-400 last:tw-border-t last:tw-border-t-slate-300",
|
|
32
|
-
slotIcon: "tw-text-slate-500",
|
|
33
|
-
},
|
|
34
|
-
variants: {
|
|
35
|
-
size: {
|
|
36
|
-
small: {
|
|
37
|
-
host: "tw-gap-0.5 tw-text-xs",
|
|
38
|
-
slotIcon: "tw-text-[10px]",
|
|
39
|
-
inputContainer: "tw-py-[2px]",
|
|
40
|
-
caretIcon: "tw-text-[10px]",
|
|
41
|
-
},
|
|
42
|
-
medium: {
|
|
43
|
-
host: "tw-gap-1 tw-text-base",
|
|
44
|
-
slotIcon: "tw-text-xs",
|
|
45
|
-
inputContainer: "tw-py-[5px]",
|
|
46
|
-
},
|
|
47
|
-
large: {
|
|
48
|
-
host: "tw-gap-2 tw-text-base",
|
|
49
|
-
slotIcon: "tw-text-[14px]",
|
|
50
|
-
inputContainer: "tw-py-2",
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
focus: {
|
|
54
|
-
true: {
|
|
55
|
-
container: "tw-ring-1 tw-ring-blue-600",
|
|
56
|
-
input: "tw-text-slate-700",
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
defaultVariants: {
|
|
61
|
-
size: "medium",
|
|
62
|
-
},
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
const numberInputCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");\n.size-1 {\n font-size: 12px;\n line-height: 20px;\n}\n\n.size-2 {\n font-size: 14px;\n line-height: 22px;\n}\n\n.size-3 {\n font-size: 16px;\n line-height: 24px;\n}\n\n.size-4 {\n font-size: 20px;\n line-height: 28px;\n}\n\n.size-5 {\n font-size: 24px;\n line-height: 32px;\n}\n\n.size-6 {\n font-size: 30px;\n line-height: 38px;\n}\n\n.size-7 {\n font-size: 38px;\n line-height: 46px;\n}\n\n.size-8 {\n font-size: 46px;\n line-height: 54px;\n}\n\n.size-9 {\n font-size: 56px;\n line-height: 64px;\n}\n\n.weight-regular {\n font-weight: 400;\n}\n\n.weight-semibold {\n font-weight: 500;\n}\n\n/**\n * Generator\n */\n.input-size-large {\n height: 40px;\n}\n\n.input-size-medium {\n height: 32px;\n}\n\n.input-size-small {\n height: 24px;\n}\n\n.resize-none textarea {\n resize: none;\n}\n\n.resize-vertical textarea {\n resize: vertical;\n}\n\n.resize-auto textarea {\n height: auto;\n resize: none;\n}\n\n.textarea-size-large {\n padding: 4px 0 0 4px;\n min-height: 40px;\n}\n.textarea-size-large .bcm-input-element {\n min-height: calc((40px - 8px) + 2px);\n}\n.textarea-size-large .input-clear-button {\n height: calc( 40px - 16px );\n top: 8px;\n padding: 0;\n margin-right: 8px;\n}\n\n.textarea-size-medium {\n padding: 4px 0 0 4px;\n min-height: 32px;\n}\n.textarea-size-medium .bcm-input-element {\n min-height: calc((32px - 8px) + 2px);\n}\n.textarea-size-medium .input-clear-button {\n height: calc( 32px - 16px );\n top: 8px;\n padding: 0;\n margin-right: 8px;\n}\n\n.textarea-size-small {\n padding: 0px 0 0 4px;\n min-height: 24px;\n}\n.textarea-size-small .bcm-input-element {\n min-height: calc((24px - 8px) + 2px);\n}\n.textarea-size-small .input-clear-button {\n height: calc( 24px - 16px );\n top: 8px;\n padding: 0;\n margin-right: 8px;\n}\n\n@layer base {\n .bcm-number-input input[type=number]::-webkit-outer-spin-button,\n.bcm-number-input input[type=number]::-webkit-inner-spin-button,\n.bcm-number-input input[type=number] {\n -webkit-appearance: none;\n padding: 0px;\n margin: 0px;\n outline: none;\n border: 0px;\n vertical-align: baseline;\n -moz-appearance: textfield !important;\n }\n}";
|
|
66
|
-
|
|
67
|
-
const NumberInput = class {
|
|
68
|
-
constructor(hostRef) {
|
|
69
|
-
registerInstance(this, hostRef);
|
|
70
|
-
this.blockInvalidChar = e => {
|
|
71
|
-
return ["e", "E", "+", "-"].includes(e.key) && e.preventDefault();
|
|
72
|
-
};
|
|
73
|
-
this._id = Generate.UID();
|
|
74
|
-
this.size = Bcm.Size.medium;
|
|
75
|
-
this.min = 0;
|
|
76
|
-
this.max = 100;
|
|
77
|
-
this.step = 1;
|
|
78
|
-
this.placeholder = undefined;
|
|
79
|
-
this.label = undefined;
|
|
80
|
-
this.tooltip = undefined;
|
|
81
|
-
this.value = 0;
|
|
82
|
-
this.disabled = false;
|
|
83
|
-
this.readonly = false;
|
|
84
|
-
this.required = false;
|
|
85
|
-
this.pattern = undefined;
|
|
86
|
-
this.caption = undefined;
|
|
87
|
-
this.noCaption = false;
|
|
88
|
-
this.captionType = Bcm.Status.default;
|
|
89
|
-
this.captionError = undefined;
|
|
90
|
-
this.customErrorMessage = undefined;
|
|
91
|
-
this.prefixIcon = undefined;
|
|
92
|
-
this.suffixIcon = undefined;
|
|
93
|
-
this.isFocus = false;
|
|
94
|
-
this.isError = false;
|
|
95
|
-
}
|
|
96
|
-
render() {
|
|
97
|
-
const { _id, value, min, max, step, tooltip, disabled, size, label, caption, captionType, required, noCaption, captionError, customErrorMessage, prefixIcon, suffixIcon, pattern } = this;
|
|
98
|
-
const { host, input, container, inputContainer, caretContainer, caretIcon, slotIcon } = numberInputStyle({ size, focus: this.isFocus });
|
|
99
|
-
return (h(Host, { class: host(), onClick: () => !disabled && this.nativeInput.focus() }, label && h("bcm-label", { tooltip: tooltip, "no-margin": true, type: captionType, value: label, required: required, htmlFor: _id }), h("div", { class: container() }, h("div", { class: inputContainer() }, prefixIcon && (h("span", { class: slotIcon() }, h("i", { class: prefixIcon }))), h("input", { type: "number", class: input(), min: min, max: max, step: step, value: value, inputmode: "numeric", pattern: pattern, ref: input => (this.nativeInput = input), onKeyPress: this.blockInvalidChar, onFocus: () => (this.isFocus = true), onBlur: () => (this.isFocus = false), onError: e => console.log(e), onErrorCapture: e => console.log(e) }), suffixIcon && (h("span", { class: slotIcon() }, h("i", { class: suffixIcon })))), h("div", { class: caretContainer() }, h("span", { class: caretIcon() }, h("i", { class: "fas fa-caret-up" })), h("span", { class: caretIcon() }, h("i", { class: "fas fa-caret-down" })))), h(CaptionTemplate, { noCaption: noCaption, captionType: captionType, captionError: captionError, caption: caption, customErrorMessage: customErrorMessage })));
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
NumberInput.style = numberInputCss;
|
|
103
|
-
|
|
104
|
-
export { NumberInput as bcm_number_input };
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
export declare const numberInputStyle: import("tailwind-variants").TVReturnType<{
|
|
2
|
-
size: {
|
|
3
|
-
small: {
|
|
4
|
-
host: string;
|
|
5
|
-
slotIcon: string;
|
|
6
|
-
inputContainer: string;
|
|
7
|
-
caretIcon: string;
|
|
8
|
-
};
|
|
9
|
-
medium: {
|
|
10
|
-
host: string;
|
|
11
|
-
slotIcon: string;
|
|
12
|
-
inputContainer: string;
|
|
13
|
-
};
|
|
14
|
-
large: {
|
|
15
|
-
host: string;
|
|
16
|
-
slotIcon: string;
|
|
17
|
-
inputContainer: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
focus: {
|
|
21
|
-
true: {
|
|
22
|
-
container: string;
|
|
23
|
-
input: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
}, {
|
|
27
|
-
host: string;
|
|
28
|
-
container: string;
|
|
29
|
-
inputContainer: string;
|
|
30
|
-
input: string;
|
|
31
|
-
caretContainer: string;
|
|
32
|
-
caretIcon: string;
|
|
33
|
-
slotIcon: string;
|
|
34
|
-
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
35
|
-
size: {
|
|
36
|
-
small: {
|
|
37
|
-
host: string;
|
|
38
|
-
slotIcon: string;
|
|
39
|
-
inputContainer: string;
|
|
40
|
-
caretIcon: string;
|
|
41
|
-
};
|
|
42
|
-
medium: {
|
|
43
|
-
host: string;
|
|
44
|
-
slotIcon: string;
|
|
45
|
-
inputContainer: string;
|
|
46
|
-
};
|
|
47
|
-
large: {
|
|
48
|
-
host: string;
|
|
49
|
-
slotIcon: string;
|
|
50
|
-
inputContainer: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
focus: {
|
|
54
|
-
true: {
|
|
55
|
-
container: string;
|
|
56
|
-
input: string;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
}, {
|
|
60
|
-
size: {
|
|
61
|
-
small: {
|
|
62
|
-
host: string;
|
|
63
|
-
slotIcon: string;
|
|
64
|
-
inputContainer: string;
|
|
65
|
-
caretIcon: string;
|
|
66
|
-
};
|
|
67
|
-
medium: {
|
|
68
|
-
host: string;
|
|
69
|
-
slotIcon: string;
|
|
70
|
-
inputContainer: string;
|
|
71
|
-
};
|
|
72
|
-
large: {
|
|
73
|
-
host: string;
|
|
74
|
-
slotIcon: string;
|
|
75
|
-
inputContainer: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
focus: {
|
|
79
|
-
true: {
|
|
80
|
-
container: string;
|
|
81
|
-
input: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
}>, {
|
|
85
|
-
size: {
|
|
86
|
-
small: {
|
|
87
|
-
host: string;
|
|
88
|
-
slotIcon: string;
|
|
89
|
-
inputContainer: string;
|
|
90
|
-
caretIcon: string;
|
|
91
|
-
};
|
|
92
|
-
medium: {
|
|
93
|
-
host: string;
|
|
94
|
-
slotIcon: string;
|
|
95
|
-
inputContainer: string;
|
|
96
|
-
};
|
|
97
|
-
large: {
|
|
98
|
-
host: string;
|
|
99
|
-
slotIcon: string;
|
|
100
|
-
inputContainer: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
focus: {
|
|
104
|
-
true: {
|
|
105
|
-
container: string;
|
|
106
|
-
input: string;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
}, {
|
|
110
|
-
host: string;
|
|
111
|
-
container: string;
|
|
112
|
-
inputContainer: string;
|
|
113
|
-
input: string;
|
|
114
|
-
caretContainer: string;
|
|
115
|
-
caretIcon: string;
|
|
116
|
-
slotIcon: string;
|
|
117
|
-
}, import("tailwind-variants").TVReturnType<{
|
|
118
|
-
size: {
|
|
119
|
-
small: {
|
|
120
|
-
host: string;
|
|
121
|
-
slotIcon: string;
|
|
122
|
-
inputContainer: string;
|
|
123
|
-
caretIcon: string;
|
|
124
|
-
};
|
|
125
|
-
medium: {
|
|
126
|
-
host: string;
|
|
127
|
-
slotIcon: string;
|
|
128
|
-
inputContainer: string;
|
|
129
|
-
};
|
|
130
|
-
large: {
|
|
131
|
-
host: string;
|
|
132
|
-
slotIcon: string;
|
|
133
|
-
inputContainer: string;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
focus: {
|
|
137
|
-
true: {
|
|
138
|
-
container: string;
|
|
139
|
-
input: string;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
}, {
|
|
143
|
-
host: string;
|
|
144
|
-
container: string;
|
|
145
|
-
inputContainer: string;
|
|
146
|
-
input: string;
|
|
147
|
-
caretContainer: string;
|
|
148
|
-
caretIcon: string;
|
|
149
|
-
slotIcon: string;
|
|
150
|
-
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
151
|
-
size: {
|
|
152
|
-
small: {
|
|
153
|
-
host: string;
|
|
154
|
-
slotIcon: string;
|
|
155
|
-
inputContainer: string;
|
|
156
|
-
caretIcon: string;
|
|
157
|
-
};
|
|
158
|
-
medium: {
|
|
159
|
-
host: string;
|
|
160
|
-
slotIcon: string;
|
|
161
|
-
inputContainer: string;
|
|
162
|
-
};
|
|
163
|
-
large: {
|
|
164
|
-
host: string;
|
|
165
|
-
slotIcon: string;
|
|
166
|
-
inputContainer: string;
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
focus: {
|
|
170
|
-
true: {
|
|
171
|
-
container: string;
|
|
172
|
-
input: string;
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
}, {
|
|
176
|
-
size: {
|
|
177
|
-
small: {
|
|
178
|
-
host: string;
|
|
179
|
-
slotIcon: string;
|
|
180
|
-
inputContainer: string;
|
|
181
|
-
caretIcon: string;
|
|
182
|
-
};
|
|
183
|
-
medium: {
|
|
184
|
-
host: string;
|
|
185
|
-
slotIcon: string;
|
|
186
|
-
inputContainer: string;
|
|
187
|
-
};
|
|
188
|
-
large: {
|
|
189
|
-
host: string;
|
|
190
|
-
slotIcon: string;
|
|
191
|
-
inputContainer: string;
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
focus: {
|
|
195
|
-
true: {
|
|
196
|
-
container: string;
|
|
197
|
-
input: string;
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
}>, unknown, unknown, undefined>>;
|