smoothly 1.0.0-alpha.99 → 1.0.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/cjs/Data-50d47740.js +589 -0
- package/dist/cjs/Data-50d47740.js.map +1 -0
- package/dist/cjs/Observers-6450f075.js +25 -0
- package/dist/cjs/Observers-6450f075.js.map +1 -0
- package/dist/cjs/TimeZone-016ac7b0.js +6181 -0
- package/dist/cjs/TimeZone-016ac7b0.js.map +1 -0
- package/dist/cjs/{getLanguage-7e53766b.js → getLanguage-49a534df.js} +1 -5993
- package/dist/cjs/getLanguage-49a534df.js.map +1 -0
- package/dist/cjs/{index-6ae370b4.js → index-43af753b.js} +1 -4
- package/dist/cjs/index-43af753b.js.map +1 -0
- package/dist/cjs/index.cjs.js +3 -14
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/smoothly-accordion-item.cjs.entry.js +61 -0
- package/dist/cjs/smoothly-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-accordion.cjs.entry.js +58 -0
- package/dist/cjs/smoothly-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-address-display.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-address.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-addresses.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-app_80.cjs.entry.js +11148 -0
- package/dist/cjs/smoothly-app_80.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-checkbox.cjs.entry.js +102 -0
- package/dist/cjs/smoothly-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/smoothly-color.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-country.cjs.entry.js +56 -55
- package/dist/cjs/smoothly-country.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-display-date-time.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-reorder.cjs.entry.js +4 -4
- package/dist/cjs/smoothly-reorder.cjs.entry.js.map +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +2 -2
- package/dist/cjs/smoothly.cjs.js +4 -3
- package/dist/cjs/smoothly.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +24 -7
- package/dist/collection/components/Button.js +16 -2
- package/dist/collection/components/Button.js.map +1 -1
- package/dist/collection/components/app/index.js +53 -1
- package/dist/collection/components/app/index.js.map +1 -1
- package/dist/collection/components/app/room/index.js +45 -2
- package/dist/collection/components/app/room/index.js.map +1 -1
- package/dist/collection/components/app/room/style.css +23 -9
- package/dist/collection/components/app/style.css +57 -32
- package/dist/collection/components/app-demo/index.js +1 -2
- package/dist/collection/components/app-demo/index.js.map +1 -1
- package/dist/collection/components/burger/index.js +9 -9
- package/dist/collection/components/burger/index.js.map +1 -1
- package/dist/collection/components/button/index.js +9 -22
- package/dist/collection/components/button/index.js.map +1 -1
- package/dist/collection/components/button/style.css +23 -20
- package/dist/collection/components/button-demo/index.js +3 -1
- package/dist/collection/components/button-demo/index.js.map +1 -1
- package/dist/collection/components/button-demo/style.css +1 -0
- package/dist/collection/components/calendar/generate.js +1 -1
- package/dist/collection/components/calendar/generate.js.map +1 -1
- package/dist/collection/components/calendar/index.js +16 -16
- package/dist/collection/components/calendar/index.js.map +1 -1
- package/dist/collection/components/checkbox/index.js +60 -29
- package/dist/collection/components/checkbox/index.js.map +1 -1
- package/dist/collection/components/checkbox/style.css +39 -42
- package/dist/collection/components/confirm/index.js +261 -0
- package/dist/collection/components/confirm/index.js.map +1 -0
- package/dist/collection/components/confirm/style.css +15 -0
- package/dist/collection/components/display/index.js +4 -1
- package/dist/collection/components/display/index.js.map +1 -1
- package/dist/collection/components/display-demo/index.js +16 -1
- package/dist/collection/components/display-demo/index.js.map +1 -1
- package/dist/collection/components/filter/Filter.js +17 -0
- package/dist/collection/components/filter/Filter.js.map +1 -0
- package/dist/collection/components/filter/field/index.js +105 -0
- package/dist/collection/components/filter/field/index.js.map +1 -0
- package/dist/collection/components/filter/field/style.css +4 -0
- package/dist/collection/components/filter/index.js +55 -132
- package/dist/collection/components/filter/index.js.map +1 -1
- package/dist/collection/components/filter/input/index.js +84 -301
- package/dist/collection/components/filter/input/index.js.map +1 -1
- package/dist/collection/components/filter/picker/index.js +229 -0
- package/dist/collection/components/filter/picker/index.js.map +1 -0
- package/dist/collection/components/filter/picker/style.css +8 -0
- package/dist/collection/components/filter/style.css +56 -71
- package/dist/collection/components/filter/toggle/index.js +248 -0
- package/dist/collection/components/filter/toggle/index.js.map +1 -0
- package/dist/collection/components/filter/toggle/style.css +8 -0
- package/dist/collection/components/form/index.js +234 -66
- package/dist/collection/components/form/index.js.map +1 -1
- package/dist/collection/components/form/style.css +3 -1
- package/dist/collection/components/icon/index.js +60 -32
- package/dist/collection/components/icon/index.js.map +1 -1
- package/dist/collection/components/icon/style.css +15 -0
- package/dist/collection/components/icon-demo/index.js +3 -1
- package/dist/collection/components/icon-demo/index.js.map +1 -1
- package/dist/collection/components/icon-demo/style.css +5 -6
- package/dist/collection/components/input/Editable.js +19 -0
- package/dist/collection/components/input/Editable.js.map +1 -0
- package/dist/collection/components/input/Input.js +22 -1
- package/dist/collection/components/input/Input.js.map +1 -1
- package/dist/collection/components/input/Looks.js +7 -1
- package/dist/collection/components/input/Looks.js.map +1 -1
- package/dist/collection/components/input/Submittable.js.map +1 -1
- package/dist/collection/components/input/checkbox/index.js +382 -0
- package/dist/collection/components/input/checkbox/index.js.map +1 -0
- package/dist/collection/components/input/checkbox/style.css +75 -0
- package/dist/collection/components/input/clear/index.js +12 -7
- package/dist/collection/components/input/clear/index.js.map +1 -1
- package/dist/collection/components/input/clear/style.css +23 -20
- package/dist/collection/components/input/color/index.js +226 -0
- package/dist/collection/components/input/color/index.js.map +1 -0
- package/dist/collection/components/input/color/style.css +15 -0
- package/dist/collection/components/input/date/index.js +8 -8
- package/dist/collection/components/input/date/index.js.map +1 -1
- package/dist/collection/components/input/date/range/index.js +13 -17
- package/dist/collection/components/input/date/range/index.js.map +1 -1
- package/dist/collection/components/input/date/range/style.css +25 -0
- package/dist/collection/components/input/date/style.css +25 -0
- package/dist/collection/components/input/demo/index.js +28 -72
- package/dist/collection/components/input/demo/index.js.map +1 -1
- package/dist/collection/components/input/demo/style.css +15 -0
- package/dist/collection/components/input/edit/index.js +249 -0
- package/dist/collection/components/input/edit/index.js.map +1 -0
- package/dist/collection/components/input/edit/style.css +238 -0
- package/dist/collection/components/input/file/index.js +3 -3
- package/dist/collection/components/input/file/index.js.map +1 -1
- package/dist/collection/components/input/file/style.css +22 -0
- package/dist/collection/components/input/index.js +245 -110
- package/dist/collection/components/input/index.js.map +1 -1
- package/dist/collection/components/input/month/index.js +5 -5
- package/dist/collection/components/input/month/index.js.map +1 -1
- package/dist/collection/components/input/radio/Selected.js +11 -0
- package/dist/collection/components/input/radio/Selected.js.map +1 -0
- package/dist/collection/components/input/radio/index.js +426 -0
- package/dist/collection/components/input/radio/index.js.map +1 -0
- package/dist/collection/components/{radio-button → input/radio/item}/index.js +60 -72
- package/dist/collection/components/input/radio/item/index.js.map +1 -0
- package/dist/collection/components/input/radio/item/style.css +28 -0
- package/dist/collection/components/input/radio/style.css +66 -0
- package/dist/collection/components/input/range/index.js +440 -0
- package/dist/collection/components/input/range/index.js.map +1 -0
- package/dist/collection/components/input/range/style.css +154 -0
- package/dist/collection/components/input/reset/index.js +260 -0
- package/dist/collection/components/input/reset/index.js.map +1 -0
- package/dist/collection/components/input/reset/style.css +255 -0
- package/dist/collection/components/input/select/index.js +443 -95
- package/dist/collection/components/input/select/index.js.map +1 -1
- package/dist/collection/components/input/select/style.css +111 -23
- package/dist/collection/components/input/style.css +24 -2
- package/dist/collection/components/input/submit/index.js +269 -0
- package/dist/collection/components/input/submit/index.js.map +1 -0
- package/dist/collection/components/input/submit/style.css +11 -0
- package/dist/collection/components/item/Item.js +11 -0
- package/dist/collection/components/item/Item.js.map +1 -0
- package/dist/collection/components/item/index.js +69 -29
- package/dist/collection/components/item/index.js.map +1 -1
- package/dist/collection/components/item/style.css +1 -3
- package/dist/collection/components/label/index.js +81 -0
- package/dist/collection/components/label/index.js.map +1 -0
- package/dist/collection/components/label/style.css +15 -0
- package/dist/collection/components/lazy/index.js +73 -0
- package/dist/collection/components/lazy/index.js.map +1 -0
- package/dist/collection/components/{radio → load-more}/index.js +35 -46
- package/dist/collection/components/load-more/index.js.map +1 -0
- package/dist/collection/components/load-more/style.css +5 -0
- package/dist/collection/components/notification/index.js.map +1 -1
- package/dist/collection/components/picker/demo/index.js +17 -15
- package/dist/collection/components/picker/demo/index.js.map +1 -1
- package/dist/collection/components/picker/demo/style.css +24 -1
- package/dist/collection/components/picker/index.js +172 -7
- package/dist/collection/components/picker/index.js.map +1 -1
- package/dist/collection/components/picker/menu/index.js +74 -3
- package/dist/collection/components/picker/menu/index.js.map +1 -1
- package/dist/collection/components/picker/menu/style.css +16 -6
- package/dist/collection/components/picker/option/index.js +51 -3
- package/dist/collection/components/picker/option/index.js.map +1 -1
- package/dist/collection/components/picker/option/style.css +9 -4
- package/dist/collection/components/picker/style.css +28 -3
- package/dist/collection/components/popup/index.js +5 -5
- package/dist/collection/components/popup/index.js.map +1 -1
- package/dist/collection/components/popup/style.css +4 -4
- package/dist/collection/components/submit/index.js +0 -15
- package/dist/collection/components/submit/index.js.map +1 -1
- package/dist/collection/components/submit/style.css +23 -20
- package/dist/collection/components/summary/index.js +2 -3
- package/dist/collection/components/summary/index.js.map +1 -1
- package/dist/collection/components/summary/style.css +25 -16
- package/dist/collection/components/table/cell/style.css +3 -3
- package/dist/collection/components/table/demo/filtered/Root.js.map +1 -1
- package/dist/collection/components/table/demo/filtered/index.js +30 -15
- package/dist/collection/components/table/demo/filtered/index.js.map +1 -1
- package/dist/collection/components/table/demo/filtered/style.css +9 -0
- package/dist/collection/components/table/demo/index.js +2 -14
- package/dist/collection/components/table/demo/index.js.map +1 -1
- package/dist/collection/components/table/demo/style.css +5 -0
- package/dist/collection/components/table/demo/testing/data.js.map +1 -0
- package/dist/collection/components/table/demo/testing/index.js +28 -0
- package/dist/collection/components/table/demo/testing/index.js.map +1 -0
- package/dist/collection/components/table/demo/testing/style.css +32 -0
- package/dist/collection/components/table/expandable/cell/index.js +1 -20
- package/dist/collection/components/table/expandable/cell/index.js.map +1 -1
- package/dist/collection/components/table/expandable/cell/style.css +13 -13
- package/dist/collection/components/table/expandable/row/index.js +1 -20
- package/dist/collection/components/table/expandable/row/index.js.map +1 -1
- package/dist/collection/components/table/expandable/row/style.css +11 -11
- package/dist/collection/components/table/footer/index.js +19 -0
- package/dist/collection/components/table/footer/index.js.map +1 -0
- package/dist/collection/components/table/footer/style.css +10 -0
- package/dist/collection/components/table/header/style.css +2 -3
- package/dist/collection/components/table/index.js +24 -1
- package/dist/collection/components/table/index.js.map +1 -1
- package/dist/collection/components/theme/color/index.js +48 -0
- package/dist/collection/components/theme/color/index.js.map +1 -0
- package/dist/collection/components/theme/color/style.css +8 -0
- package/dist/collection/components/theme/color/variant/index.js +66 -0
- package/dist/collection/components/theme/color/variant/index.js.map +1 -0
- package/dist/collection/components/theme/color/variant/style.css +18 -0
- package/dist/collection/components/theme/colors/index.js +30 -0
- package/dist/collection/components/theme/colors/index.js.map +1 -0
- package/dist/collection/components/theme/colors/style.css +7 -0
- package/dist/collection/components/theme/picker/index.js +48 -0
- package/dist/collection/components/theme/picker/index.js.map +1 -0
- package/dist/collection/components/theme/picker/style.css +0 -0
- package/dist/collection/components/toggle-switch/index.js +69 -17
- package/dist/collection/components/toggle-switch/index.js.map +1 -1
- package/dist/collection/components/toggle-switch/style.css +19 -12
- package/dist/collection/global/Observers.js +22 -0
- package/dist/collection/global/Observers.js.map +1 -0
- package/dist/collection/global/index.js +5 -0
- package/dist/collection/global/index.js.map +1 -0
- package/dist/collection/model/Color.js +18 -1
- package/dist/collection/model/Color.js.map +1 -1
- package/dist/collection/model/Data.js +8 -1
- package/dist/collection/model/Data.js.map +1 -1
- package/dist/collection/model/Icon.js +23 -0
- package/dist/collection/model/Icon.js.map +1 -0
- package/dist/collection/model/Listenable.js +16 -3
- package/dist/collection/model/Listenable.js.map +1 -1
- package/dist/collection/model/Option.js.map +1 -1
- package/dist/collection/model/index.js +2 -1
- package/dist/collection/model/index.js.map +1 -1
- package/dist/collection/smoothly.js +1 -1
- package/dist/collection/smoothly.js.map +1 -1
- package/dist/custom-elements/index.d.ts +120 -24
- package/dist/custom-elements/index.js +15445 -33845
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/Data-c8093b5a.js +579 -0
- package/dist/esm/Data-c8093b5a.js.map +1 -0
- package/dist/esm/Observers-5f08e828.js +25 -0
- package/dist/esm/Observers-5f08e828.js.map +1 -0
- package/dist/esm/TimeZone-c8df4905.js +6181 -0
- package/dist/esm/TimeZone-c8df4905.js.map +1 -0
- package/dist/esm/{getLanguage-9c833eef.js → getLanguage-1e9ec036.js} +2 -5994
- package/dist/esm/getLanguage-1e9ec036.js.map +1 -0
- package/dist/esm/{index-c196715a.js → index-258984d3.js} +2 -4
- package/dist/esm/index-258984d3.js.map +1 -0
- package/dist/esm/index.js +3 -14
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +5 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/smoothly-accordion-item.entry.js +57 -0
- package/dist/esm/smoothly-accordion-item.entry.js.map +1 -0
- package/dist/esm/smoothly-accordion.entry.js +54 -0
- package/dist/esm/smoothly-accordion.entry.js.map +1 -0
- package/dist/esm/smoothly-address-display.entry.js +1 -1
- package/dist/esm/smoothly-address.entry.js +1 -1
- package/dist/esm/smoothly-addresses.entry.js +1 -1
- package/dist/esm/smoothly-app_80.entry.js +11065 -0
- package/dist/esm/smoothly-app_80.entry.js.map +1 -0
- package/dist/esm/smoothly-checkbox.entry.js +98 -0
- package/dist/esm/smoothly-checkbox.entry.js.map +1 -0
- package/dist/esm/smoothly-color.entry.js +1 -1
- package/dist/esm/smoothly-country.entry.js +10 -9
- package/dist/esm/smoothly-country.entry.js.map +1 -1
- package/dist/esm/smoothly-display-date-time.entry.js +1 -1
- package/dist/esm/smoothly-google-font.entry.js +1 -1
- package/dist/esm/smoothly-reorder.entry.js +2 -2
- package/dist/esm/smoothly-reorder.entry.js.map +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +2 -2
- package/dist/esm/smoothly-trigger-source.entry.js +2 -2
- package/dist/esm/smoothly.js +5 -4
- package/dist/esm/smoothly.js.map +1 -1
- package/dist/smoothly/index.esm.js +1 -1
- package/dist/smoothly/index.esm.js.map +1 -1
- package/dist/smoothly/{p-663ccbd0.entry.js → p-12182a73.entry.js} +2 -2
- package/dist/smoothly/p-21905b32.entry.js +2 -0
- package/dist/smoothly/p-21905b32.entry.js.map +1 -0
- package/dist/smoothly/p-2e986022.js +2 -0
- package/dist/smoothly/p-2e986022.js.map +1 -0
- package/dist/smoothly/p-303520d1.entry.js +2 -0
- package/dist/smoothly/p-303520d1.entry.js.map +1 -0
- package/dist/smoothly/p-312ef066.js +2 -0
- package/dist/smoothly/p-312ef066.js.map +1 -0
- package/dist/smoothly/{p-9992c8c4.entry.js → p-47151a53.entry.js} +2 -2
- package/dist/smoothly/{p-d0b8061e.js → p-5e387578.js} +3 -3
- package/dist/smoothly/p-5e387578.js.map +1 -0
- package/dist/smoothly/{p-b82ef190.entry.js → p-635c813e.entry.js} +2 -2
- package/dist/smoothly/{p-dbd1afa9.entry.js → p-6aebb818.entry.js} +2 -2
- package/dist/smoothly/p-6e9aca2e.entry.js +2 -0
- package/dist/smoothly/p-6e9aca2e.entry.js.map +1 -0
- package/dist/smoothly/{p-c4ffc15d.entry.js → p-7a69b43f.entry.js} +2 -2
- package/dist/smoothly/{p-4d743f07.entry.js → p-7bf147bf.entry.js} +2 -2
- package/dist/smoothly/p-823e02b0.entry.js +2 -0
- package/dist/smoothly/p-823e02b0.entry.js.map +1 -0
- package/dist/smoothly/p-b3eac6af.entry.js +2 -0
- package/dist/smoothly/{p-4ff439dd.entry.js.map → p-b3eac6af.entry.js.map} +1 -1
- package/dist/smoothly/{p-f96e41aa.entry.js → p-cb493516.entry.js} +2 -2
- package/dist/smoothly/p-ede93d69.js +2 -0
- package/dist/smoothly/p-ede93d69.js.map +1 -0
- package/dist/smoothly/{p-ce4e6f44.entry.js → p-eef1c80b.entry.js} +2 -2
- package/dist/smoothly/p-f125610c.entry.js +2 -0
- package/dist/smoothly/p-f125610c.entry.js.map +1 -0
- package/dist/smoothly/p-fa664317.js +2 -0
- package/dist/smoothly/p-fa664317.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/smoothly/smoothly.esm.js.map +1 -1
- package/dist/types/components/Button.d.ts +1 -2
- package/dist/types/components/app/index.d.ts +3 -0
- package/dist/types/components/app/room/index.d.ts +4 -2
- package/dist/types/components/app-demo/index.d.ts +1 -0
- package/dist/types/components/burger/index.d.ts +2 -2
- package/dist/types/components/button/index.d.ts +2 -2
- package/dist/types/components/calendar/index.d.ts +5 -5
- package/dist/types/components/checkbox/index.d.ts +4 -2
- package/dist/types/components/confirm/index.d.ts +19 -0
- package/dist/types/components/filter/Filter.d.ts +21 -0
- package/dist/types/components/filter/field/index.d.ts +10 -0
- package/dist/types/components/filter/index.d.ts +13 -12
- package/dist/types/components/filter/input/index.d.ts +17 -23
- package/dist/types/components/filter/picker/index.d.ts +25 -0
- package/dist/types/components/filter/toggle/index.d.ts +22 -0
- package/dist/types/components/form/index.d.ts +22 -15
- package/dist/types/components/icon/index.d.ts +4 -6
- package/dist/types/components/input/Editable.d.ts +21 -0
- package/dist/types/components/input/Input.d.ts +19 -7
- package/dist/types/components/input/Looks.d.ts +7 -1
- package/dist/types/components/input/Submittable.d.ts +1 -1
- package/dist/types/components/input/checkbox/index.d.ts +30 -0
- package/dist/types/components/input/color/index.d.ts +24 -0
- package/dist/types/components/input/date/index.d.ts +1 -1
- package/dist/types/components/input/date/range/index.d.ts +2 -2
- package/dist/types/components/input/demo/index.d.ts +3 -6
- package/dist/types/components/input/edit/index.d.ts +18 -0
- package/dist/types/components/input/index.d.ts +30 -21
- package/dist/types/components/input/month/index.d.ts +1 -1
- package/dist/types/components/input/radio/Selected.d.ts +10 -0
- package/dist/types/components/input/radio/index.d.ts +36 -0
- package/dist/types/components/input/radio/item/index.d.ts +15 -0
- package/dist/types/components/input/range/index.d.ts +33 -0
- package/dist/types/components/input/reset/index.d.ts +19 -0
- package/dist/types/components/input/select/index.d.ts +41 -18
- package/dist/types/components/input/submit/index.d.ts +19 -0
- package/dist/types/components/item/Item.d.ts +10 -0
- package/dist/types/components/item/index.d.ts +8 -5
- package/dist/types/components/label/index.d.ts +6 -0
- package/dist/types/components/lazy/index.d.ts +7 -0
- package/dist/types/components/load-more/index.d.ts +11 -0
- package/dist/types/components/picker/demo/index.d.ts +7 -2
- package/dist/types/components/picker/index.d.ts +20 -6
- package/dist/types/components/picker/menu/index.d.ts +8 -0
- package/dist/types/components/picker/option/index.d.ts +2 -0
- package/dist/types/components/popup/index.d.ts +1 -1
- package/dist/types/components/submit/index.d.ts +0 -1
- package/dist/types/components/table/demo/filtered/Root.d.ts +2 -0
- package/dist/types/components/table/demo/filtered/index.d.ts +6 -6
- package/dist/types/components/table/demo/index.d.ts +1 -1
- package/dist/types/components/table/expandable/cell/index.d.ts +0 -1
- package/dist/types/components/table/expandable/row/index.d.ts +0 -1
- package/dist/types/components/table/footer/index.d.ts +3 -0
- package/dist/types/components/table/index.d.ts +2 -0
- package/dist/types/components/theme/color/index.d.ts +5 -0
- package/dist/types/components/theme/color/variant/index.d.ts +6 -0
- package/dist/types/components/theme/colors/index.d.ts +3 -0
- package/dist/types/components/theme/picker/index.d.ts +4 -0
- package/dist/types/components/toggle-switch/index.d.ts +7 -2
- package/dist/types/components.d.ts +658 -182
- package/dist/types/global/Observers.d.ts +8 -0
- package/dist/types/global/index.d.ts +4 -0
- package/dist/types/model/Color.d.ts +7 -1
- package/dist/types/model/Data.d.ts +4 -0
- package/dist/types/model/Icon.d.ts +8 -0
- package/dist/types/model/Listenable.d.ts +10 -1
- package/dist/types/model/Option.d.ts +2 -0
- package/dist/types/model/index.d.ts +1 -1
- package/dist/types/smoothly.d.ts +1 -1
- package/package.json +7 -11
- package/dist/cjs/Data-afbe461d.js +0 -807
- package/dist/cjs/Data-afbe461d.js.map +0 -1
- package/dist/cjs/getLanguage-7e53766b.js.map +0 -1
- package/dist/cjs/index-6ae370b4.js.map +0 -1
- package/dist/cjs/smoothly-accordion_66.cjs.entry.js +0 -29732
- package/dist/cjs/smoothly-accordion_66.cjs.entry.js.map +0 -1
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +0 -22
- package/dist/cjs/smoothly-radio-group.cjs.entry.js.map +0 -1
- package/dist/collection/components/filter/Clearable.js +0 -8
- package/dist/collection/components/filter/Clearable.js.map +0 -1
- package/dist/collection/components/icon/Icon.js +0 -2
- package/dist/collection/components/icon/Icon.js.map +0 -1
- package/dist/collection/components/input/Changeable.js +0 -8
- package/dist/collection/components/input/Changeable.js.map +0 -1
- package/dist/collection/components/radio/index.js.map +0 -1
- package/dist/collection/components/radio/style.css +0 -31
- package/dist/collection/components/radio-button/Selected.js +0 -2
- package/dist/collection/components/radio-button/Selected.js.map +0 -1
- package/dist/collection/components/radio-button/index.js.map +0 -1
- package/dist/collection/components/radio-button/item/index.js +0 -117
- package/dist/collection/components/radio-button/item/index.js.map +0 -1
- package/dist/collection/components/radio-button/item/style.css +0 -85
- package/dist/collection/components/radio-group/index.js +0 -43
- package/dist/collection/components/radio-group/index.js.map +0 -1
- package/dist/collection/components/radio-group/style.css +0 -36
- package/dist/collection/components/table/testing/data.js.map +0 -1
- package/dist/collection/components/table/testing/index.js +0 -28
- package/dist/collection/components/table/testing/index.js.map +0 -1
- package/dist/collection/components/table/testing/style.css +0 -8
- package/dist/collection/model/ClientIdentifier.js +0 -13
- package/dist/collection/model/ClientIdentifier.js.map +0 -1
- package/dist/esm/Data-77d2bdbe.js +0 -803
- package/dist/esm/Data-77d2bdbe.js.map +0 -1
- package/dist/esm/getLanguage-9c833eef.js.map +0 -1
- package/dist/esm/index-c196715a.js.map +0 -1
- package/dist/esm/smoothly-accordion_66.entry.js +0 -29663
- package/dist/esm/smoothly-accordion_66.entry.js.map +0 -1
- package/dist/esm/smoothly-radio-group.entry.js +0 -18
- package/dist/esm/smoothly-radio-group.entry.js.map +0 -1
- package/dist/smoothly/p-1b714a63.js +0 -2
- package/dist/smoothly/p-1b714a63.js.map +0 -1
- package/dist/smoothly/p-1efa3261.entry.js +0 -2
- package/dist/smoothly/p-1efa3261.entry.js.map +0 -1
- package/dist/smoothly/p-4ff439dd.entry.js +0 -2
- package/dist/smoothly/p-74a3586c.js +0 -2
- package/dist/smoothly/p-74a3586c.js.map +0 -1
- package/dist/smoothly/p-8a45ae84.entry.js +0 -2
- package/dist/smoothly/p-8a45ae84.entry.js.map +0 -1
- package/dist/smoothly/p-90b340b4.entry.js +0 -2
- package/dist/smoothly/p-90b340b4.entry.js.map +0 -1
- package/dist/smoothly/p-d0b8061e.js.map +0 -1
- package/dist/types/components/filter/Clearable.d.ts +0 -6
- package/dist/types/components/icon/Icon.d.ts +0 -4
- package/dist/types/components/input/Changeable.d.ts +0 -7
- package/dist/types/components/radio/index.d.ts +0 -13
- package/dist/types/components/radio-button/Selected.d.ts +0 -5
- package/dist/types/components/radio-button/index.d.ts +0 -13
- package/dist/types/components/radio-button/item/index.d.ts +0 -12
- package/dist/types/components/radio-group/index.d.ts +0 -4
- package/dist/types/model/ClientIdentifier.d.ts +0 -5
- /package/dist/collection/components/{radio-button → lazy}/style.css +0 -0
- /package/dist/collection/components/table/{testing → demo/testing}/data.js +0 -0
- /package/dist/smoothly/{p-663ccbd0.entry.js.map → p-12182a73.entry.js.map} +0 -0
- /package/dist/smoothly/{p-9992c8c4.entry.js.map → p-47151a53.entry.js.map} +0 -0
- /package/dist/smoothly/{p-b82ef190.entry.js.map → p-635c813e.entry.js.map} +0 -0
- /package/dist/smoothly/{p-dbd1afa9.entry.js.map → p-6aebb818.entry.js.map} +0 -0
- /package/dist/smoothly/{p-c4ffc15d.entry.js.map → p-7a69b43f.entry.js.map} +0 -0
- /package/dist/smoothly/{p-4d743f07.entry.js.map → p-7bf147bf.entry.js.map} +0 -0
- /package/dist/smoothly/{p-f96e41aa.entry.js.map → p-cb493516.entry.js.map} +0 -0
- /package/dist/smoothly/{p-ce4e6f44.entry.js.map → p-eef1c80b.entry.js.map} +0 -0
- /package/dist/types/components/table/{testing → demo/testing}/data.d.ts +0 -0
- /package/dist/types/components/table/{testing → demo/testing}/index.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/app/room/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/app/room/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAqC,CAAC,EAAE,IAAI,EAAO,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAC/G,OAAO,qBAAqB,CAAA;AAQ5B,MAAM,OAAO,eAAe;;;;;gBAIS,EAAE;;;;;EAQtC,iBAAiB;IAChB,IAAI,CAAC,QAAQ,GAAG,CAAC,OAAO,IAAI,CAAC,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CACxG,MAAM,CAAC,QAAQ,CACf,CAAA;IACD,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAA;EAC1D,CAAC;EAGD,KAAK,CAAC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;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Event, EventEmitter, FunctionalComponent, h, Host, JSX, Method, Prop } from \"@stencil/core\"\nimport \"urlpattern-polyfill\"\nimport { Icon } from \"../../../model\"\n\n@Component({\n\ttag: \"smoothly-app-room\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyAppRoom {\n\t@Prop({ reflect: true }) label?: string\n\t@Prop({ reflect: true }) icon?: Icon\n\t@Prop({ reflect: true }) disabled: boolean\n\t@Prop() path: string | URLPattern = \"\"\n\t@Prop() to?: string\n\t@Prop({ reflect: true, mutable: true }) selected?: boolean\n\t@Prop() content?: JSX.Element | FunctionalComponent\n\t@Event() smoothlyRoomSelected: EventEmitter<{ history: boolean }>\n\t@Event() smoothlyRoomLoaded: EventEmitter<{ selected: boolean }>\n\tprivate contentElement?: HTMLElement\n\n\tcomponentWillLoad() {\n\t\tthis.selected = (typeof this.path == \"string\" ? new URLPattern({ pathname: this.path }) : this.path).test(\n\t\t\twindow.location\n\t\t)\n\t\tthis.smoothlyRoomLoaded.emit({ selected: this.selected })\n\t}\n\n\t@Method()\n\tasync getContent(): Promise<HTMLElement | undefined> {\n\t\treturn this.contentElement\n\t}\n\t@Method()\n\tasync setSelected(selected: boolean, options?: { history?: boolean }): Promise<void> {\n\t\tthis.selected = selected\n\t\tif (selected)\n\t\t\tthis.smoothlyRoomSelected.emit({ history: !!options?.history })\n\t}\n\n\tclickHandler(event: MouseEvent) {\n\t\tif (!event.metaKey && !event.ctrlKey && event.which != 2 && event.button != 1) {\n\t\t\tevent.preventDefault()\n\t\t\tthis.setSelected(true)\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<li>\n\t\t\t\t\t<a href={typeof this.path == \"string\" ? this.path : this.path.pathname} onClick={e => this.clickHandler(e)}>\n\t\t\t\t\t\t{this.icon ? <smoothly-icon name={this.icon} toolTip={this.label}></smoothly-icon> : this.label}\n\t\t\t\t\t</a>\n\t\t\t\t</li>\n\t\t\t\t<main ref={e => (this.contentElement = e)}>\n\t\t\t\t\t{this.content && <smoothly-lazy content={this.content} />}\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</main>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -4,39 +4,53 @@
|
|
|
4
4
|
text-align: center;
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
main {
|
|
9
|
+
overflow-y: auto;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:not(:host[label], :host[icon]),
|
|
13
|
+
:host[disabled] {
|
|
8
14
|
display: none;
|
|
9
15
|
}
|
|
10
|
-
|
|
16
|
+
|
|
17
|
+
:host>main {
|
|
11
18
|
display: none;
|
|
12
19
|
}
|
|
13
|
-
|
|
20
|
+
|
|
21
|
+
:host>li {
|
|
14
22
|
height: 100%;
|
|
15
23
|
list-style: none;
|
|
16
24
|
}
|
|
17
|
-
|
|
25
|
+
|
|
26
|
+
:host>li>a {
|
|
18
27
|
padding: 0 1.5em;
|
|
19
28
|
height: 100%;
|
|
20
29
|
}
|
|
21
|
-
|
|
30
|
+
|
|
31
|
+
:host[selected]>li>a {
|
|
22
32
|
display: flex;
|
|
23
33
|
color: rgb(var(--smoothly-color-contrast));
|
|
24
34
|
background: rgb(var(--smoothly-color-shade));
|
|
25
35
|
}
|
|
26
|
-
|
|
36
|
+
|
|
37
|
+
:host:hover>li>a {
|
|
27
38
|
color: rgb(var(--smoothly-color-contrast));
|
|
28
39
|
background-color: rgb(var(--smoothly-color-tint));
|
|
29
40
|
transition: 0.2s;
|
|
30
41
|
}
|
|
31
|
-
|
|
42
|
+
|
|
43
|
+
:host>li>a>smoothly-icon {
|
|
32
44
|
align-self: inherit;
|
|
33
45
|
margin-bottom: 1em;
|
|
34
46
|
}
|
|
47
|
+
|
|
35
48
|
@media screen and (max-width: 900px) {
|
|
36
|
-
:host
|
|
49
|
+
:host>li>a {
|
|
37
50
|
padding: 0;
|
|
38
51
|
}
|
|
39
|
-
|
|
52
|
+
|
|
53
|
+
:host>li>a {
|
|
40
54
|
margin-left: -1.5rem;
|
|
41
55
|
margin-right: -1.5rem;
|
|
42
56
|
padding-left: 1.5rem;
|
|
@@ -1,49 +1,58 @@
|
|
|
1
1
|
smoothly-app {
|
|
2
|
-
--
|
|
2
|
+
--header-height: 5rem;
|
|
3
3
|
display: block;
|
|
4
|
-
scrollbar-width: none;
|
|
5
|
-
margin-left: var(--margin);
|
|
6
|
-
margin-right: var(--margin);
|
|
7
|
-
margin-top: var(--margin);
|
|
8
4
|
}
|
|
5
|
+
|
|
6
|
+
smoothly-app main {
|
|
7
|
+
height: calc(100dvh - var(--header-height));
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
9
11
|
smoothly-app[hidden] {
|
|
10
12
|
display: none;
|
|
11
13
|
}
|
|
12
|
-
|
|
14
|
+
|
|
15
|
+
smoothly-app>smoothly-notifier {
|
|
16
|
+
height: 100%;
|
|
13
17
|
background: none;
|
|
14
18
|
}
|
|
15
|
-
|
|
19
|
+
|
|
20
|
+
smoothly-app>smoothly-notifier>header {
|
|
16
21
|
position: sticky;
|
|
17
22
|
top: 0;
|
|
18
23
|
z-index: 5;
|
|
19
24
|
width: 100%;
|
|
20
|
-
height:
|
|
25
|
+
height: var(--header-height);
|
|
21
26
|
display: flex;
|
|
22
27
|
justify-content: space-between;
|
|
28
|
+
box-sizing: border-box;
|
|
23
29
|
align-items: center;
|
|
24
30
|
box-shadow: 0 2px 5px 0 rgba(var(--smoothly-dark-shadow));
|
|
25
31
|
border-bottom: 1px solid rgba(var(--smoothly-dark-color));
|
|
26
32
|
background: rgba(var(--smoothly-color));
|
|
27
33
|
color: rgba(var(--smoothly-color-contrast));
|
|
28
34
|
}
|
|
29
|
-
|
|
35
|
+
|
|
36
|
+
smoothly-app>smoothly-notifier>header>nav {
|
|
30
37
|
width: 100%;
|
|
31
38
|
flex-shrink: 2;
|
|
32
39
|
height: 100%;
|
|
33
40
|
}
|
|
34
41
|
|
|
35
|
-
smoothly-app
|
|
36
|
-
smoothly-app
|
|
42
|
+
smoothly-app>smoothly-notifier>header>nav,
|
|
43
|
+
smoothly-app>smoothly-notifier>header>nav>ul {
|
|
37
44
|
display: flex;
|
|
38
45
|
margin: 0;
|
|
39
46
|
}
|
|
40
|
-
|
|
47
|
+
|
|
48
|
+
smoothly-app>smoothly-notifier>header>h1 {
|
|
41
49
|
margin-left: 1rem;
|
|
42
50
|
margin-bottom: 0.8em;
|
|
43
51
|
display: flex;
|
|
44
52
|
height: 100%;
|
|
45
53
|
}
|
|
46
|
-
|
|
54
|
+
|
|
55
|
+
smoothly-app>smoothly-notifier>header>h1>a {
|
|
47
56
|
display: inline-block;
|
|
48
57
|
align-self: center;
|
|
49
58
|
size: 100%;
|
|
@@ -51,21 +60,26 @@ smoothly-app > smoothly-notifier > header > h1 > a {
|
|
|
51
60
|
text-decoration: none;
|
|
52
61
|
white-space: nowrap;
|
|
53
62
|
}
|
|
54
|
-
|
|
63
|
+
|
|
64
|
+
smoothly-app>smoothly-notifier>header>nav>ul li a {
|
|
55
65
|
line-height: 1.6cm;
|
|
56
66
|
}
|
|
57
|
-
|
|
67
|
+
|
|
68
|
+
smoothly-app>smoothly-notifier>header>nav>ul li a {
|
|
58
69
|
line-height: 1.6cm;
|
|
59
70
|
}
|
|
60
|
-
|
|
71
|
+
|
|
72
|
+
smoothly-app>smoothly-notifier>header>nav>ul {
|
|
61
73
|
width: 100%;
|
|
62
74
|
}
|
|
63
|
-
|
|
75
|
+
|
|
76
|
+
smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container {
|
|
64
77
|
display: flex;
|
|
65
78
|
align-items: center;
|
|
66
79
|
height: 100%;
|
|
67
80
|
}
|
|
68
|
-
|
|
81
|
+
|
|
82
|
+
smoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container {
|
|
69
83
|
display: flex;
|
|
70
84
|
gap: 1rem;
|
|
71
85
|
align-items: center;
|
|
@@ -73,14 +87,16 @@ smoothly-app > smoothly-notifier > header > nav > ul > div.nav-end-container {
|
|
|
73
87
|
margin-left: auto;
|
|
74
88
|
margin-right: 1rem;
|
|
75
89
|
}
|
|
76
|
-
|
|
90
|
+
|
|
91
|
+
smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-end"] {
|
|
77
92
|
width: fit-content;
|
|
78
93
|
gap: 0.5em;
|
|
79
94
|
align-self: center;
|
|
80
95
|
height: fit-content;
|
|
81
96
|
margin-left: 10rem;
|
|
82
97
|
}
|
|
83
|
-
|
|
98
|
+
|
|
99
|
+
smoothly-app>smoothly-notifier>header>nav>ul li a {
|
|
84
100
|
display: flex;
|
|
85
101
|
height: 2.3rem;
|
|
86
102
|
text-decoration: none;
|
|
@@ -89,49 +105,58 @@ smoothly-app > smoothly-notifier > header > nav > ul li a {
|
|
|
89
105
|
}
|
|
90
106
|
|
|
91
107
|
@media screen and (max-width: 900px) {
|
|
92
|
-
smoothly-app
|
|
108
|
+
smoothly-app>smoothly-notifier>header>nav {
|
|
93
109
|
width: 50dvw;
|
|
94
110
|
max-width: 15rem;
|
|
95
|
-
top:
|
|
111
|
+
top: 100%;
|
|
96
112
|
position: absolute;
|
|
113
|
+
max-height: calc(100dvh - var(--header-height));
|
|
114
|
+
overflow-y: scroll;
|
|
97
115
|
right: 0;
|
|
98
116
|
height: auto;
|
|
99
117
|
}
|
|
100
|
-
|
|
101
|
-
smoothly-app
|
|
118
|
+
|
|
119
|
+
smoothly-app>smoothly-notifier>header>nav,
|
|
120
|
+
smoothly-app>smoothly-notifier>header>nav>ul {
|
|
102
121
|
flex-direction: column;
|
|
103
122
|
background-color: rgba(var(--smoothly-color));
|
|
104
123
|
}
|
|
105
|
-
|
|
124
|
+
|
|
125
|
+
smoothly-app>smoothly-notifier>header>nav>ul {
|
|
106
126
|
padding: 1.5rem;
|
|
107
127
|
box-sizing: border-box;
|
|
108
128
|
}
|
|
109
|
-
|
|
129
|
+
|
|
130
|
+
smoothly-app>smoothly-notifier>header>nav>ul li {
|
|
110
131
|
margin-right: 0;
|
|
111
132
|
margin-bottom: 1em;
|
|
112
133
|
width: 100%;
|
|
113
134
|
}
|
|
114
135
|
|
|
115
|
-
smoothly-app
|
|
136
|
+
smoothly-app>smoothly-notifier>header>smoothly-burger {
|
|
116
137
|
position: absolute;
|
|
117
138
|
top: 0;
|
|
118
139
|
right: 0;
|
|
119
140
|
}
|
|
120
|
-
|
|
141
|
+
|
|
142
|
+
smoothly-app>smoothly-notifier>header>nav>ul>[slot="nav-start"] {
|
|
121
143
|
display: none;
|
|
122
144
|
}
|
|
123
|
-
|
|
124
|
-
smoothly-app
|
|
145
|
+
|
|
146
|
+
smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container,
|
|
147
|
+
smoothly-app>smoothly-notifier>header>nav>ul>div.nav-end-container {
|
|
125
148
|
flex-direction: column;
|
|
126
149
|
margin: 0;
|
|
127
150
|
align-items: start;
|
|
128
151
|
justify-content: center;
|
|
129
152
|
gap: 1em;
|
|
130
153
|
}
|
|
131
|
-
|
|
154
|
+
|
|
155
|
+
smoothly-app>smoothly-notifier>header>nav>ul>div.nav-start-container>*:last-child {
|
|
132
156
|
margin-bottom: 1em;
|
|
133
157
|
}
|
|
134
158
|
}
|
|
135
|
-
|
|
159
|
+
|
|
160
|
+
smoothly-app>smoothly-notifier>header>nav:not(.menu-open) {
|
|
136
161
|
display: none;
|
|
137
162
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { redirect } from "../../model";
|
|
3
2
|
export class SmoothlyAppDemo {
|
|
4
3
|
constructor() {
|
|
5
4
|
this.baseUrl = undefined;
|
|
6
5
|
}
|
|
7
6
|
render() {
|
|
8
|
-
return (h("smoothly-app", { color: "dark", label: "Smoothly Demo" }, h("smoothly-trigger", { slot: "nav-start", type: "link", name: "logout" }, h("smoothly-icon", { toolTip: "Log out", name: "log-out", size: "medium" })), h("smoothly-app-room", { path: "/links", label: "Links" }, h("smoothly-input", { type: "text" }, "Default"), h("div", { style: { padding: "1em", maxWidth: "12em" } }, h("smoothly-button", { fill: "solid", color: "danger", link: "https://google.com" }, "open"), h("smoothly-button", { fill: "solid", color: "danger", link: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
|
|
7
|
+
return (h("smoothly-app", { color: "dark", label: "Smoothly Demo", home: "/root", ref: e => (this.app = e) }, h("smoothly-trigger", { slot: "nav-start", type: "link", name: "logout" }, h("smoothly-icon", { toolTip: "Log out", name: "log-out", size: "medium" })), h("smoothly-app-room", { path: "/root", label: "root" }, h("h2", null, "Theme"), h("smoothly-theme-picker", null, h("smoothly-item", { value: "assets/style/smoothly.css" }, "Smoothly"), h("smoothly-item", { value: "https://app.issuefab.com/assets/style/index.css" }, "Issuefab"), h("smoothly-item", { value: "https://app.proquse.com/assets/style/index.css" }, "Proquse"), h("smoothly-item", { value: "https://app.weekmeter.com/assets/style/index.css" }, "Weekmeter"), h("smoothly-item", { value: "https://dash.pax2pay.app/p2pdash.css" }, "Pax2Pay Dashboard"), h("smoothly-item", { value: "https://ui.pax2pay.app/assets/style/pax2pay.css" }, "Pax2Pay Portal"), h("smoothly-item", { value: "https://theme.payfunc.com/intergiro/index.css" }, "Intergiro Monitor"), h("smoothly-item", { value: "https://theme.payfunc.com/light/index.css" }, "Payfunc Light"), h("smoothly-item", { value: "https://theme.payfunc.com/dark/index.css" }, "Payfunc Dark")), h("smoothly-theme-colors", null), h("smoothly-button", { type: "link", link: "/redirect" }, "To redirect"), h("smoothly-button", { type: "link", link: "/redirect" }, "To /redirect"), h("smoothly-button", { type: "link", link: new URL("/redirect", window.location.origin).href }, "To new URL(\"redirect\")"), h("smoothly-button", { type: "link", link: "redirect/nested" }, "To redirect nested")), h("smoothly-app-room", { path: "/links", label: "Links" }, h("smoothly-input", { type: "text" }, "Default"), h("div", { style: { padding: "1em", maxWidth: "12em" } }, h("smoothly-button", { fill: "solid", color: "danger", link: "https://google.com" }, "open"), h("smoothly-button", { fill: "solid", color: "danger", link: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", type: "download" }, "download"), h("smoothly-button", { fill: "solid", color: "danger", onClick: () => alert("clicked") }, "action"), h("smoothly-button", { disabled: true, fill: "solid", color: "danger", onClick: () => alert("clicked") }, "action"), h("smoothly-button", { type: "link", fill: "clear", color: "danger", onClick: () => alert("clicked") }, "action link"))), h("smoothly-app-room", { path: "/input", label: "Input" }, h("smoothly-input-demo", null)), h("smoothly-app-room", { path: "/button", label: "Button" }, h("smoothly-button-demo", null)), h("smoothly-app-room", { path: "/dialog", label: "Dialog" }, h("smoothly-dialog-demo", null)), h("smoothly-app-room", { path: "/display", label: "Display", icon: "eye-outline" }, h("smoothly-display-demo", null)), h("smoothly-app-room", { path: "/table", label: "Table" }, h("smoothly-table-demo", null)), h("smoothly-app-room", { path: "/select", label: "Select" }, h("smoothly-select-demo", null)), h("smoothly-app-room", { path: "/icon", label: "Icon", content: h("smoothly-icon-demo", null) }), h("smoothly-app-room", { path: "/old", label: "Old", to: "select" }), h("smoothly-app-room", { path: "/redirect", label: "Redirect" }, h("smoothly-button", { type: "link", link: "/input" }, "To input"), h("smoothly-button", { type: "link", link: "../button" }, "To button"), h("smoothly-button", { type: "link", link: new URL("/hidden", window.location.origin).href }, "To hidden"), h("smoothly-button", { type: "link", link: "/redirect" }, "To redirect"), h("smoothly-button", { type: "link", link: "nested" }, "To redirect nested, relative path")), h("smoothly-app-room", { path: "/hidden" }, h("p", null, "hello world!")), h("smoothly-app-room", { path: "/redirect/nested" }, "this is a nested room")));
|
|
9
8
|
}
|
|
10
9
|
static get is() { return "smoothly-app-demo"; }
|
|
11
10
|
static get properties() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/app-demo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/app-demo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAKlD,MAAM,OAAO,eAAe;;;;EAG3B,MAAM;IACL,OAAO,CACN,oBAAc,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,eAAe,EAAC,IAAI,EAAC,OAAO,EAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;MACrF,wBAAkB,IAAI,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,QAAQ;QAC3D,qBAAe,OAAO,EAAE,SAAS,EAAE,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,QAAQ,GAAiB,CAC9D;MACnB,yBAAmB,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,MAAM;QAC3C,sBAAc;QACd;UACC,qBAAe,KAAK,EAAC,2BAA2B,eAAyB;UACzE,qBAAe,KAAK,EAAC,iDAAiD,eAAyB;UAC/F,qBAAe,KAAK,EAAC,gDAAgD,cAAwB;UAC7F,qBAAe,KAAK,EAAC,kDAAkD,gBAA0B;UACjG,qBAAe,KAAK,EAAC,sCAAsC,wBAAkC;UAC7F,qBAAe,KAAK,EAAC,iDAAiD,qBAA+B;UACrG,qBAAe,KAAK,EAAC,+CAA+C,wBAAkC;UACtG,q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4BAA0C,CACtE,CACf,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-app-demo\",\n})\nexport class SmoothlyAppDemo {\n\t@Prop() baseUrl: string\n\tapp?: HTMLSmoothlyAppElement\n\trender() {\n\t\treturn (\n\t\t\t<smoothly-app color=\"dark\" label=\"Smoothly Demo\" home=\"/root\" ref={e => (this.app = e)}>\n\t\t\t\t<smoothly-trigger slot=\"nav-start\" type=\"link\" name=\"logout\">\n\t\t\t\t\t<smoothly-icon toolTip={\"Log out\"} name=\"log-out\" size=\"medium\"></smoothly-icon>\n\t\t\t\t</smoothly-trigger>\n\t\t\t\t<smoothly-app-room path=\"/root\" label=\"root\">\n\t\t\t\t\t<h2>Theme</h2>\n\t\t\t\t\t<smoothly-theme-picker>\n\t\t\t\t\t\t<smoothly-item value=\"assets/style/smoothly.css\">Smoothly</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"https://app.issuefab.com/assets/style/index.css\">Issuefab</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"https://app.proquse.com/assets/style/index.css\">Proquse</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"https://app.weekmeter.com/assets/style/index.css\">Weekmeter</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"https://dash.pax2pay.app/p2pdash.css\">Pax2Pay Dashboard</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"https://ui.pax2pay.app/assets/style/pax2pay.css\">Pax2Pay Portal</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"https://theme.payfunc.com/intergiro/index.css\">Intergiro Monitor</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"https://theme.payfunc.com/light/index.css\">Payfunc Light</smoothly-item>\n\t\t\t\t\t\t<smoothly-item value=\"https://theme.payfunc.com/dark/index.css\">Payfunc Dark</smoothly-item>\n\t\t\t\t\t</smoothly-theme-picker>\n\t\t\t\t\t<smoothly-theme-colors></smoothly-theme-colors>\n\t\t\t\t\t<smoothly-button type=\"link\" link=\"/redirect\">\n\t\t\t\t\t\tTo redirect\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t<smoothly-button type=\"link\" link=\"/redirect\">\n\t\t\t\t\t\tTo /redirect\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t<smoothly-button type=\"link\" link={new URL(\"/redirect\", window.location.origin).href}>\n\t\t\t\t\t\tTo new URL(\"redirect\")\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t<smoothly-button type=\"link\" link=\"redirect/nested\">\n\t\t\t\t\t\tTo redirect nested\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t</smoothly-app-room>\n\t\t\t\t<smoothly-app-room path=\"/links\" label=\"Links\">\n\t\t\t\t\t<smoothly-input type=\"text\">Default</smoothly-input>\n\t\t\t\t\t<div style={{ padding: \"1em\", maxWidth: \"12em\" }}>\n\t\t\t\t\t\t<smoothly-button fill=\"solid\" color=\"danger\" link=\"https://google.com\">\n\t\t\t\t\t\t\topen\n\t\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t\t<smoothly-button\n\t\t\t\t\t\t\tfill=\"solid\"\n\t\t\t\t\t\t\tcolor=\"danger\"\n\t\t\t\t\t\t\tlink=\"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf\"\n\t\t\t\t\t\t\ttype=\"download\">\n\t\t\t\t\t\t\tdownload\n\t\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t\t<smoothly-button fill=\"solid\" color=\"danger\" onClick={() => alert(\"clicked\")}>\n\t\t\t\t\t\t\taction\n\t\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t\t<smoothly-button disabled fill=\"solid\" color=\"danger\" onClick={() => alert(\"clicked\")}>\n\t\t\t\t\t\t\taction\n\t\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t\t<smoothly-button type=\"link\" fill=\"clear\" color=\"danger\" onClick={() => alert(\"clicked\")}>\n\t\t\t\t\t\t\taction link\n\t\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t</div>\n\t\t\t\t</smoothly-app-room>\n\t\t\t\t<smoothly-app-room path=\"/input\" label=\"Input\">\n\t\t\t\t\t<smoothly-input-demo />\n\t\t\t\t</smoothly-app-room>\n\t\t\t\t<smoothly-app-room path=\"/button\" label=\"Button\">\n\t\t\t\t\t<smoothly-button-demo />\n\t\t\t\t</smoothly-app-room>\n\t\t\t\t<smoothly-app-room path=\"/dialog\" label=\"Dialog\">\n\t\t\t\t\t<smoothly-dialog-demo />\n\t\t\t\t</smoothly-app-room>\n\t\t\t\t<smoothly-app-room path=\"/display\" label=\"Display\" icon=\"eye-outline\">\n\t\t\t\t\t<smoothly-display-demo />\n\t\t\t\t</smoothly-app-room>\n\t\t\t\t<smoothly-app-room path=\"/table\" label=\"Table\">\n\t\t\t\t\t<smoothly-table-demo />\n\t\t\t\t</smoothly-app-room>\n\t\t\t\t<smoothly-app-room path=\"/select\" label=\"Select\">\n\t\t\t\t\t<smoothly-select-demo />\n\t\t\t\t</smoothly-app-room>\n\t\t\t\t<smoothly-app-room path=\"/icon\" label=\"Icon\" content={<smoothly-icon-demo />}></smoothly-app-room>\n\t\t\t\t<smoothly-app-room path=\"/old\" label=\"Old\" to=\"select\"></smoothly-app-room>\n\t\t\t\t<smoothly-app-room path=\"/redirect\" label=\"Redirect\">\n\t\t\t\t\t<smoothly-button type=\"link\" link=\"/input\">\n\t\t\t\t\t\tTo input\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t<smoothly-button type=\"link\" link=\"../button\">\n\t\t\t\t\t\tTo button\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t<smoothly-button type=\"link\" link={new URL(\"/hidden\", window.location.origin).href}>\n\t\t\t\t\t\tTo hidden\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t<smoothly-button type=\"link\" link=\"/redirect\">\n\t\t\t\t\t\tTo redirect\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t\t<smoothly-button type=\"link\" link=\"nested\">\n\t\t\t\t\t\tTo redirect nested, relative path\n\t\t\t\t\t</smoothly-button>\n\t\t\t\t</smoothly-app-room>\n\t\t\t\t<smoothly-app-room path=\"/hidden\">\n\t\t\t\t\t<p>hello world!</p>\n\t\t\t\t</smoothly-app-room>\n\t\t\t\t<smoothly-app-room path=\"/redirect/nested\">this is a nested room</smoothly-app-room>\n\t\t\t</smoothly-app>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -12,11 +12,11 @@ export class SmoothlyBurger {
|
|
|
12
12
|
this.visible = false;
|
|
13
13
|
else
|
|
14
14
|
this.visible = true;
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
15
|
+
this.smoothlyNavStatus.emit(!this.visible);
|
|
16
|
+
this.smoothlyVisibleStatus.emit(this.visible);
|
|
17
17
|
}
|
|
18
18
|
openChanged() {
|
|
19
|
-
this.
|
|
19
|
+
this.smoothlyNavStatus.emit(this.open);
|
|
20
20
|
}
|
|
21
21
|
clickHandler(event) {
|
|
22
22
|
if (this.visible)
|
|
@@ -33,8 +33,8 @@ export class SmoothlyBurger {
|
|
|
33
33
|
this.visible = false;
|
|
34
34
|
this.open = false;
|
|
35
35
|
}
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
36
|
+
this.smoothlyVisibleStatus.emit(this.visible);
|
|
37
|
+
this.smoothlyNavStatus.emit(!this.visible);
|
|
38
38
|
}
|
|
39
39
|
this.history = result;
|
|
40
40
|
}
|
|
@@ -117,8 +117,8 @@ export class SmoothlyBurger {
|
|
|
117
117
|
}
|
|
118
118
|
static get events() {
|
|
119
119
|
return [{
|
|
120
|
-
"method": "
|
|
121
|
-
"name": "
|
|
120
|
+
"method": "smoothlyNavStatus",
|
|
121
|
+
"name": "smoothlyNavStatus",
|
|
122
122
|
"bubbles": true,
|
|
123
123
|
"cancelable": true,
|
|
124
124
|
"composed": true,
|
|
@@ -132,8 +132,8 @@ export class SmoothlyBurger {
|
|
|
132
132
|
"references": {}
|
|
133
133
|
}
|
|
134
134
|
}, {
|
|
135
|
-
"method": "
|
|
136
|
-
"name": "
|
|
135
|
+
"method": "smoothlyVisibleStatus",
|
|
136
|
+
"name": "smoothlyVisibleStatus",
|
|
137
137
|
"bubbles": true,
|
|
138
138
|
"cancelable": true,
|
|
139
139
|
"composed": true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/burger/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAO5G,MAAM,OAAO,cAAc;;;gBAGqB,KAAK;sBACd,oBAAoB;;;EAK1D,iBAAiB;IAChB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAA;IACzD,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO;MAC9C,IAAI,CAAC,OAAO,GAAG,KAAK,CAAA;;MAEpB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAA;IACpB,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/burger/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAO5G,MAAM,OAAO,cAAc;;;gBAGqB,KAAK;sBACd,oBAAoB;;;EAK1D,iBAAiB;IAChB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAA;IACzD,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AAG,CACvB,CACD,CACP,CAAA;EACF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Listen, Prop, State, Watch } from \"@stencil/core\"\n\n@Component({\n\ttag: \"smoothly-burger\",\n\tstyleUrl: \"style.css\",\n\tscoped: true,\n})\nexport class SmoothlyBurger {\n\t@Element() element: HTMLSmoothlyBurgerElement\n\t@Prop({ mutable: true, reflect: true }) visible: boolean\n\t@Prop({ mutable: true, reflect: true }) open = false\n\t@Prop({ reflect: true }) mediaQuery = \"(max-width: 900px)\"\n\t@State() history: boolean\n\t@Event() smoothlyNavStatus: EventEmitter<boolean>\n\t@Event() smoothlyVisibleStatus: EventEmitter<boolean>\n\n\tcomponentWillLoad() {\n\t\tthis.history = window.matchMedia(this.mediaQuery).matches\n\t\tif (!window.matchMedia(this.mediaQuery).matches)\n\t\t\tthis.visible = false\n\t\telse\n\t\t\tthis.visible = true\n\t\tthis.smoothlyNavStatus.emit(!this.visible)\n\t\tthis.smoothlyVisibleStatus.emit(this.visible)\n\t}\n\n\t@Watch(\"open\")\n\topenChanged() {\n\t\tthis.smoothlyNavStatus.emit(this.open)\n\t}\n\n\t@Listen(\"click\")\n\tclickHandler(event: MouseEvent) {\n\t\tif (this.visible)\n\t\t\tthis.open = !this.open\n\t}\n\n\t@Listen(\"resize\", { target: \"window\" })\n\tresizeHandler() {\n\t\tconst result = window.matchMedia(this.mediaQuery).matches\n\t\tif (result != this.history) {\n\t\t\tif (result) {\n\t\t\t\tthis.visible = true\n\t\t\t\tthis.open = false\n\t\t\t} else {\n\t\t\t\tthis.visible = false\n\t\t\t\tthis.open = false\n\t\t\t}\n\t\t\tthis.smoothlyVisibleStatus.emit(this.visible)\n\t\t\tthis.smoothlyNavStatus.emit(!this.visible)\n\t\t}\n\t\tthis.history = result\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<span class=\"burger\">\n\t\t\t\t\t<smoothly-icon name=\"menu\" />\n\t\t\t\t</span>\n\t\t\t</Host>\n\t\t)\n\t}\n}\n"]}
|
|
@@ -10,10 +10,9 @@ export class SmoothlyButton {
|
|
|
10
10
|
this.size = undefined;
|
|
11
11
|
this.shape = undefined;
|
|
12
12
|
this.link = undefined;
|
|
13
|
-
this.download = undefined;
|
|
14
13
|
}
|
|
15
14
|
render() {
|
|
16
|
-
return
|
|
15
|
+
return h(Button, { disabled: this.disabled, type: this.type, link: this.link });
|
|
17
16
|
}
|
|
18
17
|
static get is() { return "smoothly-button"; }
|
|
19
18
|
static get encapsulation() { return "scoped"; }
|
|
@@ -112,9 +111,14 @@ export class SmoothlyButton {
|
|
|
112
111
|
"type": "string",
|
|
113
112
|
"mutable": false,
|
|
114
113
|
"complexType": {
|
|
115
|
-
"original": "\"
|
|
116
|
-
"resolved": "\"button\" | \"link\"",
|
|
117
|
-
"references": {
|
|
114
|
+
"original": "Button.Properties[\"type\"]",
|
|
115
|
+
"resolved": "\"button\" | \"download\" | \"link\"",
|
|
116
|
+
"references": {
|
|
117
|
+
"Button": {
|
|
118
|
+
"location": "import",
|
|
119
|
+
"path": "../Button"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
118
122
|
},
|
|
119
123
|
"required": false,
|
|
120
124
|
"optional": false,
|
|
@@ -176,23 +180,6 @@ export class SmoothlyButton {
|
|
|
176
180
|
},
|
|
177
181
|
"attribute": "link",
|
|
178
182
|
"reflect": false
|
|
179
|
-
},
|
|
180
|
-
"download": {
|
|
181
|
-
"type": "boolean",
|
|
182
|
-
"mutable": false,
|
|
183
|
-
"complexType": {
|
|
184
|
-
"original": "boolean",
|
|
185
|
-
"resolved": "boolean | undefined",
|
|
186
|
-
"references": {}
|
|
187
|
-
},
|
|
188
|
-
"required": false,
|
|
189
|
-
"optional": true,
|
|
190
|
-
"docs": {
|
|
191
|
-
"tags": [],
|
|
192
|
-
"text": ""
|
|
193
|
-
},
|
|
194
|
-
"attribute": "download",
|
|
195
|
-
"reflect": false
|
|
196
183
|
}
|
|
197
184
|
};
|
|
198
185
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAOlC,MAAM,OAAO,cAAc;;;;;oBAIU,KAAK;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAOlC,MAAM,OAAO,cAAc;;;;;oBAIU,KAAK;gBACkB,QAAQ;;;;;EAKnE,MAAM;IACL,OAAO,EAAC,MAAM,IAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,CAAA;EAC7E,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACD","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\"\nimport { Color, Fill } from \"../../model\"\nimport { Button } from \"../Button\"\n\n@Component({\n\ttag: \"smoothly-button\",\n\tstyleUrl: \"../button/style.css\",\n\tscoped: true,\n})\nexport class SmoothlyButton {\n\t@Prop({ reflect: true }) color?: Color\n\t@Prop({ reflect: true }) expand?: \"block\" | \"full\"\n\t@Prop({ reflect: true }) fill?: Fill\n\t@Prop({ reflect: true }) disabled = false\n\t@Prop({ reflect: true }) type: Button.Properties[\"type\"] = \"button\"\n\t@Prop({ reflect: true }) size: \"small\" | \"large\" | \"icon\" | \"flexible\"\n\t@Prop({ reflect: true }) shape?: \"rounded\"\n\t@Prop() link?: string\n\n\trender() {\n\t\treturn <Button disabled={this.disabled} type={this.type} link={this.link} />\n\t}\n}\n"]}
|
|
@@ -71,22 +71,22 @@
|
|
|
71
71
|
|
|
72
72
|
:host{
|
|
73
73
|
display: inline-block;
|
|
74
|
-
margin: 1em;
|
|
75
74
|
box-sizing: border-box;
|
|
76
75
|
border-radius: 0.5rem;
|
|
77
76
|
border: solid 1px;
|
|
78
77
|
transition: background 150ms ease-in-out;
|
|
78
|
+
cursor: pointer;
|
|
79
79
|
}
|
|
80
|
-
:host([type=link]){
|
|
80
|
+
:host([type=link]) {
|
|
81
81
|
display: inline;
|
|
82
82
|
border: none;
|
|
83
83
|
}
|
|
84
|
-
:host([disabled]){
|
|
84
|
+
:host([disabled]) {
|
|
85
85
|
opacity: 0.5;
|
|
86
86
|
pointer-events: none;
|
|
87
87
|
}
|
|
88
88
|
a,
|
|
89
|
-
button{
|
|
89
|
+
button {
|
|
90
90
|
font-size: 110%;
|
|
91
91
|
font-weight: 400;
|
|
92
92
|
border: none;
|
|
@@ -100,17 +100,20 @@ button {
|
|
|
100
100
|
height: 100%;
|
|
101
101
|
width: 100%;
|
|
102
102
|
border-radius: 0.5rem;
|
|
103
|
-
min-width: 8em;
|
|
104
103
|
align-items: center;
|
|
105
104
|
}
|
|
106
|
-
:host(:not([size=icon])) > button {
|
|
105
|
+
:host(:not([size=icon]):not([size=flexible])) > button {
|
|
107
106
|
padding: 0.8em;
|
|
107
|
+
min-width: 8em;
|
|
108
|
+
}
|
|
109
|
+
:host(:not([size=icon]):not([size=flexible])):has(smoothly-icon) > button {
|
|
110
|
+
padding: 0.6em;
|
|
108
111
|
}
|
|
109
|
-
:host([size=icon]) > button{
|
|
112
|
+
:host([size=icon]) > button {
|
|
110
113
|
padding: 0.5em;
|
|
111
114
|
}
|
|
112
115
|
:host([shape=rounded]) > button,
|
|
113
|
-
:host([shape=rounded]){
|
|
116
|
+
:host([shape=rounded]) {
|
|
114
117
|
border-radius: 2rem;
|
|
115
118
|
}
|
|
116
119
|
:host([type=button]) > a {
|
|
@@ -118,13 +121,13 @@ button {
|
|
|
118
121
|
text-decoration: inherit;
|
|
119
122
|
width: calc(100% - 0.6em);
|
|
120
123
|
}
|
|
121
|
-
:host([size=small]) > button{
|
|
124
|
+
:host([size=small]) > button {
|
|
122
125
|
font-size: 100%;
|
|
123
126
|
}
|
|
124
|
-
:host([size=large]) > button{
|
|
127
|
+
:host([size=large]) > button {
|
|
125
128
|
font-size: 130%;
|
|
126
129
|
}
|
|
127
|
-
:host(:not([size=icon])){
|
|
130
|
+
:host(:not([size=icon])) {
|
|
128
131
|
min-width: 8em;
|
|
129
132
|
}
|
|
130
133
|
:host([size=flexible]) {
|
|
@@ -150,12 +153,12 @@ button {
|
|
|
150
153
|
border-radius: 0;
|
|
151
154
|
}
|
|
152
155
|
:host([shape=rounded]) > button,
|
|
153
|
-
:host([shape=rounded]){
|
|
156
|
+
:host([shape=rounded]) {
|
|
154
157
|
border-radius: 2rem;
|
|
155
158
|
}
|
|
156
159
|
:host(:not([fill=clear]):hover),
|
|
157
160
|
:host(:not([fill=clear]):focus),
|
|
158
|
-
:host(:not([fill=clear]):active){
|
|
161
|
+
:host(:not([fill=clear]):active) {
|
|
159
162
|
border-color: rgb(var(--smoothly-color-tint)) !important;
|
|
160
163
|
background: rgb(var(--smoothly-color-tint)) !important;
|
|
161
164
|
}
|
|
@@ -164,19 +167,19 @@ button {
|
|
|
164
167
|
:host(:not([fill=clear]):active) > button,
|
|
165
168
|
:host(:not([fill=clear]):hover) ::slotted(smoothly-icon),
|
|
166
169
|
:host(:not([fill=clear]):focus) ::slotted(smoothly-icon),
|
|
167
|
-
:host(:not([fill=clear]):active) ::slotted(smoothly-icon){
|
|
170
|
+
:host(:not([fill=clear]):active) ::slotted(smoothly-icon) {
|
|
168
171
|
color: rgb(var(--smoothly-color-contrast)) !important;
|
|
169
172
|
stroke: rgb(var(--smoothly-color-contrast)) !important;
|
|
170
173
|
fill: rgb(var(--smoothly-color-contrast)) !important;
|
|
171
174
|
}
|
|
172
175
|
:host([fill=clear]:hover) > button,
|
|
173
176
|
:host([fill=clear]:focus) > button,
|
|
174
|
-
:host([fill=clear]:active) > button{
|
|
177
|
+
:host([fill=clear]:active) > button {
|
|
175
178
|
color: rgb(var(--smoothly-color-tint)) !important;
|
|
176
179
|
stroke: rgb(var(--smoothly-color-tint)) !important;
|
|
177
180
|
fill: rgb(var(--smoothly-color-tint)) !important;
|
|
178
181
|
}
|
|
179
|
-
:host([disabled]){
|
|
182
|
+
:host([disabled]) {
|
|
180
183
|
opacity: 0.5;
|
|
181
184
|
pointer-events: none;
|
|
182
185
|
}
|
|
@@ -190,13 +193,13 @@ button {
|
|
|
190
193
|
border-color: rgb(var(--smoothly-color));
|
|
191
194
|
}
|
|
192
195
|
:host([fill=solid]) > button,
|
|
193
|
-
:host([fill=default]) > button{
|
|
196
|
+
:host([fill=default]) > button {
|
|
194
197
|
stroke: rgb(var(--smoothly-color-contrast));
|
|
195
198
|
fill: rgb(var(--smoothly-color-contrast));
|
|
196
199
|
color: rgb(var(--smoothly-color-contrast));
|
|
197
200
|
}
|
|
198
201
|
:host([fill=outline]) > button,
|
|
199
|
-
:host([fill=clear]) > button{
|
|
202
|
+
:host([fill=clear]) > button {
|
|
200
203
|
stroke: rgb(var(--smoothly-color));
|
|
201
204
|
fill: rgb(var(--smoothly-color));
|
|
202
205
|
color: rgb(var(--smoothly-color));
|
|
@@ -210,9 +213,9 @@ button {
|
|
|
210
213
|
border-color: transparent;
|
|
211
214
|
}
|
|
212
215
|
::slotted(smoothly-icon[slot=start]),
|
|
213
|
-
::slotted(smoothly-icon[slot=end]){
|
|
216
|
+
::slotted(smoothly-icon[slot=end]) {
|
|
214
217
|
font-size: 0.65em;
|
|
215
218
|
}
|
|
216
|
-
:host([hidden]){
|
|
219
|
+
:host([hidden]) {
|
|
217
220
|
display: none;
|
|
218
221
|
}
|