@xplortech/apollo-core 1.0.0-beta.18 → 1.0.0-beta.3
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/CHANGELOG.md +106 -0
- package/build/style.css +2758 -1509
- package/dist/apollo-core/apollo-core.css +14 -4597
- package/dist/apollo-core/apollo-core.esm.js +1 -2
- package/dist/apollo-core/index.esm.js +0 -2
- package/dist/apollo-core/p-13e7d3ea.entry.js +1 -0
- package/dist/apollo-core/p-2ce2fe5c.entry.js +1 -0
- package/dist/apollo-core/p-2f90296c.js +10 -0
- package/dist/apollo-core/p-3ff1ff38.entry.js +1 -0
- package/dist/apollo-core/p-63dd9a65.entry.js +1 -0
- package/dist/apollo-core/p-6c3c1e3d.entry.js +1 -0
- package/dist/apollo-core/p-81a6ce4c.entry.js +1 -0
- package/dist/apollo-core/p-918b0731.entry.js +1 -0
- package/dist/apollo-core/p-97bdb450.entry.js +1 -0
- package/dist/apollo-core/p-a43e2d1f.entry.js +1 -0
- package/dist/apollo-core/p-a7cc4114.entry.js +1 -0
- package/dist/apollo-core/p-ad90fe4d.js +1 -2
- package/dist/apollo-core/p-b6d1b135.entry.js +1 -0
- package/dist/apollo-core/p-bc0ebed2.entry.js +1 -0
- package/dist/apollo-core/p-c8af4ed6.entry.js +1 -0
- package/dist/apollo-core/p-d4aa2fa9.js +1 -0
- package/dist/apollo-core/p-d4e5d3aa.entry.js +1 -0
- package/dist/apollo-core/p-dad11011.entry.js +1 -0
- package/dist/apollo-core/p-db74c99c.entry.js +1 -0
- package/dist/cjs/apollo-core.cjs.js +3 -12
- package/dist/cjs/{index-000e170c.js → index-acf3dd7a.js} +216 -765
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/regular-872f5226.js +16043 -0
- package/dist/cjs/v4-14140ff3.js +0 -2
- package/dist/cjs/xpl-application-shell.cjs.entry.js +13 -10
- package/dist/cjs/xpl-avatar_12.cjs.entry.js +322 -0
- package/dist/cjs/xpl-backdrop.cjs.entry.js +5 -3
- package/dist/cjs/xpl-button-row.cjs.entry.js +1 -6
- package/dist/cjs/xpl-choicelist.cjs.entry.js +1 -10
- package/dist/cjs/xpl-divider.cjs.entry.js +1 -4
- package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +4 -16
- package/dist/cjs/xpl-dropdown_2.cjs.entry.js +12 -14
- package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -3
- package/dist/cjs/xpl-grid.cjs.entry.js +1 -3
- package/dist/cjs/xpl-input.cjs.entry.js +25 -22
- package/dist/cjs/xpl-list.cjs.entry.js +25 -4
- package/dist/cjs/xpl-main-nav.cjs.entry.js +4 -3
- package/dist/cjs/xpl-pagination.cjs.entry.js +2 -7
- package/dist/cjs/xpl-select.cjs.entry.js +25 -51
- package/dist/cjs/xpl-toggle.cjs.entry.js +4 -9
- package/dist/collection/collection-manifest.json +3 -6
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +109 -125
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +144 -151
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +28 -27
- package/dist/collection/components/xpl-badge/xpl-badge.js +39 -44
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +5 -3
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +5 -3
- package/dist/collection/components/xpl-button/xpl-button.js +205 -205
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +104 -106
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +171 -182
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +126 -134
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +31 -28
- package/dist/collection/components/xpl-divider/xpl-divider.js +23 -27
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +41 -47
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +22 -27
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +55 -83
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +161 -169
- package/dist/collection/components/xpl-grid/xpl-grid.js +1 -2
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +74 -76
- package/dist/collection/components/xpl-input/xpl-input.js +419 -397
- package/dist/collection/components/xpl-list/xpl-list.js +77 -43
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +54 -48
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +49 -48
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +128 -117
- package/dist/collection/components/xpl-radio/xpl-radio.js +148 -158
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +4 -3
- package/dist/collection/components/xpl-select/xpl-select.js +235 -306
- package/dist/collection/components/xpl-table/xpl-table.js +148 -215
- package/dist/collection/components/xpl-tag/xpl-tag.js +25 -25
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +135 -138
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +52 -79
- package/dist/custom-elements/index.d.ts +219 -0
- package/dist/custom-elements/index.js +20224 -0
- package/dist/esm/apollo-core.js +3 -9
- package/dist/esm/{index-56581b5c.js → index-e3c4bb97.js} +217 -765
- package/dist/esm/index.js +0 -2
- package/dist/esm/loader.js +3 -6
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/regular-86225e9d.js +16041 -0
- package/dist/esm/v4-929670b7.js +0 -2
- package/dist/esm/xpl-application-shell.entry.js +13 -10
- package/dist/esm/xpl-avatar_12.entry.js +307 -0
- package/dist/esm/xpl-backdrop.entry.js +5 -3
- package/dist/esm/xpl-button-row.entry.js +1 -6
- package/dist/esm/xpl-choicelist.entry.js +1 -10
- package/dist/esm/xpl-divider.entry.js +1 -4
- package/dist/esm/xpl-dropdown-group_3.entry.js +4 -16
- package/dist/esm/xpl-dropdown_2.entry.js +12 -14
- package/dist/esm/xpl-grid-item.entry.js +1 -3
- package/dist/esm/xpl-grid.entry.js +1 -3
- package/dist/esm/xpl-input.entry.js +25 -22
- package/dist/esm/xpl-list.entry.js +25 -4
- package/dist/esm/xpl-main-nav.entry.js +4 -3
- package/dist/esm/xpl-pagination.entry.js +2 -7
- package/dist/esm/xpl-select.entry.js +25 -51
- package/dist/esm/xpl-toggle.entry.js +4 -9
- package/dist/stories/application-shell.stories.js +8 -18
- package/dist/stories/avatar.stories.js +0 -1
- package/dist/stories/backdrop.stories.js +0 -1
- package/dist/stories/badge.stories.js +0 -1
- package/dist/stories/breadcrumbs.stories.js +0 -1
- package/dist/stories/button-row.stories.js +0 -1
- package/dist/stories/button.stories.js +0 -1
- package/dist/stories/checkbox.stories.js +0 -1
- package/dist/stories/choicelist.stories.js +0 -1
- package/dist/stories/content-area.stories.js +0 -1
- package/dist/stories/divider.stories.js +0 -1
- package/dist/stories/dropdown.stories.js +65 -74
- package/dist/stories/grid.stories.js +0 -1
- package/dist/stories/input.stories.js +0 -1
- package/dist/stories/list.stories.js +2 -3
- package/dist/stories/main-nav.stories.js +0 -1
- package/dist/stories/pagination.stories.js +0 -1
- package/dist/stories/radio.stories.js +0 -1
- package/dist/stories/secondary-nav.stories.js +0 -1
- package/dist/stories/select.stories.js +32 -109
- package/dist/stories/table.stories.js +7 -24
- package/dist/stories/tabs.stories.js +0 -1
- package/dist/stories/toggle.stories.js +0 -1
- package/dist/stories/utility-bar.stories.js +6 -2
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/application-shell.stories.d.ts +5 -14
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/dropdown.stories.d.ts +1 -17
- package/dist/types/Users/fernandogelin/Projects/apollo-admin/packages/apollo/.stencil/stories/select.stories.d.ts +74 -0
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/table.stories.d.ts +1 -22
- package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +1 -6
- package/dist/types/components/xpl-choicelist/choice.d.ts +5 -5
- package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +1 -2
- package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +10 -9
- package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +0 -1
- package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +1 -7
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +5 -7
- package/dist/types/components/xpl-input/xpl-input.d.ts +2 -0
- package/dist/types/components/xpl-list/listitem.d.ts +19 -15
- package/dist/types/components/xpl-list/xpl-list.d.ts +3 -2
- package/dist/types/components/xpl-select/selectchoice.d.ts +3 -0
- package/dist/types/components/xpl-select/xpl-select.d.ts +1 -21
- package/dist/types/components/xpl-table/xpl-table.d.ts +7 -29
- package/dist/types/components/xpl-utility-bar/xpl-utility-bar.d.ts +1 -5
- package/dist/types/components.d.ts +21 -268
- package/dist/types/stencil-public-runtime.d.ts +23 -97
- package/loader/index.d.ts +1 -9
- package/loader/package.json +0 -1
- package/package.json +28 -21
- package/LICENSE +0 -21
- package/dist/apollo-core/apollo-core.esm.js.map +0 -1
- package/dist/apollo-core/index.esm.js.map +0 -1
- package/dist/apollo-core/p-1fa46bc3.entry.js +0 -2
- package/dist/apollo-core/p-1fa46bc3.entry.js.map +0 -1
- package/dist/apollo-core/p-29f4679d.entry.js +0 -2
- package/dist/apollo-core/p-29f4679d.entry.js.map +0 -1
- package/dist/apollo-core/p-3f3cc34e.entry.js +0 -2
- package/dist/apollo-core/p-3f3cc34e.entry.js.map +0 -1
- package/dist/apollo-core/p-5372bf3e.entry.js +0 -2
- package/dist/apollo-core/p-5372bf3e.entry.js.map +0 -1
- package/dist/apollo-core/p-5ceaec87.entry.js +0 -2
- package/dist/apollo-core/p-5ceaec87.entry.js.map +0 -1
- package/dist/apollo-core/p-60d4d252.entry.js +0 -2
- package/dist/apollo-core/p-60d4d252.entry.js.map +0 -1
- package/dist/apollo-core/p-6797b2b7.entry.js +0 -7
- package/dist/apollo-core/p-6797b2b7.entry.js.map +0 -1
- package/dist/apollo-core/p-6acc4122.entry.js +0 -2
- package/dist/apollo-core/p-6acc4122.entry.js.map +0 -1
- package/dist/apollo-core/p-787bac91.entry.js +0 -2
- package/dist/apollo-core/p-787bac91.entry.js.map +0 -1
- package/dist/apollo-core/p-7a8e818a.entry.js +0 -2
- package/dist/apollo-core/p-7a8e818a.entry.js.map +0 -1
- package/dist/apollo-core/p-807d8de9.entry.js +0 -2
- package/dist/apollo-core/p-807d8de9.entry.js.map +0 -1
- package/dist/apollo-core/p-ad90fe4d.js.map +0 -1
- package/dist/apollo-core/p-bcb81e30.entry.js +0 -2
- package/dist/apollo-core/p-bcb81e30.entry.js.map +0 -1
- package/dist/apollo-core/p-da5a8e74.entry.js +0 -2
- package/dist/apollo-core/p-da5a8e74.entry.js.map +0 -1
- package/dist/apollo-core/p-e0541e23.entry.js +0 -2
- package/dist/apollo-core/p-e0541e23.entry.js.map +0 -1
- package/dist/apollo-core/p-e215fc5f.entry.js +0 -2
- package/dist/apollo-core/p-e215fc5f.entry.js.map +0 -1
- package/dist/apollo-core/p-e8953b60.js +0 -3
- package/dist/apollo-core/p-e8953b60.js.map +0 -1
- package/dist/apollo-core/p-efa8a79d.entry.js +0 -2
- package/dist/apollo-core/p-efa8a79d.entry.js.map +0 -1
- package/dist/cjs/apollo-core.cjs.js.map +0 -1
- package/dist/cjs/index-000e170c.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/v4-14140ff3.js.map +0 -1
- package/dist/cjs/xpl-application-shell.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-avatar_15.cjs.entry.js +0 -2278
- package/dist/cjs/xpl-avatar_15.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-backdrop.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-button-row.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-choicelist.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-divider.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-dropdown_2.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-grid-item.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-grid.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-input.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-list.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-main-nav.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-select.cjs.entry.js.map +0 -1
- package/dist/cjs/xpl-toggle.cjs.entry.js.map +0 -1
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js.map +0 -1
- package/dist/collection/components/xpl-avatar/xpl-avatar.js.map +0 -1
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js.map +0 -1
- package/dist/collection/components/xpl-badge/xpl-badge.js.map +0 -1
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js.map +0 -1
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js.map +0 -1
- package/dist/collection/components/xpl-button/xpl-button.js.map +0 -1
- package/dist/collection/components/xpl-button-row/xpl-button-row.js.map +0 -1
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js.map +0 -1
- package/dist/collection/components/xpl-choicelist/choice.js +0 -2
- package/dist/collection/components/xpl-choicelist/choice.js.map +0 -1
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js.map +0 -1
- package/dist/collection/components/xpl-content-area/xpl-content-area.js.map +0 -1
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +0 -8
- package/dist/collection/components/xpl-dashboard/xpl-dashboard.js.map +0 -1
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +0 -162
- package/dist/collection/components/xpl-data-card/xpl-data-card.js.map +0 -1
- package/dist/collection/components/xpl-divider/xpl-divider.js.map +0 -1
- package/dist/collection/components/xpl-dropdown/dropdownoption.js +0 -2
- package/dist/collection/components/xpl-dropdown/dropdownoption.js.map +0 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js.map +0 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js.map +0 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js.map +0 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js.map +0 -1
- package/dist/collection/components/xpl-grid/xpl-grid.js.map +0 -1
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js.map +0 -1
- package/dist/collection/components/xpl-icon/xpl-icon.css +0 -5
- package/dist/collection/components/xpl-icon/xpl-icon.js +0 -93
- package/dist/collection/components/xpl-icon/xpl-icon.js.map +0 -1
- package/dist/collection/components/xpl-input/xpl-input.js.map +0 -1
- package/dist/collection/components/xpl-list/listitem.js +0 -2
- package/dist/collection/components/xpl-list/listitem.js.map +0 -1
- package/dist/collection/components/xpl-list/xpl-list.js.map +0 -1
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js.map +0 -1
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js.map +0 -1
- package/dist/collection/components/xpl-pagination/xpl-pagination.js.map +0 -1
- package/dist/collection/components/xpl-radio/xpl-radio.js.map +0 -1
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js.map +0 -1
- package/dist/collection/components/xpl-select/xpl-select.js.map +0 -1
- package/dist/collection/components/xpl-table/xpl-table.js.map +0 -1
- package/dist/collection/components/xpl-tag/xpl-tag.js.map +0 -1
- package/dist/collection/components/xpl-toggle/xpl-toggle.js.map +0 -1
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js.map +0 -1
- package/dist/components/index.d.ts +0 -39
- package/dist/components/index.js +0 -82
- package/dist/components/index.js.map +0 -1
- package/dist/components/v4.js +0 -77
- package/dist/components/v4.js.map +0 -1
- package/dist/components/xpl-application-shell.d.ts +0 -11
- package/dist/components/xpl-application-shell.js +0 -80
- package/dist/components/xpl-application-shell.js.map +0 -1
- package/dist/components/xpl-avatar.d.ts +0 -11
- package/dist/components/xpl-avatar.js +0 -8
- package/dist/components/xpl-avatar.js.map +0 -1
- package/dist/components/xpl-avatar2.js +0 -51
- package/dist/components/xpl-avatar2.js.map +0 -1
- package/dist/components/xpl-backdrop.d.ts +0 -11
- package/dist/components/xpl-backdrop.js +0 -8
- package/dist/components/xpl-backdrop.js.map +0 -1
- package/dist/components/xpl-backdrop2.js +0 -35
- package/dist/components/xpl-backdrop2.js.map +0 -1
- package/dist/components/xpl-badge.d.ts +0 -11
- package/dist/components/xpl-badge.js +0 -8
- package/dist/components/xpl-badge.js.map +0 -1
- package/dist/components/xpl-badge2.js +0 -38
- package/dist/components/xpl-badge2.js.map +0 -1
- package/dist/components/xpl-breadcrumb-item.d.ts +0 -11
- package/dist/components/xpl-breadcrumb-item.js +0 -36
- package/dist/components/xpl-breadcrumb-item.js.map +0 -1
- package/dist/components/xpl-breadcrumbs.d.ts +0 -11
- package/dist/components/xpl-breadcrumbs.js +0 -31
- package/dist/components/xpl-breadcrumbs.js.map +0 -1
- package/dist/components/xpl-button-row.d.ts +0 -11
- package/dist/components/xpl-button-row.js +0 -50
- package/dist/components/xpl-button-row.js.map +0 -1
- package/dist/components/xpl-button.d.ts +0 -11
- package/dist/components/xpl-button.js +0 -8
- package/dist/components/xpl-button.js.map +0 -1
- package/dist/components/xpl-button2.js +0 -85
- package/dist/components/xpl-button2.js.map +0 -1
- package/dist/components/xpl-checkbox.d.ts +0 -11
- package/dist/components/xpl-checkbox.js +0 -8
- package/dist/components/xpl-checkbox.js.map +0 -1
- package/dist/components/xpl-checkbox2.js +0 -59
- package/dist/components/xpl-checkbox2.js.map +0 -1
- package/dist/components/xpl-choicelist.d.ts +0 -11
- package/dist/components/xpl-choicelist.js +0 -85
- package/dist/components/xpl-choicelist.js.map +0 -1
- package/dist/components/xpl-content-area.d.ts +0 -11
- package/dist/components/xpl-content-area.js +0 -34
- package/dist/components/xpl-content-area.js.map +0 -1
- package/dist/components/xpl-dashboard.d.ts +0 -11
- package/dist/components/xpl-dashboard.js +0 -31
- package/dist/components/xpl-dashboard.js.map +0 -1
- package/dist/components/xpl-data-card.d.ts +0 -11
- package/dist/components/xpl-data-card.js +0 -80
- package/dist/components/xpl-data-card.js.map +0 -1
- package/dist/components/xpl-divider.d.ts +0 -11
- package/dist/components/xpl-divider.js +0 -36
- package/dist/components/xpl-divider.js.map +0 -1
- package/dist/components/xpl-dropdown-group.d.ts +0 -11
- package/dist/components/xpl-dropdown-group.js +0 -8
- package/dist/components/xpl-dropdown-group.js.map +0 -1
- package/dist/components/xpl-dropdown-group2.js +0 -69
- package/dist/components/xpl-dropdown-group2.js.map +0 -1
- package/dist/components/xpl-dropdown-heading.d.ts +0 -11
- package/dist/components/xpl-dropdown-heading.js +0 -8
- package/dist/components/xpl-dropdown-heading.js.map +0 -1
- package/dist/components/xpl-dropdown-heading2.js +0 -31
- package/dist/components/xpl-dropdown-heading2.js.map +0 -1
- package/dist/components/xpl-dropdown-option.d.ts +0 -11
- package/dist/components/xpl-dropdown-option.js +0 -8
- package/dist/components/xpl-dropdown-option.js.map +0 -1
- package/dist/components/xpl-dropdown-option2.js +0 -89
- package/dist/components/xpl-dropdown-option2.js.map +0 -1
- package/dist/components/xpl-dropdown.d.ts +0 -11
- package/dist/components/xpl-dropdown.js +0 -8
- package/dist/components/xpl-dropdown.js.map +0 -1
- package/dist/components/xpl-dropdown2.js +0 -147
- package/dist/components/xpl-dropdown2.js.map +0 -1
- package/dist/components/xpl-grid-item.d.ts +0 -11
- package/dist/components/xpl-grid-item.js +0 -45
- package/dist/components/xpl-grid-item.js.map +0 -1
- package/dist/components/xpl-grid.d.ts +0 -11
- package/dist/components/xpl-grid.js +0 -50
- package/dist/components/xpl-grid.js.map +0 -1
- package/dist/components/xpl-icon.d.ts +0 -11
- package/dist/components/xpl-icon.js +0 -8
- package/dist/components/xpl-icon.js.map +0 -1
- package/dist/components/xpl-icon2.js +0 -1850
- package/dist/components/xpl-icon2.js.map +0 -1
- package/dist/components/xpl-input.d.ts +0 -11
- package/dist/components/xpl-input.js +0 -2574
- package/dist/components/xpl-input.js.map +0 -1
- package/dist/components/xpl-list.d.ts +0 -11
- package/dist/components/xpl-list.js +0 -73
- package/dist/components/xpl-list.js.map +0 -1
- package/dist/components/xpl-main-nav.d.ts +0 -11
- package/dist/components/xpl-main-nav.js +0 -44
- package/dist/components/xpl-main-nav.js.map +0 -1
- package/dist/components/xpl-nav-item.d.ts +0 -11
- package/dist/components/xpl-nav-item.js +0 -44
- package/dist/components/xpl-nav-item.js.map +0 -1
- package/dist/components/xpl-pagination.d.ts +0 -11
- package/dist/components/xpl-pagination.js +0 -100
- package/dist/components/xpl-pagination.js.map +0 -1
- package/dist/components/xpl-radio.d.ts +0 -11
- package/dist/components/xpl-radio.js +0 -8
- package/dist/components/xpl-radio.js.map +0 -1
- package/dist/components/xpl-radio2.js +0 -57
- package/dist/components/xpl-radio2.js.map +0 -1
- package/dist/components/xpl-secondary-nav.d.ts +0 -11
- package/dist/components/xpl-secondary-nav.js +0 -31
- package/dist/components/xpl-secondary-nav.js.map +0 -1
- package/dist/components/xpl-select.d.ts +0 -11
- package/dist/components/xpl-select.js +0 -712
- package/dist/components/xpl-select.js.map +0 -1
- package/dist/components/xpl-table.d.ts +0 -11
- package/dist/components/xpl-table.js +0 -170
- package/dist/components/xpl-table.js.map +0 -1
- package/dist/components/xpl-tag.d.ts +0 -11
- package/dist/components/xpl-tag.js +0 -8
- package/dist/components/xpl-tag.js.map +0 -1
- package/dist/components/xpl-tag2.js +0 -33
- package/dist/components/xpl-tag2.js.map +0 -1
- package/dist/components/xpl-toggle.d.ts +0 -11
- package/dist/components/xpl-toggle.js +0 -61
- package/dist/components/xpl-toggle.js.map +0 -1
- package/dist/components/xpl-utility-bar.d.ts +0 -11
- package/dist/components/xpl-utility-bar.js +0 -55
- package/dist/components/xpl-utility-bar.js.map +0 -1
- package/dist/esm/apollo-core.js.map +0 -1
- package/dist/esm/index-56581b5c.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/v4-929670b7.js.map +0 -1
- package/dist/esm/xpl-application-shell.entry.js.map +0 -1
- package/dist/esm/xpl-avatar_15.entry.js +0 -2260
- package/dist/esm/xpl-avatar_15.entry.js.map +0 -1
- package/dist/esm/xpl-backdrop.entry.js.map +0 -1
- package/dist/esm/xpl-button-row.entry.js.map +0 -1
- package/dist/esm/xpl-choicelist.entry.js.map +0 -1
- package/dist/esm/xpl-divider.entry.js.map +0 -1
- package/dist/esm/xpl-dropdown-group_3.entry.js.map +0 -1
- package/dist/esm/xpl-dropdown_2.entry.js.map +0 -1
- package/dist/esm/xpl-grid-item.entry.js.map +0 -1
- package/dist/esm/xpl-grid.entry.js.map +0 -1
- package/dist/esm/xpl-input.entry.js.map +0 -1
- package/dist/esm/xpl-list.entry.js.map +0 -1
- package/dist/esm/xpl-main-nav.entry.js.map +0 -1
- package/dist/esm/xpl-pagination.entry.js.map +0 -1
- package/dist/esm/xpl-select.entry.js.map +0 -1
- package/dist/esm/xpl-toggle.entry.js.map +0 -1
- package/dist/stories/application-shell.stories.js.map +0 -1
- package/dist/stories/avatar.stories.js.map +0 -1
- package/dist/stories/backdrop.stories.js.map +0 -1
- package/dist/stories/badge.stories.js.map +0 -1
- package/dist/stories/breadcrumbs.stories.js.map +0 -1
- package/dist/stories/button-row.stories.js.map +0 -1
- package/dist/stories/button.stories.js.map +0 -1
- package/dist/stories/checkbox.stories.js.map +0 -1
- package/dist/stories/choicelist.stories.js.map +0 -1
- package/dist/stories/content-area.stories.js.map +0 -1
- package/dist/stories/dashboard.stories.js +0 -51
- package/dist/stories/dashboard.stories.js.map +0 -1
- package/dist/stories/data-card.stories.js +0 -70
- package/dist/stories/data-card.stories.js.map +0 -1
- package/dist/stories/divider.stories.js.map +0 -1
- package/dist/stories/dropdown.stories.js.map +0 -1
- package/dist/stories/grid.stories.js.map +0 -1
- package/dist/stories/icons.stories.js +0 -69
- package/dist/stories/icons.stories.js.map +0 -1
- package/dist/stories/input.stories.js.map +0 -1
- package/dist/stories/list.stories.js.map +0 -1
- package/dist/stories/main-nav.stories.js.map +0 -1
- package/dist/stories/pagination.stories.js.map +0 -1
- package/dist/stories/radio.stories.js.map +0 -1
- package/dist/stories/secondary-nav.stories.js.map +0 -1
- package/dist/stories/select.stories.js.map +0 -1
- package/dist/stories/table.stories.js.map +0 -1
- package/dist/stories/tabs.stories.js.map +0 -1
- package/dist/stories/toggle.stories.js.map +0 -1
- package/dist/stories/utility-bar.stories.js.map +0 -1
- package/dist/types/Users/roc/Sites/apollo/.stencil/stories/dashboard.stories.d.ts +0 -31
- package/dist/types/Users/roc/Sites/apollo/.stencil/stories/data-card.stories.d.ts +0 -71
- package/dist/types/Users/roc/Sites/apollo/.stencil/stories/icons.stories.d.ts +0 -77
- package/dist/types/Users/roc/Sites/apollo/.stencil/stories/select.stories.d.ts +0 -134
- package/dist/types/components/xpl-dashboard/xpl-dashboard.d.ts +0 -3
- package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +0 -38
- package/dist/types/components/xpl-icon/xpl-icon.d.ts +0 -17
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/backdrop.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/button-row.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/button.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/choicelist.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/content-area.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/divider.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/grid.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/input.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/list.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/main-nav.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/secondary-nav.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/toggle.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects/apollo-admin/packages}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.stories.js","sourceRoot":"","sources":["../../src/stories/dropdown.stories.ts"],"names":[],"mappings":"AAEA,eAAe;EACX,KAAK,EAAE,qBAAqB;CAC/B,CAAC;AAEF,MAAM,aAAa,GAAG;EAClB;IACI,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU;GACpB;EACD;IACI,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU;IACjB,UAAU,EAAE,IAAI;GACnB;EACD;IACI,KAAK,EAAE,6BAA6B;IACpC,KAAK,EAAE,UAAU;IACjB,UAAU,EAAE,IAAI;GACnB;EACD;IACI,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU;GACpB;EACD;IACI,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU;GACpB;EACD;IACI,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU;GACpB;EACD;IACI,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU;GACpB;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACnB,aAAa,EACb,MAAM,EAAE,IAAI,EACZ,IAAI,EACJ,aAAa,EACb,OAAO,GACc,EAAU,EAAE;EACjC,MAAM,UAAU,GAAG;IACf,iBAAiB,EAAE,aAAa;IAChC,IAAI;IACJ,IAAI;IACJ,iBAAiB,EAAE,aAAa;GACnC,CAAC;EAEF,OAAO;;;;;sBAKW,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CAC5B,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,IAAI,KAAK,UAAU,CAAC,IAAI,CAA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K;;KAErB,CAAC;AACN,CAAC,CAAC;AAEF,mBAAmB,CAAC,UAAU,GAAG;EAC7B,MAAM,EAAE,UAAU;EAClB,eAAe,EAAE;IACb,MAAM,EAAE,mBAAmB;GAC9B;CACJ,CAAC;AAEF,mBAAmB,CAAC,IAAI,GAAG;EACvB,KAAK,EAAE,UAAU;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAC9B,SAAS,GACiB,EAAU,EAAE;EACtC,MAAM,OAAO,GAAG;IACZ;MACI,KAAK,EAAE,UAAU;KACpB;IACD;MACI,KAAK,EAAE,UAAU;MACjB,UAAU,EAAE,IAAI;KACnB;IACD;MACI,KAAK,EAAE,6BAA6B;MACpC,UAAU,EAAE,IAAI;KACnB;IACD;MACI,KAAK,EAAE,UAAU;KACpB;IACD;MACI,KAAK,EAAE,UAAU;KACpB;IACD;MACI,KAAK,EAAE,UAAU;KACpB;IACD;MACI,KAAK,EAAE,UAAU;KACpB;GACJ,CAAC;EAEF,OAAO;;;qBAGU,SAAS;;;;gCAIE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;;KAElD,CAAC;AACN,CAAC,CAAC;AAEF,iBAAiB,CAAC,UAAU,GAAG;EAC3B,MAAM,EAAE,UAAU;EAClB,eAAe,EAAE;IACb,MAAM,EAAE,iBAAiB;GAC5B;CACJ,CAAC;AAEF,iBAAiB,CAAC,IAAI,GAAG;EACrB,SAAS,EAAE,UAAU;CACxB,CAAC","sourcesContent":["import { Components } from '../../src/components/components.d';\n\nexport default {\n title: 'Components/Dropdown',\n};\n\nconst simpleOptions = [\n {\n label: 'Choice 1',\n value: 'choice-1',\n },\n {\n label: 'Choice 2',\n value: 'choice-2',\n isSelected: true,\n },\n {\n label: 'Choice 3 (disabled example)',\n value: 'choice-3',\n isDisabled: true,\n },\n {\n label: 'Choice 4',\n value: 'choice-4',\n },\n {\n label: 'Choice 5',\n value: 'choice-5',\n },\n {\n label: 'Choice 6',\n value: 'choice-6',\n },\n {\n label: 'Choice 7',\n value: 'choice-7',\n },\n];\n\nexport const Simple = ({\n closeOnSelect,\n isOpen: open,\n mode,\n selectOnFocus,\n options,\n}: Components.XplDropdown): string => {\n const attributes = {\n 'close-on-select': closeOnSelect,\n mode,\n open,\n 'select-on-focus': selectOnFocus,\n };\n\n return `\n <div style=\"width:75vw\">\n <div style=\"position: relative; min-width: 200px; width: 100%\">\n <xpl-dropdown\n id=\"xpl-dropdown-simple\"\n ${Object.keys(attributes).reduce(\n (acc, curr) => `${acc} ${curr}=\"${attributes[curr]}\"`,\n ''\n )}\n >\n </xpl-dropdown>\n </div>\n </div>\n <script>\n element = document.querySelector(\"#xpl-dropdown-simple\");\n element.options = ${JSON.stringify(options)}\n </script>\n `;\n};\n\nSimple.parameters = {\n layout: 'centered',\n 'web-component': {\n render: Simple,\n },\n};\n\nSimple.argTypes = {\n mode: {\n options: ['single', 'multi'],\n control: {\n type: 'select',\n },\n },\n};\n\nSimple.args = {\n closeOnSelect: true,\n isOpen: true,\n mode: 'single',\n selectOnFocus: false,\n options: simpleOptions,\n};\n\nexport const SimpleWithChildren = ({\n closeOnSelect,\n isOpen: open,\n mode,\n selectOnFocus,\n}: Components.XplDropdown): string => {\n const attributes = {\n 'close-on-select': closeOnSelect,\n mode,\n open,\n 'select-on-focus': selectOnFocus,\n };\n\n return `\n <div style=\"width:75vw\">\n <div style=\"position: relative; min-width: 200px; width: 100%\">\n <xpl-dropdown\n id=\"xpl-dropdown-simple-w-children\"\n ${Object.keys(attributes).reduce(\n (acc, curr) => `${acc} ${curr}=\"${attributes[curr]}\"`,\n ''\n )}\n >\n <xpl-dropdown-option\n selected\n slot=\"options\"\n >\n <label slot=\"option\">\n <input type=\"radio\" name=\"animal\" value=\"dog\"/>\n dog\n </label>\n </xpl-dropdown-option>\n <xpl-dropdown-option\n disabled\n slot=\"options\"\n >\n <label slot=\"option\">\n <input disabled type=\"radio\" name=\"animal\" value=\"cat\"/>\n cat (disabled)\n </label>\n </xpl-dropdown-option>\n <xpl-dropdown-option\n slot=\"options\"\n >\n <label slot=\"option\">\n <input type=\"radio\" name=\"animal\" value=\"fish\"/>\n fish (selected)\n </label>\n </xpl-dropdown-option>\n </xpl-dropdown>\n </div>\n </div>\n `;\n};\n\nSimpleWithChildren.parameters = {\n layout: 'centered',\n 'web-component': {\n render: SimpleWithChildren,\n },\n};\n\nSimpleWithChildren.argTypes = {\n mode: {\n options: ['single', 'multi'],\n control: {\n type: 'select',\n },\n },\n};\n\nSimpleWithChildren.args = {\n closeOnSelect: false,\n isOpen: true,\n mode: 'single',\n selectOnFocus: false,\n};\n\nexport const Groups = ({\n closeOnSelect,\n isOpen: open,\n mode,\n selectOnFocus,\n}: Components.XplDropdown): string => {\n const attributes = {\n 'close-on-select': closeOnSelect,\n mode,\n open,\n 'select-on-focus': selectOnFocus,\n };\n\n const options = [\n {\n label: 'Choice 1',\n },\n {\n label: 'Choice 2',\n isSelected: mode === 'multi' ? true : false,\n },\n {\n groupName: 'Group 1',\n options: [\n {\n label: 'Choice 3',\n isSelected: true,\n },\n {\n label: 'Choice 4',\n isSelected: false,\n },\n {\n label: 'Choice 5',\n isSelected: mode === 'multi' ? true : false,\n },\n ],\n },\n {\n groupName: 'Group 2',\n options: [\n {\n label: 'Choice 6',\n isSelected: mode === 'multi' ? true : false,\n },\n {\n label: 'Choice 7',\n isSelected: mode === 'multi' ? true : false,\n },\n {\n label: 'Choice 8',\n isSelected: false,\n },\n ],\n },\n ];\n\n return `\n <div style=\"width:75vw\">\n <div style=\"position: relative; min-width: 200px; width: 100%\">\n <xpl-dropdown\n id=\"xpl-dropdown-groups\"\n ${Object.keys(attributes).reduce(\n (acc, curr) => `${acc} ${curr}=\"${attributes[curr]}\"`,\n ''\n )}\n >\n </xpl-dropdown>\n </div>\n </div>\n <script>\n element = document.querySelector(\"#xpl-dropdown-groups\");\n element.options = ${JSON.stringify(options)}\n </script>\n `;\n};\n\nGroups.parameters = {\n layout: 'centered',\n 'web-component': {\n render: Groups,\n },\n};\nGroups.argTypes = {\n mode: {\n options: ['single', 'multi'],\n control: {\n type: 'select',\n },\n },\n};\nGroups.args = {\n closeOnSelect: true,\n isOpen: true,\n mode: 'single',\n selectOnFocus: false,\n};\n\nexport const GroupsWithChildren = ({\n closeOnSelect,\n isOpen: open,\n mode,\n selectOnFocus,\n}: Components.XplDropdown): string => {\n const attributes = {\n 'close-on-select': closeOnSelect,\n mode,\n open,\n 'select-on-focus': selectOnFocus,\n };\n\n return `\n <div style=\"width:75vw\">\n <div style=\"position: relative; min-width: 200px; width: 100%\">\n <xpl-dropdown\n id=\"xpl-dropdown-groups\"\n ${Object.keys(attributes).reduce(\n (acc, curr) => `${acc} ${curr}=\"${attributes[curr]}\"`,\n ''\n )}\n >\n <xpl-dropdown-group\n label=\"Group Component Heading A\"\n slot=\"options\"\n >\n <xpl-dropdown-option\n label=\"Choice 1\"\n slot=\"options\"\n ></xpl-dropdown-option>\n <xpl-dropdown-option\n label=\"Choice 2 (disabled)\"\n disabled\n slot=\"options\"\n ></xpl-dropdown-option>\n <xpl-dropdown-heading\n slot=\"options\"\n >\n Sub Heading B\n <svg\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"black\"\n height=\"16\"\n >\n <path\n d=\"M10.7 5.3a.3.3 0 1 0 0 .7.3.3 0 0 0 0-.7Zm2.7-2.5a1 1 0 0 0-1 .1l-.9.8h-.3l-.9-.8a1 1 0 0 0-1.6.8V6.3l-1 .1c-1.4.2-2.6 1-3.4 2V6.5c0-1-.8-1.8-1.8-1.8a.5.5 0 1 0 0 1c.5 0 .8.4.8.9V11c0 1.5.9 2.3 1.9 2.3H9c.2 0 .3-.1.3-.3 0-.4-.3-.7-.6-.7h-.4V12l1.7-1v1.8c0 .3.3.6.7.6H12c.4 0 .7-.3.7-.6V8.3C13.5 7.8 14 7 14 6V3.7a1 1 0 0 0-.6-1Zm-1.7 9.5H11v-2a.7.7 0 0 0-1-.6L8 11c-.3-.5-.6-1-1.1-1.3-.2-.1-.4 0-.5.1l-.1.3c-.1.1-.1.3 0 .4.6.5 1 1.2 1 2H5.2a.8.8 0 0 1-.9-.9c0-2 1.5-3.8 3.6-4.1l1-.2c.5.9 1.4 1.5 2.4 1.5h.4v3.6ZM13 6a1.7 1.7 0 0 1-3.3 0V3.7l1 1H12l1.1-1V6Zm-1.3-.3a.3.3 0 1 0 .6 0 .3.3 0 0 0-.6 0Z\"\n />\n </svg>\n </xpl-dropdown-heading>\n <xpl-dropdown-option\n label=\"Choice 3 (selected)\"\n selected\n slot=\"options\"\n ></xpl-dropdown-option>\n </xpl-dropdown-group>\n </xpl-dropdown>\n </div>\n </div>\n `;\n};\n\nGroupsWithChildren.parameters = {\n layout: 'centered',\n 'web-component': {\n render: GroupsWithChildren,\n },\n};\nGroupsWithChildren.argTypes = {\n mode: {\n options: ['single', 'multi'],\n control: {\n type: 'select',\n },\n },\n};\nGroupsWithChildren.args = {\n closeOnSelect: true,\n isOpen: true,\n mode: 'single',\n selectOnFocus: false,\n};\n\nexport const OptionSubcomponent = ({\n isDisabled: disabled,\n label,\n isSelected: selected,\n}: Components.XplDropdownOption): string => {\n const attributes = { disabled, selected };\n\n return `\n <xpl-dropdown-option\n label=\"${label}\"\n ${Object.keys(attributes).reduce(\n (acc, curr) => `${acc} ${curr}=\"${attributes[curr]}\"`,\n ''\n )}\n ></xpl-dropdown-option>\n `;\n};\n\nOptionSubcomponent.parameters = {\n layout: 'centered',\n 'web-component': {\n render: OptionSubcomponent,\n },\n};\n\nOptionSubcomponent.args = {\n isSelected: false,\n isDisabled: false,\n label: 'Choice 1',\n};\n\nexport const HeadingSubcomponent = ({\n label,\n}: Components.XplDropdownHeading): string => {\n return `\n <xpl-dropdown-heading\n label=\"${label}\"\n ></xpl-dropdown-heading>\n `;\n};\n\nHeadingSubcomponent.parameters = {\n layout: 'centered',\n 'web-component': {\n render: HeadingSubcomponent,\n },\n};\n\nHeadingSubcomponent.args = {\n label: 'Choice 1',\n};\n\nexport const GroupSubComponent = ({\n groupName,\n}: Components.XplDropdownGroup): string => {\n const options = [\n {\n label: 'Choice 1',\n },\n {\n label: 'Choice 2',\n isSelected: true,\n },\n {\n label: 'Choice 3 (disabled example)',\n isDisabled: true,\n },\n {\n label: 'Choice 4',\n },\n {\n label: 'Choice 5',\n },\n {\n label: 'Choice 6',\n },\n {\n label: 'Choice 7',\n },\n ];\n\n return `\n <xpl-dropdown-group\n id=\"xpl-option-group\"\n label=\"${groupName}\"\n ></xpl-dropdown-group>\n <script>\n element = document.querySelector(\"#xpl-option-group\");\n element.options = ${JSON.stringify(options)}\n </script>\n `;\n};\n\nGroupSubComponent.parameters = {\n layout: 'centered',\n 'web-component': {\n render: GroupSubComponent,\n },\n};\n\nGroupSubComponent.args = {\n groupName: 'Choice 1',\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grid.stories.js","sourceRoot":"","sources":["../../src/stories/grid.stories.ts"],"names":[],"mappings":"AAAA,eAAe;EACX,KAAK,EAAE,iBAAiB;EACxB,QAAQ,EAAE;IACN,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EA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,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,GACV;MACG,OAAO;yBACM,OAAO,SAAS,OAAO,SAAS,OAAO,SAAS,OAAO;;;yBAGvD,OAAO,SAAS,OAAO,SAAS,OAAO,SAAS,OAAO;;;yBAGvD,OAAO,SAAS,OAAO,SAAS,OAAO,SAAS,OAAO;;;yBAGvD,OAAO,SAAS,OAAO,SAAS,OAAO,SAAS,OAAO;;;YAGpE,CAAC;IACL,CAAC;GACJ;EACD,IAAI,EAAE;IACF,MAAM;MACF,0DAA0D;MAC1D,sDAAsD;MACtD,cAAc;MACd,2DAA2D;MAC3D,qBAAqB;MACrB,4BAA4B;MAC5B,YAAY;MACZ,8CAA8C;MAC9C,mCAAmC;MACnC,6BAA6B;MAC7B,yBAAyB;MACzB,YAAY;MACZ,UAAU;MACV,mCAAmC;MACnC,mBAAmB;MACnB,uCAAuC;MACvC,yBAAyB;MACzB,eAAe;MACf,mBAAmB;MACnB,UAAU;IACd,CAAC;GACJ;CACJ,CAAC;AAEF,IAAI,CAAC,IAAI,GAAG;EACR,OAAO,EAAE,CAAC;EACV,OAAO,EAAE,CAAC;EACV,OAAO,EAAE,CAAC;EACV,OAAO,EAAE,CAAC;EACV,OAAO,EAAE,CAAC;EACV,OAAO,EAAE,CAAC;EACV,OAAO,EAAE,CAAC;EACV,OAAO,EAAE,CAAC;EACV,OAAO,EAAE,CAAC;EACV,OAAO,EAAE,CAAC;EACV,OAAO,EAAE,CAAC;EACV,OAAO,EAAE,CAAC;EACV,OAAO,EAAE,CAAC;EACV,OAAO,EAAE,CAAC;EACV,OAAO,EAAE,CAAC;EACV,OAAO,EAAE,CAAC;CACb,CAAC","sourcesContent":["export default {\n title: 'Components/Grid',\n argTypes: {\n unit1Lg: { control: { type: 'number' } },\n unit1Md: { control: { type: 'number' } },\n unit1Sm: { control: { type: 'number' } },\n unit1Xs: { control: { type: 'number' } },\n unit2Lg: { control: { type: 'number' } },\n unit2Md: { control: { type: 'number' } },\n unit2Sm: { control: { type: 'number' } },\n unit2Xs: { control: { type: 'number' } },\n unit3Lg: { control: { type: 'number' } },\n unit3Md: { control: { type: 'number' } },\n unit3Sm: { control: { type: 'number' } },\n unit3Xs: { control: { type: 'number' } },\n unit4Lg: { control: { type: 'number' } },\n unit4Md: { control: { type: 'number' } },\n unit4Sm: { control: { type: 'number' } },\n unit4Xs: { control: { type: 'number' } },\n },\n};\n\nexport const Grid = ({\n unit1Lg,\n unit1Md,\n unit1Sm,\n unit1Xs,\n unit2Lg,\n unit2Md,\n unit2Sm,\n unit2Xs,\n unit3Lg,\n unit3Md,\n unit3Sm,\n unit3Xs,\n unit4Lg,\n unit4Md,\n unit4Sm,\n unit4Xs,\n}) => {\n return `<xpl-grid>\n <xpl-grid-item lg=\"${unit1Lg}\" md=\"${unit1Md}\" sm=\"${unit1Sm}\" xs=\"${unit1Xs}\" style=\"border: 1px solid red;\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut scelerisque, diam non vulputate pretium, metus lectus vulputate purus, nec laoreet lectus enim vitae ipsum. Phasellus molestie luctus egestas.\n </xpl-grid-item>\n <xpl-grid-item lg=\"${unit2Lg}\" md=\"${unit2Md}\" sm=\"${unit2Sm}\" xs=\"${unit2Xs}\" style=\"border: 1px solid red;\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut scelerisque, diam non vulputate pretium, metus lectus vulputate purus, nec laoreet lectus enim vitae ipsum. Phasellus molestie luctus egestas.\n </xpl-grid-item>\n <xpl-grid-item lg=\"${unit3Lg}\" md=\"${unit3Md}\" sm=\"${unit3Sm}\" xs=\"${unit3Xs}\" style=\"border: 1px solid red;\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut scelerisque, diam non vulputate pretium, metus lectus vulputate purus, nec laoreet lectus enim vitae ipsum. Phasellus molestie luctus egestas.\n </xpl-grid-item>\n <xpl-grid-item lg=\"${unit4Lg}\" md=\"${unit4Md}\" sm=\"${unit4Sm}\" xs=\"${unit4Xs}\" style=\"border: 1px solid red;\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut scelerisque, diam non vulputate pretium, metus lectus vulputate purus, nec laoreet lectus enim vitae ipsum. Phasellus molestie luctus egestas.\n </xpl-grid-item>\n </xpl-grid>`;\n};\n\nGrid.parameters = {\n layout: 'centered',\n 'web-component': {\n render({\n unit1Lg,\n unit1Md,\n unit1Sm,\n unit1Xs,\n unit2Lg,\n unit2Md,\n unit2Sm,\n unit2Xs,\n unit3Lg,\n unit3Md,\n unit3Sm,\n unit3Xs,\n unit4Lg,\n unit4Md,\n unit4Sm,\n unit4Xs,\n }) {\n return `<xpl-grid>\n <xpl-grid-item lg=\"${unit1Lg}\" md=\"${unit1Md}\" sm=\"${unit1Sm}\" xs=\"${unit1Xs}\">\n Lorem ipsum...\n </xpl-grid-item>\n <xpl-grid-item lg=\"${unit2Lg}\" md=\"${unit2Md}\" sm=\"${unit2Sm}\" xs=\"${unit2Xs}\">\n Lorem ipsum...\n </xpl-grid-item>\n <xpl-grid-item lg=\"${unit3Lg}\" md=\"${unit3Md}\" sm=\"${unit3Sm}\" xs=\"${unit3Xs}\">\n Lorem ipsum...\n </xpl-grid-item>\n <xpl-grid-item lg=\"${unit4Lg}\" md=\"${unit4Md}\" sm=\"${unit4Sm}\" xs=\"${unit4Xs}\">\n Lorem ipsum...\n </xpl-grid-item>\n</xpl-grid>`;\n },\n },\n html: {\n render() {\n // const columns = layout.split(\",\").map(c => +c);\n // return `<div class=\"xpl-grid\" id=\"grid-id\">\n // <style>\n // @media screen and (max-width: ${breakpoint}px) {\n // #grid-id {\n // display: block;\n // }\n // #grid-id [class^=\"xpl-grid__col\"] {\n // margin-bottom: 1.5rem;\n // margin-right: 0;\n // width: 100%;\n // }\n // }\n // </style>${columns.map(c => {\n // return `\n // <div class=\"xpl-grid__col-${c}\">\n // Lorem ipsum...\n // </div>`;\n // }).join(\"\")}\n // </div>`\n },\n },\n};\n\nGrid.args = {\n unit1Lg: 4,\n unit1Md: 3,\n unit1Sm: 3,\n unit1Xs: 6,\n unit2Lg: 2,\n unit2Md: 3,\n unit2Sm: 3,\n unit2Xs: 6,\n unit3Lg: 2,\n unit3Md: 3,\n unit3Sm: 6,\n unit3Xs: 6,\n unit4Lg: 4,\n unit4Md: 3,\n unit4Sm: 6,\n unit4Xs: 6,\n};\n"]}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import data from '@xplortech/apollo-icons/build/data.json';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Components/Icons',
|
|
4
|
-
argTypes: {
|
|
5
|
-
size: {
|
|
6
|
-
type: { name: 'string', required: true },
|
|
7
|
-
},
|
|
8
|
-
color: {
|
|
9
|
-
type: { name: 'string', required: true },
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
export const Icons = ({ size, color }) => {
|
|
14
|
-
const icons = Object.keys(data);
|
|
15
|
-
return `
|
|
16
|
-
<div class="where-icons-go" style="color: ${color};">
|
|
17
|
-
${icons
|
|
18
|
-
.map((icon) => `<xpl-icon icon=${icon} size=${size}></xpl-icon>`)
|
|
19
|
-
.join(' ')}
|
|
20
|
-
</div>
|
|
21
|
-
`;
|
|
22
|
-
};
|
|
23
|
-
export const Icon = ({ size, color, icon, backgroundColor }) => {
|
|
24
|
-
return `
|
|
25
|
-
<div style="color: ${color};">
|
|
26
|
-
<xpl-icon icon=${icon} size=${size} background-color=${backgroundColor}></xpl-icon>
|
|
27
|
-
</div>
|
|
28
|
-
`;
|
|
29
|
-
};
|
|
30
|
-
Icon.argTypes = {
|
|
31
|
-
size: {
|
|
32
|
-
type: { name: 'string', required: true },
|
|
33
|
-
},
|
|
34
|
-
color: {
|
|
35
|
-
type: { name: 'string', required: true },
|
|
36
|
-
},
|
|
37
|
-
icon: {
|
|
38
|
-
options: Object.keys(data),
|
|
39
|
-
control: {
|
|
40
|
-
type: 'select',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
backgroundColor: {
|
|
44
|
-
options: ['orange', 'purple', 'red', 'yellow', 'gray'],
|
|
45
|
-
control: {
|
|
46
|
-
type: 'select',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
Icon.args = {
|
|
51
|
-
size: '400',
|
|
52
|
-
color: '#f44e27',
|
|
53
|
-
icon: 'rocket',
|
|
54
|
-
backgroundColor: 'orange',
|
|
55
|
-
};
|
|
56
|
-
Icon.parameters = {
|
|
57
|
-
layout: 'centered',
|
|
58
|
-
'web-component': {
|
|
59
|
-
render: Icon,
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
Icons.args = {
|
|
63
|
-
size: '30',
|
|
64
|
-
color: '#6923f4',
|
|
65
|
-
};
|
|
66
|
-
Icons.parameters = {
|
|
67
|
-
layout: 'centered',
|
|
68
|
-
};
|
|
69
|
-
//# sourceMappingURL=icons.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icons.stories.js","sourceRoot":"","sources":["../../src/stories/icons.stories.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,yCAAyC,CAAC;AAE3D,eAAe;EACX,KAAK,EAAE,kBAAkB;EACzB,QAAQ,EAAE;IACN,IAAI,EAAE;MACF,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC3C;IACD,KAAK,EAAE;MACH,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC3C;GACJ;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;EACrC,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;EAEhC,OAAO;oDACyC,KAAK;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,CAAC,UAAU,GAAG;EACf,MAAM,EAAE,UAAU;CACrB,CAAC","sourcesContent":["import data from '@xplortech/apollo-icons/build/data.json';\n\nexport default {\n title: 'Components/Icons',\n argTypes: {\n size: {\n type: { name: 'string', required: true },\n },\n color: {\n type: { name: 'string', required: true },\n },\n },\n};\n\nexport const Icons = ({ size, color }) => {\n const icons = Object.keys(data);\n\n return `\n <div class=\"where-icons-go\" style=\"color: ${color};\">\n ${icons\n .map(\n (icon) => `<xpl-icon icon=${icon} size=${size}></xpl-icon>`\n )\n .join(' ')}\n </div>\n `;\n};\n\nexport const Icon = ({ size, color, icon, backgroundColor }) => {\n return `\n <div style=\"color: ${color};\">\n <xpl-icon icon=${icon} size=${size} background-color=${backgroundColor}></xpl-icon>\n </div>\n `;\n};\n\nIcon.argTypes = {\n size: {\n type: { name: 'string', required: true },\n },\n color: {\n type: { name: 'string', required: true },\n },\n icon: {\n options: Object.keys(data),\n control: {\n type: 'select',\n },\n },\n backgroundColor: {\n options: ['orange', 'purple', 'red', 'yellow', 'gray'],\n control: {\n type: 'select',\n },\n },\n};\n\nIcon.args = {\n size: '400',\n color: '#f44e27',\n icon: 'rocket',\n backgroundColor: 'orange',\n};\n\nIcon.parameters = {\n layout: 'centered',\n 'web-component': {\n render: Icon,\n },\n};\n\nIcons.args = {\n size: '30',\n color: '#6923f4',\n};\n\nIcons.parameters = {\n layout: 'centered',\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input.stories.js","sourceRoot":"","sources":["../../src/stories/input.stories.ts"],"names":[],"mappings":"AAAA,eAAe;EACX,KAAK,EAAE,kBAAkB;EACzB,QAAQ,EAAE;IACN,KAAK,EAAE;MACH,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC3C;IACD,WAAW,EAAE;MACT,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;KAC5C;I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,YAAY,EACZ,GAAG,EACH,IAAI,GACP,EAAE,EAAE;EACD,IAAI,KAAK,GAAG,EAAE,CAAC;EACf,IAAI,KAAK;IAAE,KAAK,IAAI,WAAW,KAAK,GAAG,CAAC;EACxC,IAAI,WAAW;IAAE,KAAK,IAAI,iBAAiB,WAAW,GAAG,CAAC;EAC1D,IAAI,QAAQ;IAAE,KAAK,IAAI,WAAW,CAAC;EACnC,IAAI,KAAK;IACL,KAAK,IAAI,SAAS,YAAY,CAAC,CAAC,CAAC,IAAI,GAAG,YAAY,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;EACtE,IAAI,GAAG;IAAE,KAAK,IAAI,SAAS,GAAG,GAAG,CAAC;EAClC,IAAI,IAAI;IAAE,KAAK,IAAI,UAAU,IAAI,GAAG,CAAC;EACrC,OAAO,6BAA6B,KAAK,iCAAiC,CAAC;AAC/E,CAAC,CAAC;AAEF,QAAQ,CAAC,UAAU,GAAG;EAClB,MAAM,EAAE,UAAU;EAClB,eAAe,EAAE;IACb,MAAM,EAAE,QAAQ;GACnB;EACD,IAAI,EAAE;IACF,MAAM;MACF,OAAO,8DAA8D,CAAC;IAC1E,CAAC;GACJ;CACJ,CAAC;AAEF,QAAQ,CAAC,IAAI,GAAG;EACZ,KAAK,EAAE,UAAU;EACjB,WAAW,EAAE,mBAAmB;EAChC,QAAQ,EAAE,KAAK;EACf,KAAK,EAAE,KAAK;EACZ,YAAY,EAAE,EAAE;CACnB,CAAC","sourcesContent":["export default {\n title: 'Components/Input',\n argTypes: {\n label: {\n type: { name: 'string', required: true },\n },\n description: {\n type: { name: 'string', required: false },\n },\n disabled: {\n type: {\n name: 'boolean',\n },\n },\n error: {\n type: {\n name: 'boolean',\n },\n },\n errorMessage: {\n type: { name: 'string', required: false },\n },\n type: {\n options: ['text', 'number'],\n control: {\n type: 'select',\n },\n },\n },\n};\n\nexport const Input = ({\n label,\n description,\n disabled,\n error,\n errorMessage,\n pre,\n post,\n type,\n}) => {\n let attrs = '';\n if (label) attrs += ` label=\"${label}\"`;\n if (description) attrs += ` description=\"${description}\"`;\n if (disabled) attrs += ` disabled`;\n if (error)\n attrs += ` error${errorMessage ? '=\"' + errorMessage + '\"' : ''}`;\n if (pre) attrs += ` pre=\"${pre}\"`;\n if (post) attrs += ` post=\"${post}\"`;\n if (type !== 'text') attrs += ` type=${type}`;\n return `<xpl-input${attrs} name=\"input-name\" placeholder=\"Placeholder\"></xpl-input>`;\n};\n\nInput.parameters = {\n layout: 'centered',\n 'web-component': {\n render: Input,\n },\n html: {\n render({\n label,\n description,\n disabled,\n error,\n errorMessage,\n pre,\n post,\n type,\n }) {\n const output = [];\n\n let className = 'xpl-input';\n if (disabled) className += ' xpl-input--disabled';\n if (error) className += ' xpl-input--error';\n output.push(`<div class=\"${className}\">\n <label for=\"id\">\n ${label}${\n description\n ? `\n <small>${description}</small>`\n : ''\n }\n </label>\n <div class=\"xpl-input-wrapper\">${\n pre\n ? `\n <label class=\"xpl-input-pre\" for=\"id\">${pre}</label>`\n : ''\n }\n ${`<input ${\n disabled ? 'disabled ' : ''\n }id=\"id\" name=\"input-name\" placeholder=\"Placeholder\" type=\"${type}\" />`}${\n post\n ? `\n <label class=\"xpl-input-post\" for=\"id\">${post}</label>`\n : ''\n }\n </div>${\n errorMessage\n ? `\n <label class=\"xpl-input-error\" for=\"id\">\n ${`<svg width=\"10\" height=\"11\" viewBox=\"0 0 10 11\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z\" /></svg>`}\n ${errorMessage}\n </label>`\n : ''\n }\n</div>`);\n\n return output;\n },\n },\n};\n\nInput.args = {\n label: 'Input',\n description: 'A brief description',\n disabled: false,\n error: false,\n errorMessage: '',\n pre: '',\n post: '',\n type: 'text',\n};\n\nexport const Multiline = ({\n label,\n description,\n disabled,\n error,\n errorMessage,\n maxCharacterCount,\n}) => {\n let attrs = ' multiline';\n if (label) attrs += ` label=\"${label}\"`;\n if (description) attrs += ` description=\"${description}\"`;\n if (disabled) attrs += ` disabled`;\n if (error)\n attrs += ` error${errorMessage ? '=\"' + errorMessage + '\"' : ''}`;\n if (maxCharacterCount >= 0)\n attrs += ` max-character-count=\"${maxCharacterCount}\"`;\n return `<xpl-input${attrs} name=\"input-name\" placeholder=\"Placeholder\"></xpl-input>`;\n};\n\nMultiline.parameters = {\n layout: 'centered',\n 'web-component': {\n render: Multiline,\n },\n html: {\n render({\n disabled,\n error,\n errorMessage,\n label,\n description,\n maxCharacterCount,\n }) {\n const output: string[] = [];\n if (maxCharacterCount > 0)\n output.push(`WARNING: For multiline inputs with a max. character count,\nthere is JS interactivity that is provided only by\nthe web component. The code shown below does not\nreflect the additional markup and interactivity.`);\n\n let className = 'xpl-input';\n if (disabled) className += ' xpl-input--disabled';\n if (error) className += ' xpl-input--error';\n output.push(`<div class=\"${className}\">\n <label for=\"id\">\n ${label}${\n description\n ? `\n <small>${description}</small>`\n : ''\n }\n </label>\n <div class=\"xpl-input-wrapper\">\n ${`<textarea ${\n disabled ? 'disabled ' : ''\n }id=\"id\" name=\"input-name\" placeholder=\"Placeholder\"></textarea>`}\n </div>${\n errorMessage\n ? `\n <label class=\"xpl-input-error\" for=\"id\">\n ${`<svg width=\"10\" height=\"11\" viewBox=\"0 0 10 11\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z\" /></svg>`}\n ${errorMessage}\n </label>`\n : ''\n }\n</div>`);\n\n return output;\n },\n },\n};\n\nMultiline.args = {\n label: 'Multiline Input',\n description: 'A brief description',\n disabled: false,\n error: false,\n errorMessage: '',\n maxCharacterCount: 50,\n};\n\nexport const Datepicker = ({\n label,\n dateFormat,\n description,\n disabled,\n error,\n errorMessage,\n min,\n mode,\n max,\n}) => {\n let attrs = ` type=\"date\"`;\n if (label) attrs += ` label=\"${label}\"`;\n if (dateFormat) attrs += ` date-format=\"${dateFormat}\"`;\n if (description) attrs += ` description=\"${description}\"`;\n if (disabled) attrs += ` disabled`;\n if (error)\n attrs += ` error${errorMessage ? '=\"' + errorMessage + '\"' : ''}`;\n if (min) attrs += ` min=\"${min}\"`;\n if (max) attrs += ` max=\"${max}\"`;\n if (mode) attrs += ` mode=\"${mode}\"`;\n\n return `<xpl-input${attrs} name=\"input-name\" placeholder=\"Placeholder\"></xpl-input>`;\n};\n\nDatepicker.argTypes = {\n mode: {\n options: ['single', /* \"multiple\", */ 'range'],\n control: {\n type: 'select',\n },\n },\n};\n\nDatepicker.args = {\n mode: 'single',\n label: 'Datepicker',\n dateFormat: 'm/d/Y',\n description: 'A brief description',\n disabled: false,\n error: false,\n errorMessage: '',\n min: '01/01/2000',\n max: '12/31/2099',\n};\n\nDatepicker.parameters = {\n layout: 'centered',\n 'web-component': {\n render: Datepicker,\n },\n html: {\n render({\n label,\n description,\n disabled,\n error,\n errorMessage,\n min,\n max,\n }) {\n const output = [\n `The full-featured Datepicker Input only supports web component usage. However, a 'lite' version that uses native browser features is inlcuded here:`,\n ];\n\n let className = 'xpl-input';\n if (disabled) className += ' xpl-input--disabled';\n if (error) className += ' xpl-input--error';\n output.push(`<div class=\"${className}\">\n <label for=\"id\">\n ${label}${\n description\n ? `\n <small>${description}</small>`\n : ''\n }\n </label>\n <div class=\"xpl-input-wrapper\">\n ${`<input ${disabled ? 'disabled ' : ''}id=\"id\"${\n min ? ` min=\"${min}\"` : ''\n }${\n max ? ` max=\"${max}\"` : ''\n } name=\"input-name\" placeholder=\"Placeholder\" type=\"date\" />`}\n </div>${\n errorMessage\n ? `\n <label class=\"xpl-input-error\" for=\"id\">\n ${`<svg width=\"10\" height=\"11\" viewBox=\"0 0 10 11\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9.84375 5.25C9.84375 2.59375 7.65625 0.40625 5 0.40625C2.32422 0.40625 0.15625 2.59375 0.15625 5.25C0.15625 7.92578 2.32422 10.0938 5 10.0938C7.65625 10.0938 9.84375 7.92578 9.84375 5.25ZM5 6.22656C5.48828 6.22656 5.89844 6.63672 5.89844 7.125C5.89844 7.63281 5.48828 8.02344 5 8.02344C4.49219 8.02344 4.10156 7.63281 4.10156 7.125C4.10156 6.63672 4.49219 6.22656 5 6.22656ZM4.14062 3.00391C4.12109 2.86719 4.23828 2.75 4.375 2.75H5.60547C5.74219 2.75 5.85938 2.86719 5.83984 3.00391L5.70312 5.66016C5.68359 5.79688 5.58594 5.875 5.46875 5.875H4.51172C4.39453 5.875 4.29688 5.79688 4.27734 5.66016L4.14062 3.00391Z\" /></svg>`}\n ${errorMessage}\n </label>`\n : ''\n }\n</div>`);\n\n return output;\n },\n },\n};\n\nexport const Password = ({\n label,\n description,\n disabled,\n error,\n errorMessage,\n pre,\n post,\n}) => {\n let attrs = '';\n if (label) attrs += ` label=\"${label}\"`;\n if (description) attrs += ` description=\"${description}\"`;\n if (disabled) attrs += ` disabled`;\n if (error)\n attrs += ` error${errorMessage ? '=\"' + errorMessage + '\"' : ''}`;\n if (pre) attrs += ` pre=\"${pre}\"`;\n if (post) attrs += ` post=\"${post}\"`;\n return `<xpl-input type=\"password\"${attrs} name=\"input-name\"></xpl-input>`;\n};\n\nPassword.parameters = {\n layout: 'centered',\n 'web-component': {\n render: Password,\n },\n html: {\n render() {\n return `Sorry, the Password Input only supports web component usage.`;\n },\n },\n};\n\nPassword.args = {\n label: 'Password',\n description: 'Enter a password:',\n disabled: false,\n error: false,\n errorMessage: '',\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.stories.js","sourceRoot":"","sources":["../../src/stories/list.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAElC,eAAe;EACX,KAAK,EAAE,iBAAiB;EACxB,QAAQ,EAAE;IACN,MAAM,EAAE;MACJ,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,CAAC;MACzC,OAAO,EAAE;QACL,IAAI,EAAE,QAAQ;OACjB;KACJ;IACD,OAAO,EAAE;MACL,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC5B;IACD,MAAM,EAAE;MACJ,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC5B;IACD,IAAI,EAAE;MACF,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC5B;IACD,QAAQ,EAAE;MACN,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC5B;IACD,KAAK,EAAE;MAC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AC;AAClD,CAAC,CAAC;AAEF,IAAI,CAAC,UAAU,GAAG;EACd,MAAM,EAAE,UAAU;EAClB,eAAe,EAAE;IACb,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE;MAC9D,OAAO;QACH,oCAAoC;QACpC;gBAEI,MAAM,KAAK,MAAM;UACb,CAAC,CAAC;cACZ,MAAM,KAAK,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,uBAAuB,GAAG;UACrD,CAAC,CAAC,EACV,GACI,OAAO;UACH,CAAC,CAAC;;;;;OAKnB;UACiB,CAAC,CAAC,EACV,GACI,MAAM;UACF,CAAC,CAAC;;;;;;;;;;;OAWnB;UACiB,CAAC,CAAC,EACV,GACI,QAAQ;UACJ,CAAC,CAAC;;;;;;;OAOnB;UACiB,CAAC,CAAC,EACV,GACI,IAAI;UACA,CAAC,CAAC;iCACO;UACT,CAAC,CAAC,EACV;aACH,KAAK,IACE,OAAO;UACH,CAAC,CAAC;gBACV,OAAO,IAAI;UACH,CAAC,CAAC,EACV;;;;;;GAMb;OACU,CAAC;IACN,CAAC;GACJ;EACD,IAAI,EAAE;IACF,MAAM;MACF,+BAA+B;MAC/B,2CAA2C;MAC3C,oEAAoE;MACpE,oDAAoD;IACxD,CAAC;GACJ;CACJ,CAAC;AAEF,IAAI,CAAC,IAAI,GAAG;EACR,MAAM,EAAE,MAAM;EACd,OAAO,EAAE,KAAK;EACd,MAAM,EAAE,KAAK;EACb,IAAI,EAAE,IAAI;EACV,QAAQ,EAAE,KAAK;EACf,KAAK,EAAE,WAAW;EAClB,OAAO,EAAE,EAAE;CACd,CAAC","sourcesContent":["import { v4 as uuid } from 'uuid';\n\nexport default {\n title: 'Components/List',\n argTypes: {\n avatar: {\n options: ['none', 'image', 'placeholder'],\n control: {\n type: 'select',\n },\n },\n avatars: {\n type: { name: 'boolean' },\n },\n badges: {\n type: { name: 'boolean' },\n },\n link: {\n type: { name: 'boolean' },\n },\n metadata: {\n type: { name: 'boolean' },\n },\n title: {\n type: { name: 'string' },\n },\n subtext: {\n type: { name: 'string' },\n },\n },\n};\n\nconst script = ({\n id,\n avatar,\n avatars,\n badges,\n metadata,\n link,\n title,\n subtext,\n}) => `\n (function() {\n const list = document.getElementById(\"${id}\");\n const item = ${JSON.stringify({\n avatar:\n avatar === 'image'\n ? 'https://pbs.twimg.com/profile_images/1388990311637127168/njwE8QEa_reasonably_small.jpg'\n : avatar === 'placeholder'\n ? 'ABC'\n : null,\n avatars: avatars\n ? [\n 'https://pbs.twimg.com/profile_images/1388990311637127168/njwE8QEa_reasonably_small.jpg',\n 'https://pbs.twimg.com/profile_images/1388990311637127168/njwE8QEa_reasonably_small.jpg',\n 'https://pbs.twimg.com/profile_images/1388990311637127168/njwE8QEa_reasonably_small.jpg',\n ]\n : null,\n badges: badges\n ? [\n 'Badge',\n {\n dot: 'true',\n text: 'With Dot',\n },\n {\n variant: 'error',\n text: 'Error',\n },\n ]\n : null,\n href: link ? '#' : null,\n metadata: metadata\n ? [\n 'Metadata',\n {\n icon: 'mail',\n text: 'Metadata w/ Icon',\n },\n ]\n : null,\n title,\n subtext,\n })};\n list.items = [item, item, item];\n })();\n`;\n\nexport const List = (props) => {\n const id = uuid();\n return `<xpl-list id=\"${id}\"></xpl-list>\n <script>${script({ id, ...props })}</script>`;\n};\n\nList.parameters = {\n layout: 'centered',\n 'web-component': {\n render({ avatar, avatars, badges, metadata, link, title, subtext }) {\n return [\n `<xpl-list id=\"list-id\"></xpl-list>`,\n `<script>\nconst item = {${\n avatar !== 'none'\n ? `\n avatar: ${avatar === 'placeholder' ? '\"ABC\"' : '\"https://example.jpg\"'},`\n : ''\n }${\n avatars\n ? `\n avatars: [\n \"https://example.jpg\",\n \"https://example.jpg\",\n \"https://example.jpg\",\n ],`\n : ''\n }${\n badges\n ? `\n badges: [\n \"Badge\",\n {\n dot: true,\n text: \"With Dot\",\n },\n {\n variant: \"error\",\n text: \"Error\",\n },\n ],`\n : ''\n }${\n metadata\n ? `\n metadata: [\n \"Metadata\",\n {\n icon: \"mail\",\n text: \"Metadata w/ Icon\",\n },\n ],`\n : ''\n }${\n link\n ? `\n link: \"https://example.com\",`\n : ''\n },\n title: ${title},${\n subtext\n ? `\n subtext: \"${subtext}\",`\n : ''\n }\n};\ndocument.getElementById(\"list-id\").items = [\n item,\n item,\n item\n];`,\n ];\n },\n },\n html: {\n render() {\n // let className = \"xpl-badge\";\n // if (dot) className += \" xpl-badge--dot\";\n // if (variant !== \"default\") className += \" xpl-badge--\" + variant;\n // return `<div class=\"${className}\">${text}</div>`;\n },\n },\n};\n\nList.args = {\n avatar: 'none',\n avatars: false,\n badges: false,\n link: true,\n metadata: false,\n title: 'List Item',\n subtext: '',\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main-nav.stories.js","sourceRoot":"","sources":["../../src/stories/main-nav.stories.ts"],"names":[],"mappings":"AAAA,eAAe;EACX,KAAK,EAAE,gCAAgC;EACvC,QAAQ,EAAE;IACN,KAAK,EAAE;MACH,OAAO,EAAE,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC;MAChC,OAAO,EAAE;QACL,IAAI,EAAE,QAAQ;OACjB;KACJ;GACJ;CACJ,CAAC;AAMF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EAAE,KAAK,EAAgB,EAAU,EAAE,CAAC;uBACrC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwI3B,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,EAAE,KAAK,EAAgB,EAAU,EAAE,CAAC;yCAChB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiJ7C,CAAC;AAEF,OAAO,CAAC,UAAU,GAAG;EACjB,MAAM,EAAE,UAAU;EAClB,eAAe,EAAE;IACb,MAAM,EAAE,OAAO;GAClB;EACD,IAAI,EAAE;IACF,MAAM,EAAE,WAAW;GACtB;CACJ,CAAC;AAEF,OAAO,CAAC,IAAI,GAAG;EACX,KAAK,EAAE,SAAS;CACnB,CAAC","sourcesContent":["export default {\n title: 'Components/Navigation/Main Nav',\n argTypes: {\n width: {\n options: ['default', 'sm', 'md'],\n control: {\n type: 'select',\n },\n },\n },\n};\n\ninterface MainNavProps {\n width: 'string';\n}\n\nexport const MainNav = ({ width }: MainNavProps): string => `\n<xpl-main-nav width=\"${width}\">\n <svg\n slot=\"logo\"\n width=\"42\"\n height=\"42\"\n viewBox=\"0 0 42 42\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M0 4C0 1.79086 1.79086 0 4 0H38C40.2091 0 42 1.79086 42 4V38C42 40.2091 40.2091 42 38 42H4C1.79086 42 0 40.2091 0 38V4Z\"\n fill=\"white\"\n />\n <g clip-path=\"url(#clip0_1237:41953)\">\n <path\n d=\"M33.6029 8.55469C26.4683 8.88391 19.9116 12.5273 15.9331 18.3875C13.266 17.9266 10.5321 18.5851 8.39844 20.2092V21.7895C14.9107 21.7895 20.1783 26.9913 20.2005 33.4002V33.4221H21.8008C23.4455 31.3151 24.1345 28.6154 23.6456 25.9816C29.5799 22.0748 33.2695 15.6001 33.6029 8.55469ZM22.3564 16.8731C22.3564 15.3367 23.6233 14.0857 25.1792 14.0857C26.735 14.0857 28.0019 15.3367 28.0019 16.8731C28.0019 18.4095 26.735 19.6605 25.1792 19.6605C23.6233 19.6605 22.3564 18.4095 22.3564 16.8731Z\"\n fill=\"#F44E27\"\n />\n <path\n d=\"M12.3762 27.431C10.7314 26.9701 8.9978 27.8919 8.53105 29.538C8.44215 29.8014 8.41992 30.0867 8.41992 30.3721V33.4448H11.5316C11.7983 33.4448 12.0428 33.4229 12.2873 33.357C13.9542 32.94 14.9544 31.2719 14.5321 29.6258C14.2432 28.5503 13.4208 27.7383 12.3762 27.431Z\"\n fill=\"#F44E27\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_1237:41953\">\n <rect\n width=\"25.3165\"\n height=\"25\"\n fill=\"white\"\n transform=\"translate(8.3418 8.5)\"\n />\n </clipPath>\n </defs>\n </svg>\n <p slot=\"brand-name\">Client Name</p>\n <ul slot=\"navigation\">\n <xpl-nav-item>\n <a slot=\"link\" href=\"javascript:;\">\n <svg\n slot=\"icon\"\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M13.8795 7.82083L12.6661 6.82312V4.83311C12.6661 4.7889 12.6486 4.74651 12.6173 4.71525C12.5861 4.684 12.5437 4.66644 12.4995 4.66644H11.8328C11.7892 4.66671 11.7474 4.68404 11.7165 4.71473C11.6855 4.74542 11.6678 4.78702 11.6672 4.83061V6.00186L8.74673 3.60393C8.5369 3.42922 8.27248 3.33356 7.99944 3.33356C7.72639 3.33356 7.46198 3.42922 7.25214 3.60393L2.1194 7.82083C2.08583 7.84893 2.05812 7.88336 2.03786 7.92217C2.01759 7.96097 2.00517 8.00339 2.0013 8.047C1.99744 8.0906 2.00219 8.13454 2.01531 8.17631C2.02842 8.21808 2.04963 8.25685 2.07773 8.29042L2.29107 8.54667C2.3478 8.61441 2.42912 8.65685 2.51713 8.66466C2.60515 8.67248 2.69266 8.64502 2.76045 8.58834L3.33274 8.11833V11.9998C3.33324 12.1765 3.40363 12.3458 3.52855 12.4707C3.65347 12.5956 3.82275 12.666 3.99941 12.6665H6.66609C6.84275 12.666 7.01204 12.5956 7.13696 12.4707C7.26187 12.3458 7.33227 12.1765 7.33277 11.9998V9.83314H8.66611V11.9998C8.6666 12.1765 8.737 12.3458 8.86192 12.4707C8.98683 12.5956 9.15612 12.666 9.33278 12.6665H11.9995C12.1753 12.6661 12.3439 12.5964 12.4687 12.4726C12.5935 12.3487 12.6644 12.1806 12.6661 12.0048V8.11792L13.2397 8.58917C13.3075 8.64586 13.395 8.67331 13.483 8.6655C13.571 8.65768 13.6523 8.61524 13.7091 8.5475L13.9222 8.29146C13.9504 8.2578 13.9717 8.2189 13.9848 8.17699C13.9979 8.13509 14.0026 8.091 13.9986 8.04727C13.9947 8.00354 13.9821 7.96102 13.9616 7.92216C13.9412 7.8833 13.9133 7.84887 13.8795 7.82083V7.82083ZM11.663 11.6665H9.66611V9.4998C9.66562 9.32314 9.59522 9.15386 9.4703 9.02894C9.34539 8.90402 9.1761 8.83363 8.99944 8.83313H6.99943C6.82277 8.83363 6.65349 8.90402 6.52857 9.02894C6.40365 9.15386 6.33325 9.32314 6.33276 9.4998V11.6665H4.33275V7.29708L7.99944 4.28414L11.6661 7.29583L11.663 11.6665Z\"\n />\n </svg>\n <p>Dashboard</p>\n </a>\n </xpl-nav-item>\n <xpl-nav-item>\n <a slot=\"link\" href=\"javascript:;\">\n <svg\n slot=\"icon\"\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M13.4375 4.25H11.1875C10.877 4.25 10.625 4.50172 10.625 4.8125V7.0625C10.625 7.37305 10.877 7.625 11.1875 7.625H13.4375C13.748 7.625 14 7.37305 14 7.0625V4.8125C14 4.50172 13.748 4.25 13.4375 4.25ZM12.875 6.5H11.75V5.375H12.875V6.5ZM13.4375 8.375H11.1875C10.877 8.375 10.625 8.62672 10.625 8.9375V11.1875C10.625 11.498 10.877 11.75 11.1875 11.75H13.4375C13.748 11.75 14 11.498 14 11.1875V8.9375C14 8.62672 13.748 8.375 13.4375 8.375ZM12.875 10.625H11.75V9.5H12.875V10.625ZM4.8125 4.25H2.5625C2.25195 4.25 2 4.50172 2 4.8125V7.0625C2 7.37305 2.25195 7.625 2.5625 7.625H4.8125C5.12305 7.625 5.375 7.37305 5.375 7.0625V4.8125C5.375 4.50172 5.12305 4.25 4.8125 4.25ZM4.25 6.5H3.125V5.375H4.25V6.5ZM4.8125 8.375H2.5625C2.25195 8.375 2 8.62672 2 8.9375V11.1875C2 11.498 2.25195 11.75 2.5625 11.75H4.8125C5.12305 11.75 5.375 11.498 5.375 11.1875V8.9375C5.375 8.62672 5.12305 8.375 4.8125 8.375ZM4.25 10.625H3.125V9.5H4.25V10.625ZM9.125 4.25H6.875C6.56445 4.25 6.3125 4.50172 6.3125 4.8125V7.0625C6.3125 7.37305 6.56445 7.625 6.875 7.625H9.125C9.43555 7.625 9.6875 7.37305 9.6875 7.0625V4.8125C9.6875 4.50172 9.43555 4.25 9.125 4.25ZM8.5625 6.5H7.4375V5.375H8.5625V6.5ZM9.125 8.375H6.875C6.56445 8.375 6.3125 8.62672 6.3125 8.9375V11.1875C6.3125 11.498 6.56445 11.75 6.875 11.75H9.125C9.43555 11.75 9.6875 11.498 9.6875 11.1875V8.9375C9.6875 8.62672 9.43555 8.375 9.125 8.375ZM8.5625 10.625H7.4375V9.5H8.5625V10.625Z\"\n />\n </svg>\n <p>Classes</p>\n </a>\n </xpl-nav-item>\n <xpl-nav-item>\n <a slot=\"link\" href=\"javascript:;\" class=\"active\">\n <svg\n slot=\"icon\"\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 2C5.51335 2 3.5 4.01595 3.5 6.5C3.5 8.16681 4.06229 8.68768 7.04542 13.4709C7.48569 14.1768 8.51481 14.176 8.95457 13.4709C11.9393 8.68518 12.5 8.16648 12.5 6.5C12.5 4.01335 10.4841 2 8 2ZM8 12.875C5.0135 8.08639 4.625 7.7841 4.625 6.5C4.625 4.63604 6.13604 3.125 8 3.125C9.86396 3.125 11.375 4.63604 11.375 6.5C11.375 7.77859 11.0196 8.0334 8 12.875ZM6.125 6.5C6.125 5.46446 6.96446 4.625 8 4.625C9.03554 4.625 9.875 5.46446 9.875 6.5C9.875 7.53554 9.03554 8.375 8 8.375C6.96446 8.375 6.125 7.53554 6.125 6.5Z\"\n />\n </svg>\n\n <p>Locations</p>\n </a>\n </xpl-nav-item>\n <xpl-nav-item>\n <a slot=\"link\" href=\"javascript:;\">\n <svg\n slot=\"icon\"\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M12.125 3.5H11V2.28125C11 2.12656 10.8734 2 10.7188 2H9.78125C9.62656 2 9.5 2.12656 9.5 2.28125V3.5H6.5V2.28125C6.5 2.12656 6.37344 2 6.21875 2H5.28125C5.12656 2 5 2.12656 5 2.28125V3.5H3.875C3.25391 3.5 2.75 4.00391 2.75 4.625V12.875C2.75 13.4961 3.25391 14 3.875 14H12.125C12.7461 14 13.25 13.4961 13.25 12.875V4.625C13.25 4.00391 12.7461 3.5 12.125 3.5ZM11.9844 12.875H4.01562C3.93828 12.875 3.875 12.8117 3.875 12.7344V5.75H12.125V12.7344C12.125 12.8117 12.0617 12.875 11.9844 12.875Z\"\n />\n </svg>\n\n <p>Schedule</p>\n </a>\n </xpl-nav-item>\n <xpl-nav-item>\n <a slot=\"link\" href=\"javascript:;\">\n <svg\n slot=\"icon\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M11.3 10.25H11.825C11.975 10.25 12.125 10.1 12.125 9.95V4.55C12.125 4.4 11.975 4.25 11.825 4.25H11.3C11.15 4.25 11 4.4 11 4.55V9.95C11 10.1 11.15 10.25 11.3 10.25ZM6.8 10.25H7.325C7.475 10.25 7.625 10.1 7.625 9.95V5.3C7.625 5.15 7.475 5 7.325 5H6.8C6.65 5 6.5 5.15 6.5 5.3V9.95C6.5 10.1 6.65 10.25 6.8 10.25ZM9.05 10.25H9.575C9.725 10.25 9.875 10.1 9.875 9.95V6.8C9.875 6.65 9.725 6.5 9.575 6.5H9.05C8.9 6.5 8.75 6.65 8.75 6.8V9.95C8.75 10.1 8.9 10.25 9.05 10.25ZM13.625 11.375H3.125V3.875C3.125 3.66781 2.95719 3.5 2.75 3.5H2.375C2.16781 3.5 2 3.66781 2 3.875V11.75C2 12.1641 2.33586 12.5 2.75 12.5H13.625C13.8322 12.5 14 12.3322 14 12.125V11.75C14 11.5428 13.8322 11.375 13.625 11.375ZM4.55 10.25H5.075C5.225 10.25 5.375 10.1 5.375 9.95V8.3C5.375 8.15 5.225 8 5.075 8H4.55C4.4 8 4.25 8.15 4.25 8.3V9.95C4.25 10.1 4.4 10.25 4.55 10.25Z\"\n />\n </svg>\n <p>Reports</p>\n </a>\n </xpl-nav-item>\n <xpl-nav-item>\n <a slot=\"link\" href=\"javascript:;\">\n <svg\n slot=\"icon\"\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M10.6667 5.33329C10.4825 5.33329 10.3333 5.48246 10.3333 5.66663C10.3333 5.85079 10.4825 5.99996 10.6667 5.99996C10.8508 5.99996 11 5.85079 11 5.66663C11 5.48246 10.8508 5.33329 10.6667 5.33329ZM13.4069 2.75308C13.2789 2.69608 13.1403 2.66662 13.0002 2.66663C12.7577 2.66663 12.5183 2.75475 12.331 2.92329L11.5052 3.66663H11.1617L10.3358 2.92329C10.1921 2.79401 10.014 2.70913 9.82301 2.67892C9.63205 2.64872 9.43642 2.67447 9.25979 2.75308C8.89917 2.91392 8.66667 3.27163 8.66667 3.66663V5.99996C8.66667 6.08829 8.68438 6.17163 8.69271 6.25788L7.71354 6.40621C6.30771 6.61933 5.11729 7.37288 4.33333 8.43788V6.49996C4.33333 5.48892 3.51104 4.66663 2.5 4.66663C2.22396 4.66663 2 4.89058 2 5.16663C2 5.44725 2.23167 5.67433 2.51417 5.66642C2.97958 5.6535 3.33333 6.09517 3.33333 6.56079V10.9854C3.33333 12.5148 4.15417 13.3333 5.16667 13.3333H9C9.18417 13.3333 9.33333 13.1841 9.33333 13C9.33333 12.6318 9.03479 12.3333 8.66667 12.3333H8.33042C8.32812 12.1798 8.31417 12.0285 8.29188 11.8789L10 10.8739V12.6666C10 13.0348 10.2985 13.3333 10.6667 13.3333H12C12.3681 13.3333 12.6667 13.0348 12.6667 12.6666V8.29579C13.4598 7.83329 14 6.98267 14 6.00017V3.66663C14 3.27183 13.7675 2.91392 13.4069 2.75308ZM11.6667 12.3333H11V10.2912C11 10.0527 10.8717 9.831 10.6648 9.71267C10.4583 9.59413 10.2019 9.59558 9.99563 9.71663L7.98833 10.8975C7.73667 10.377 7.35854 9.92079 6.87479 9.58267C6.71813 9.47308 6.49833 9.53663 6.40542 9.70371L6.25042 9.98267C6.16771 10.1316 6.19729 10.3262 6.33521 10.4262C6.94396 10.8673 7.31167 11.5729 7.3275 12.3333H5.16667C4.70708 12.3333 4.33333 11.9595 4.33333 11.5C4.33333 9.43163 5.81771 7.70496 7.86333 7.39517L8.97938 7.226C9.425 8.07788 10.3073 8.66663 11.3333 8.66663C11.4475 8.66663 11.5563 8.64683 11.6667 8.63288V12.3333ZM13 5.99996C13 6.92038 12.2537 7.66663 11.3333 7.66663C10.4129 7.66663 9.66667 6.92038 9.66667 5.99996V3.66663L10.7777 4.66663H11.8888L13 3.66663V5.99996ZM11.6667 5.66663C11.6667 5.85079 11.8158 5.99996 12 5.99996C12.1842 5.99996 12.3333 5.85079 12.3333 5.66663C12.3333 5.48246 12.1842 5.33329 12 5.33329C11.8158 5.33329 11.6667 5.48246 11.6667 5.66663Z\"\n />\n </svg>\n <p>Cats</p>\n </a>\n </xpl-nav-item>\n </ul>\n <ul slot=\"footer\">\n <xpl-nav-item>\n <a slot=\"link\" href=\"javascript:;\">\n <xpl-avatar name=\"Jean-Luc Picard\">JP</xpl-avatar>\n <div>\n <p>Jean-Luc Picard</p>\n <p>jl@picard.space</p>\n </div>\n </a>\n </xpl-nav-item>\n </ul>\n</xpl-main-nav>\n`;\n\nconst HtmlMainNav = ({ width }: MainNavProps): string => `\n<div class=\"xpl-main-nav xpl-main-nav--${width}\">\n <nav aria-label=\"Sidebar\">\n <header aria-label=\"Sidebar Header\">\n <svg\n slot=\"logo\"\n width=\"42\"\n height=\"42\"\n viewBox=\"0 0 42 42\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M0 4C0 1.79086 1.79086 0 4 0H38C40.2091 0 42 1.79086 42 4V38C42 40.2091 40.2091 42 38 42H4C1.79086 42 0 40.2091 0 38V4Z\"\n fill=\"white\"\n />\n <g clip-path=\"url(#clip0_1237:41953)\">\n <path\n d=\"M33.6029 8.55469C26.4683 8.88391 19.9116 12.5273 15.9331 18.3875C13.266 17.9266 10.5321 18.5851 8.39844 20.2092V21.7895C14.9107 21.7895 20.1783 26.9913 20.2005 33.4002V33.4221H21.8008C23.4455 31.3151 24.1345 28.6154 23.6456 25.9816C29.5799 22.0748 33.2695 15.6001 33.6029 8.55469ZM22.3564 16.8731C22.3564 15.3367 23.6233 14.0857 25.1792 14.0857C26.735 14.0857 28.0019 15.3367 28.0019 16.8731C28.0019 18.4095 26.735 19.6605 25.1792 19.6605C23.6233 19.6605 22.3564 18.4095 22.3564 16.8731Z\"\n fill=\"#F44E27\"\n />\n <path\n d=\"M12.3762 27.431C10.7314 26.9701 8.9978 27.8919 8.53105 29.538C8.44215 29.8014 8.41992 30.0867 8.41992 30.3721V33.4448H11.5316C11.7983 33.4448 12.0428 33.4229 12.2873 33.357C13.9542 32.94 14.9544 31.2719 14.5321 29.6258C14.2432 28.5503 13.4208 27.7383 12.3762 27.431Z\"\n fill=\"#F44E27\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_1237:41953\">\n <rect\n width=\"25.3165\"\n height=\"25\"\n fill=\"white\"\n transform=\"translate(8.3418 8.5)\"\n />\n </clipPath>\n </defs>\n </svg>\n <p slot=\"brand-name\">Client Name</p>\n </header>\n <ul>\n <li class=\"xpl-nav-item\">\n <a slot=\"link\" href=\"javascript:;\">\n <svg\n slot=\"icon\"\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M13.8795 7.82083L12.6661 6.82312V4.83311C12.6661 4.7889 12.6486 4.74651 12.6173 4.71525C12.5861 4.684 12.5437 4.66644 12.4995 4.66644H11.8328C11.7892 4.66671 11.7474 4.68404 11.7165 4.71473C11.6855 4.74542 11.6678 4.78702 11.6672 4.83061V6.00186L8.74673 3.60393C8.5369 3.42922 8.27248 3.33356 7.99944 3.33356C7.72639 3.33356 7.46198 3.42922 7.25214 3.60393L2.1194 7.82083C2.08583 7.84893 2.05812 7.88336 2.03786 7.92217C2.01759 7.96097 2.00517 8.00339 2.0013 8.047C1.99744 8.0906 2.00219 8.13454 2.01531 8.17631C2.02842 8.21808 2.04963 8.25685 2.07773 8.29042L2.29107 8.54667C2.3478 8.61441 2.42912 8.65685 2.51713 8.66466C2.60515 8.67248 2.69266 8.64502 2.76045 8.58834L3.33274 8.11833V11.9998C3.33324 12.1765 3.40363 12.3458 3.52855 12.4707C3.65347 12.5956 3.82275 12.666 3.99941 12.6665H6.66609C6.84275 12.666 7.01204 12.5956 7.13696 12.4707C7.26187 12.3458 7.33227 12.1765 7.33277 11.9998V9.83314H8.66611V11.9998C8.6666 12.1765 8.737 12.3458 8.86192 12.4707C8.98683 12.5956 9.15612 12.666 9.33278 12.6665H11.9995C12.1753 12.6661 12.3439 12.5964 12.4687 12.4726C12.5935 12.3487 12.6644 12.1806 12.6661 12.0048V8.11792L13.2397 8.58917C13.3075 8.64586 13.395 8.67331 13.483 8.6655C13.571 8.65768 13.6523 8.61524 13.7091 8.5475L13.9222 8.29146C13.9504 8.2578 13.9717 8.2189 13.9848 8.17699C13.9979 8.13509 14.0026 8.091 13.9986 8.04727C13.9947 8.00354 13.9821 7.96102 13.9616 7.92216C13.9412 7.8833 13.9133 7.84887 13.8795 7.82083V7.82083ZM11.663 11.6665H9.66611V9.4998C9.66562 9.32314 9.59522 9.15386 9.4703 9.02894C9.34539 8.90402 9.1761 8.83363 8.99944 8.83313H6.99943C6.82277 8.83363 6.65349 8.90402 6.52857 9.02894C6.40365 9.15386 6.33325 9.32314 6.33276 9.4998V11.6665H4.33275V7.29708L7.99944 4.28414L11.6661 7.29583L11.663 11.6665Z\"\n />\n </svg>\n <p>Dashboard</p>\n </a>\n </li>\n <li class=\"xpl-nav-item\">\n <a slot=\"link\" href=\"javascript:;\">\n <svg\n slot=\"icon\"\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M13.4375 4.25H11.1875C10.877 4.25 10.625 4.50172 10.625 4.8125V7.0625C10.625 7.37305 10.877 7.625 11.1875 7.625H13.4375C13.748 7.625 14 7.37305 14 7.0625V4.8125C14 4.50172 13.748 4.25 13.4375 4.25ZM12.875 6.5H11.75V5.375H12.875V6.5ZM13.4375 8.375H11.1875C10.877 8.375 10.625 8.62672 10.625 8.9375V11.1875C10.625 11.498 10.877 11.75 11.1875 11.75H13.4375C13.748 11.75 14 11.498 14 11.1875V8.9375C14 8.62672 13.748 8.375 13.4375 8.375ZM12.875 10.625H11.75V9.5H12.875V10.625ZM4.8125 4.25H2.5625C2.25195 4.25 2 4.50172 2 4.8125V7.0625C2 7.37305 2.25195 7.625 2.5625 7.625H4.8125C5.12305 7.625 5.375 7.37305 5.375 7.0625V4.8125C5.375 4.50172 5.12305 4.25 4.8125 4.25ZM4.25 6.5H3.125V5.375H4.25V6.5ZM4.8125 8.375H2.5625C2.25195 8.375 2 8.62672 2 8.9375V11.1875C2 11.498 2.25195 11.75 2.5625 11.75H4.8125C5.12305 11.75 5.375 11.498 5.375 11.1875V8.9375C5.375 8.62672 5.12305 8.375 4.8125 8.375ZM4.25 10.625H3.125V9.5H4.25V10.625ZM9.125 4.25H6.875C6.56445 4.25 6.3125 4.50172 6.3125 4.8125V7.0625C6.3125 7.37305 6.56445 7.625 6.875 7.625H9.125C9.43555 7.625 9.6875 7.37305 9.6875 7.0625V4.8125C9.6875 4.50172 9.43555 4.25 9.125 4.25ZM8.5625 6.5H7.4375V5.375H8.5625V6.5ZM9.125 8.375H6.875C6.56445 8.375 6.3125 8.62672 6.3125 8.9375V11.1875C6.3125 11.498 6.56445 11.75 6.875 11.75H9.125C9.43555 11.75 9.6875 11.498 9.6875 11.1875V8.9375C9.6875 8.62672 9.43555 8.375 9.125 8.375ZM8.5625 10.625H7.4375V9.5H8.5625V10.625Z\"\n />\n </svg>\n\n <p>Classes</p>\n </a>\n </li>\n <li class=\"xpl-nav-item\">\n <a slot=\"link\" href=\"javascript:;\" class=\"active\">\n <svg\n slot=\"icon\"\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 2C5.51335 2 3.5 4.01595 3.5 6.5C3.5 8.16681 4.06229 8.68768 7.04542 13.4709C7.48569 14.1768 8.51481 14.176 8.95457 13.4709C11.9393 8.68518 12.5 8.16648 12.5 6.5C12.5 4.01335 10.4841 2 8 2ZM8 12.875C5.0135 8.08639 4.625 7.7841 4.625 6.5C4.625 4.63604 6.13604 3.125 8 3.125C9.86396 3.125 11.375 4.63604 11.375 6.5C11.375 7.77859 11.0196 8.0334 8 12.875ZM6.125 6.5C6.125 5.46446 6.96446 4.625 8 4.625C9.03554 4.625 9.875 5.46446 9.875 6.5C9.875 7.53554 9.03554 8.375 8 8.375C6.96446 8.375 6.125 7.53554 6.125 6.5Z\"\n />\n </svg>\n\n <p>Locations</p>\n </a>\n </li>\n <li class=\"xpl-nav-item\">\n <a slot=\"link\" href=\"javascript:;\">\n <svg\n slot=\"icon\"\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M12.125 3.5H11V2.28125C11 2.12656 10.8734 2 10.7188 2H9.78125C9.62656 2 9.5 2.12656 9.5 2.28125V3.5H6.5V2.28125C6.5 2.12656 6.37344 2 6.21875 2H5.28125C5.12656 2 5 2.12656 5 2.28125V3.5H3.875C3.25391 3.5 2.75 4.00391 2.75 4.625V12.875C2.75 13.4961 3.25391 14 3.875 14H12.125C12.7461 14 13.25 13.4961 13.25 12.875V4.625C13.25 4.00391 12.7461 3.5 12.125 3.5ZM11.9844 12.875H4.01562C3.93828 12.875 3.875 12.8117 3.875 12.7344V5.75H12.125V12.7344C12.125 12.8117 12.0617 12.875 11.9844 12.875Z\"\n />\n </svg>\n\n <p>Schedule</p>\n </a>\n </li>\n <li class=\"xpl-nav-item\">\n <a slot=\"link\" href=\"javascript:;\">\n <svg\n slot=\"icon\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M11.3 10.25H11.825C11.975 10.25 12.125 10.1 12.125 9.95V4.55C12.125 4.4 11.975 4.25 11.825 4.25H11.3C11.15 4.25 11 4.4 11 4.55V9.95C11 10.1 11.15 10.25 11.3 10.25ZM6.8 10.25H7.325C7.475 10.25 7.625 10.1 7.625 9.95V5.3C7.625 5.15 7.475 5 7.325 5H6.8C6.65 5 6.5 5.15 6.5 5.3V9.95C6.5 10.1 6.65 10.25 6.8 10.25ZM9.05 10.25H9.575C9.725 10.25 9.875 10.1 9.875 9.95V6.8C9.875 6.65 9.725 6.5 9.575 6.5H9.05C8.9 6.5 8.75 6.65 8.75 6.8V9.95C8.75 10.1 8.9 10.25 9.05 10.25ZM13.625 11.375H3.125V3.875C3.125 3.66781 2.95719 3.5 2.75 3.5H2.375C2.16781 3.5 2 3.66781 2 3.875V11.75C2 12.1641 2.33586 12.5 2.75 12.5H13.625C13.8322 12.5 14 12.3322 14 12.125V11.75C14 11.5428 13.8322 11.375 13.625 11.375ZM4.55 10.25H5.075C5.225 10.25 5.375 10.1 5.375 9.95V8.3C5.375 8.15 5.225 8 5.075 8H4.55C4.4 8 4.25 8.15 4.25 8.3V9.95C4.25 10.1 4.4 10.25 4.55 10.25Z\"\n />\n </svg>\n <p>Reports</p>\n </a>\n </li>\n <li class=\"xpl-nav-item\">\n <a slot=\"link\" href=\"javascript:;\">\n <svg\n slot=\"icon\"\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M10.6667 5.33329C10.4825 5.33329 10.3333 5.48246 10.3333 5.66663C10.3333 5.85079 10.4825 5.99996 10.6667 5.99996C10.8508 5.99996 11 5.85079 11 5.66663C11 5.48246 10.8508 5.33329 10.6667 5.33329ZM13.4069 2.75308C13.2789 2.69608 13.1403 2.66662 13.0002 2.66663C12.7577 2.66663 12.5183 2.75475 12.331 2.92329L11.5052 3.66663H11.1617L10.3358 2.92329C10.1921 2.79401 10.014 2.70913 9.82301 2.67892C9.63205 2.64872 9.43642 2.67447 9.25979 2.75308C8.89917 2.91392 8.66667 3.27163 8.66667 3.66663V5.99996C8.66667 6.08829 8.68438 6.17163 8.69271 6.25788L7.71354 6.40621C6.30771 6.61933 5.11729 7.37288 4.33333 8.43788V6.49996C4.33333 5.48892 3.51104 4.66663 2.5 4.66663C2.22396 4.66663 2 4.89058 2 5.16663C2 5.44725 2.23167 5.67433 2.51417 5.66642C2.97958 5.6535 3.33333 6.09517 3.33333 6.56079V10.9854C3.33333 12.5148 4.15417 13.3333 5.16667 13.3333H9C9.18417 13.3333 9.33333 13.1841 9.33333 13C9.33333 12.6318 9.03479 12.3333 8.66667 12.3333H8.33042C8.32812 12.1798 8.31417 12.0285 8.29188 11.8789L10 10.8739V12.6666C10 13.0348 10.2985 13.3333 10.6667 13.3333H12C12.3681 13.3333 12.6667 13.0348 12.6667 12.6666V8.29579C13.4598 7.83329 14 6.98267 14 6.00017V3.66663C14 3.27183 13.7675 2.91392 13.4069 2.75308ZM11.6667 12.3333H11V10.2912C11 10.0527 10.8717 9.831 10.6648 9.71267C10.4583 9.59413 10.2019 9.59558 9.99563 9.71663L7.98833 10.8975C7.73667 10.377 7.35854 9.92079 6.87479 9.58267C6.71813 9.47308 6.49833 9.53663 6.40542 9.70371L6.25042 9.98267C6.16771 10.1316 6.19729 10.3262 6.33521 10.4262C6.94396 10.8673 7.31167 11.5729 7.3275 12.3333H5.16667C4.70708 12.3333 4.33333 11.9595 4.33333 11.5C4.33333 9.43163 5.81771 7.70496 7.86333 7.39517L8.97938 7.226C9.425 8.07788 10.3073 8.66663 11.3333 8.66663C11.4475 8.66663 11.5563 8.64683 11.6667 8.63288V12.3333ZM13 5.99996C13 6.92038 12.2537 7.66663 11.3333 7.66663C10.4129 7.66663 9.66667 6.92038 9.66667 5.99996V3.66663L10.7777 4.66663H11.8888L13 3.66663V5.99996ZM11.6667 5.66663C11.6667 5.85079 11.8158 5.99996 12 5.99996C12.1842 5.99996 12.3333 5.85079 12.3333 5.66663C12.3333 5.48246 12.1842 5.33329 12 5.33329C11.8158 5.33329 11.6667 5.48246 11.6667 5.66663Z\"\n />\n </svg>\n\n <p>Cats</p>\n </a>\n </li>\n </ul>\n </nav>\n <footer aria-label=\"Sidebar Header\">\n <ul>\n <div class=\"xpl-nav-item\">\n <a slot=\"link\" href=\"javascript:;\">\n <xpl-avatar name=\"Jean-Luc Picard\">JP</xpl-avatar>\n <div>\n <p>Jean-Luc Picard</p>\n <p>jlp@enterprise.space</p>\n </div>\n </a>\n </div>\n </ul>\n </footer>\n</div>\n\n`;\n\nMainNav.parameters = {\n layout: 'centered',\n 'web-component': {\n render: MainNav,\n },\n html: {\n render: HtmlMainNav,\n },\n};\n\nMainNav.args = {\n width: 'default',\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.stories.js","sourceRoot":"","sources":["../../src/stories/pagination.stories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmFE","sourcesContent":["/* export default {\n title: \"Components/Pagination\",\n argTypes: {\n currentPage: {\n name: \"Current Page\",\n defaultValue: 1,\n control: {\n type: \"number\",\n min: 1,\n max: 10,\n },\n },\n },\n};\n\nexport const NumberedPaging = ({ currentPage }) => {\n let showing = [];\n switch (currentPage) {\n case 1:\n case 2:\n case 3:\n case 8:\n case 9:\n case 10:\n showing = [1, 2, 3, \"...\", 8, 9, 10];\n break;\n case 4:\n showing = [1, \"...\", 3, 4, 5, \"...\", 10];\n break;\n case 5:\n showing = [1, \"...\", 4, 5, 6, \"...\", 10];\n break;\n case 6:\n showing = [1, \"...\", 5, 6, 7, \"...\", 10];\n break;\n case 7:\n showing = [1, \"...\", 6, 7, 8, \"...\", 10];\n break;\n }\n\n const innerMarkup = showing\n .map((n) => {\n if (n === \"...\")\n return `<span class=\"xpl-pagination-ellipsis\">...</span>`;\n const attrs =\n n === currentPage\n ? ' aria-current=\"page\" class=\"xpl-pagination-current\"'\n : \"\";\n return `<a href=\"#\"${attrs}>${n}</a>`;\n })\n .join(\"\\n\");\n\n return `<div class=\"xpl-pagination\">\n <div>\n <p>\n Showing\n <span>1</span>\n to\n <span>10</span>\n of\n <span>97</span>\n results\n </p>\n </div>\n <div>\n <nav aria-label=\"Pagination\">\n <a href=\"#\" class=\"xpl-pagination-prev\">\n <span>Previous</span>\n <svg viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\" d=\"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z\" clip-rule=\"evenodd\" />\n </svg>\n </a>\n ${innerMarkup}\n <a href=\"#\" class=\"xpl-pagination-next\">\n <span>Next</span>\n <svg viewBox=\"0 0 20 20\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\" d=\"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z\" clip-rule=\"evenodd\" />\n </svg>\n </a>\n </nav>\n </div>\n </div>`;\n};\n*/\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"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AK,IAAI,UAAU,CAAC;MACjC,IAAI,QAAQ;QAAE,KAAK,IAAI,WAAW,CAAC;MACnC,OAAO,2CACH,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACzB,GAAG,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE;mDACS,KAAK;6BAEhD,QAAQ,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EACxC,cAAc,KAAK,GACP,WAAW;QACP,CAAC,CAAC;uCAEV,QAAQ,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,EAC9C,KAAK,WAAW;KACnB;QACe,CAAC,CAAC,EACV;OACL,CAAC;IACA,CAAC;GACJ;CACJ,CAAC;AAEF,KAAK,CAAC,IAAI,GAAG;EACT,KAAK,EAAE,cAAc;EACrB,WAAW,EAAE,EAAE;EACf,OAAO,EAAE,KAAK;EACd,QAAQ,EAAE,KAAK;EACf,MAAM,EAAE,KAAK;CAChB,CAAC","sourcesContent":["export default {\n title: 'Components/Radio',\n argTypes: {\n label: {\n type: { name: 'string', required: true },\n },\n description: {\n type: { name: 'string', required: false },\n },\n checked: {\n control: {\n type: 'boolean',\n },\n },\n disabled: {\n control: {\n type: 'boolean',\n },\n },\n styled: {\n control: {\n type: 'boolean',\n },\n },\n },\n};\n\nexport const Radio = ({ label, description, checked, disabled, styled }) => {\n let attrs = '';\n if (description) attrs += ` description=\"${description}\"`;\n if (checked) attrs += ` checked`;\n if (disabled) attrs += ` disabled`;\n if (styled) attrs += ` styled`;\n return `<xpl-radio${attrs}>${label}</xpl-radio>`;\n};\n\nRadio.parameters = {\n layout: 'centered',\n 'web-component': {\n render: Radio,\n },\n html: {\n render({ label, description, checked, disabled, styled }) {\n let attrs = '';\n if (checked) attrs += ` checked`;\n if (disabled) attrs += ` disabled`;\n return `<div class=\"xpl-checkbox-radio-container${\n styled ? ' styled' : ''\n }${disabled ? ' disabled' : ''}\">\n <input class=\"xpl-radio\" id=\"id\" type=\"radio\"${attrs}></input>\n <label class=\"xpl-label${\n disabled ? ' xpl-label--disabled' : ''\n }\" for=\"id\">${label}${\n description\n ? `\n <small class=\"xpl-description${\n disabled ? ' xpl-description--disabled' : ''\n }\">${description}</small>\n `\n : ''\n }</label>\n</div>`;\n },\n },\n};\n\nRadio.args = {\n label: 'Radio Button',\n description: '',\n checked: false,\n disabled: false,\n styled: false,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"secondary-nav.stories.js","sourceRoot":"","sources":["../../src/stories/secondary-nav.stories.ts"],"names":[],"mappings":"AAAA,eAAe;EACX,KAAK,EAAE,qCAAqC;CAC/C,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BnC,CAAC;AAER,MAAM,gBAAgB,GAAG,GAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BhC,CAAC;AAER,YAAY,CAAC,UAAU,GAAG;EACtB,MAAM,EAAE,YAAY;EACpB,eAAe,EAAE;IACb,MAAM,EAAE,YAAY;GACvB;EACD,IAAI,EAAE;IACF,MAAM,EAAE,gBAAgB;GAC3B;CACJ,CAAC","sourcesContent":["export default {\n title: 'Components/Navigation/Secondary Nav',\n};\n\nexport const SecondaryNav = (): string => `\n<div class=\"secondary-nav-storybook-container\">\n <xpl-secondary-nav>\n <ul>\n <xpl-nav-item>\n <a href=\"javascript:;\">\n Dashboard\n </a>\n </xpl-nav-item>\n <xpl-nav-item>\n <a href=\"javascript:;\">\n Board\n </a>\n </xpl-nav-item>\n <xpl-nav-item>\n <a href=\"javascript:;\">\n Dash\n </a>\n </xpl-nav-item>\n <xpl-nav-item>\n <a href=\"javascript:;\">\n Dboard\n </a>\n </xpl-nav-item>\n <xpl-nav-item>\n <a href=\"javascript:;\">\n Dashboard Board\n </a>\n </xpl-nav-item>\n </ul>\n </xpl-secondary-nav>\n</div>`;\n\nconst HtmlSecondaryNav = (): string => `\n<div class=\"xpl-secondary-nav\">\n <nav aria-label=\"Secondary Nav\">\n <ul>\n <li class=\"xpl-nav-item\">\n <a href=\"javascript:;\">\n Dashboard\n </a>\n </li>\n <li class=\"xpl-nav-item\">\n <a href=\"javascript:;\">\n Board\n </a>\n </li>\n <li class=\"xpl-nav-item\">\n <a href=\"javascript:;\">\n Dash\n </a>\n </li>\n <li class=\"xpl-nav-item\">\n <a href=\"javascript:;\">\n Dboard\n </a>\n </li>\n <li class=\"xpl-nav-item\">\n <a href=\"javascript:;\">\n Dashboard Board\n </a>\n </li>\n </ul>\n </nav>\n</div>`;\n\nSecondaryNav.parameters = {\n layout: 'fullscreen',\n 'web-component': {\n render: SecondaryNav,\n },\n html: {\n render: HtmlSecondaryNav,\n },\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.stories.js","sourceRoot":"","sources":["../../src/stories/select.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAElC,eAAe;EACX,KAAK,EAAE,mBAAmB;EAC1B,QAAQ,EAAE;IACN,KAAK,EAAE;MACH,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC3C;IACD,WAAW,EAAE;MACT,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;KAC5C;IACD,QAAQ,EAAE;MACN,IAAI,EAAE;QACF,IAAI,EAAE,SAAS;OAClB;KACJ;IACD,KAAK,EAAE;MACH,IAAI,EAAE;QACF,IAAI,EAAE,SAAS;OAClB;KACJ;IACD,YAAY,EAAE;MACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;KAC5C;IACD,IAAI,EAAE;MACF,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO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,EAAE,IAAI;CACjB,CAAC","sourcesContent":["import { v4 as uuid } from 'uuid';\n\nexport default {\n title: 'Components/Select',\n argTypes: {\n label: {\n type: { name: 'string', required: true },\n },\n description: {\n type: { name: 'string', required: false },\n },\n disabled: {\n type: {\n name: 'boolean',\n },\n },\n error: {\n type: {\n name: 'boolean',\n },\n },\n errorMessage: {\n type: { name: 'string', required: false },\n },\n mode: {\n options: ['single', 'multi'],\n control: {\n type: 'select',\n },\n },\n truncate: {\n type: {\n name: 'boolean',\n },\n },\n },\n};\n\nconst script = (choices, { id }) => `\n (function() {\n const select = document.getElementById(\"${id}\");\n select.choices = ${JSON.stringify(choices)};\n })();\n`;\n\nexport const Select = ({\n label,\n description,\n disabled,\n error,\n errorMessage,\n mode,\n truncate,\n}) => {\n const choices = [\n {\n groupName: 'Group 1',\n options: [\n {\n label: 'Choice 1',\n },\n {\n label: 'Choice 2',\n },\n {\n label: 'Choice 3',\n },\n ],\n },\n {\n groupName: 'Group 2',\n options: [\n {\n label: 'Choice 4',\n },\n {\n label: 'Choice 5',\n },\n {\n label: 'Choice 6',\n },\n ],\n },\n ];\n const id = uuid();\n let attrs = ` id=${id}`;\n if (label) attrs += ` label=\"${label}\"`;\n if (description) attrs += ` description=\"${description}\"`;\n if (mode !== 'single') attrs += ` mode=\"${mode}\"`;\n if (disabled) attrs += ` disabled`;\n if (error)\n attrs += ` error${errorMessage ? '=\"' + errorMessage + '\"' : ''}`;\n if (mode === 'multi' && !truncate) attrs += ` truncate=\"false\"`;\n return `\n <div style=\"width:75vw\">\n <div style=\"position: relative; min-width: 200px; width: 100%\">\n <xpl-select${attrs} placeholder=\"Choose ${\n mode === 'multi' ? 'Multiple' : 'One'\n }\">\n </xpl-select>\n <div>\n <div>\n <script>${script(choices, { id })}</script>`;\n};\n\nSelect.parameters = {\n layout: 'centered',\n 'web-component': {\n render: Select,\n },\n html: {\n render() {\n // let className = \"xpl-badge\";\n // if (dot) className += \" xpl-badge--dot\";\n // if (variant !== \"default\") className += \" xpl-badge--\" + variant;\n // return `<div class=\"${className}\">${text}</div>`;\n },\n },\n};\n\nSelect.args = {\n label: 'Select',\n description: 'Lorem ipsum dolor sit amet',\n disabled: false,\n error: false,\n errorMessage: '',\n mode: 'single',\n truncate: true,\n};\n\nexport const SelectWValues = ({\n label,\n description,\n disabled,\n error,\n errorMessage,\n mode,\n truncate,\n}) => {\n const choices = [\n {\n label: 'Choice 1',\n value: 'choice-1',\n },\n {\n label: 'Choice 2',\n value: 'choice-2',\n },\n {\n label: 'Choice 3',\n value: 'choice-3',\n },\n\n {\n label: 'Choice 4',\n value: 'choice-4',\n },\n {\n label: 'Choice 5',\n value: 'choice-5',\n },\n {\n label: 'Choice 6',\n value: 'choice-6',\n },\n ];\n const id = uuid();\n let attrs = ` id=${id}`;\n if (label) attrs += ` label=\"${label}\"`;\n if (description) attrs += ` description=\"${description}\"`;\n if (mode !== 'single') attrs += ` mode=\"${mode}\"`;\n if (disabled) attrs += ` disabled`;\n if (error)\n attrs += ` error${errorMessage ? '=\"' + errorMessage + '\"' : ''}`;\n if (mode === 'multi' && !truncate) attrs += ` truncate=\"false\"`;\n return `\n <div style=\"width:75vw\">\n <div style=\"position: relative; min-width: 200px; width: 100%\">\n <xpl-select${attrs} placeholder=\"Choose ${\n mode === 'multi' ? 'Multiple' : 'One'\n }\">\n </xpl-select>\n <div>\n <div>\n <script>${script(choices, { id })}</script>`;\n};\n\nSelectWValues.parameters = {\n layout: 'centered',\n 'web-component': {\n render: Select,\n },\n html: {\n render() {\n // let className = \"xpl-badge\";\n // if (dot) className += \" xpl-badge--dot\";\n // if (variant !== \"default\") className += \" xpl-badge--\" + variant;\n // return `<div class=\"${className}\">${text}</div>`;\n },\n },\n actions: {\n handles: ['selectChange'],\n },\n};\n\nSelectWValues.args = {\n label: 'Select',\n description: 'Lorem ipsum dolor sit amet',\n disabled: false,\n error: false,\n errorMessage: '',\n mode: 'single',\n truncate: true,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
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QACH;;;;mBAIG;OACN,CAAC;IACN,CAAC;GACJ;EACD,IAAI,EAAE;IACF,MAAM,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE;MACtB,IAAI,SAAS,GAAG,WAAW,CAAC;MAC5B,IAAI,OAAO;QAAE,SAAS,IAAI,qBAAqB,CAAC;MAChD,IAAI,MAAM;QAAE,SAAS,IAAI,oBAAoB,CAAC;MAC9C,OAAO;QACH,iNAAiN;QACjN;oCACoB,SAAS;;;;;;;;;;;;;;;;;;;uBAmBtB;OACV,CAAC;IACN,CAAC;GACJ;CACJ,CAAC;AAEF,KAAK,CAAC,IAAI,GAAG;EACT,MAAM,EAAE,IAAI;EACZ,WAAW,EAAE,KAAK;EAClB,OAAO,EAAE,KAAK;EACd,OAAO,EAAE,cAAc;EACvB,IAAI,EAAE,WAAW;EACjB,cAAc,EAAE,qBAAqB;CACxC,CAAC","sourcesContent":["import { v4 as uuid } from 'uuid';\n\nexport default {\n title: 'Components/Table',\n argTypes: {\n freeze: { control: { type: 'boolean' } },\n multiselect: { control: { type: 'boolean' } },\n striped: { control: { type: 'boolean' } },\n columns: { control: { type: 'array' } },\n data: { control: { type: 'array' } },\n },\n parameters: {\n actions: {\n handles: ['tableSelect'],\n },\n },\n};\n\nconst columnsDefault = [\n 'Name',\n 'Total Days Played',\n 'Average Days Played',\n 'Seasons',\n 'Individual Immunity Wins',\n 'Votes Against',\n];\n\nconst dataDefault = [\n ['Boston Rob Mariano', '152', '30.4', 'S4, S8, S20, S22, S40', '9', '24'],\n ['Parvati Shallow', '149', '37.25', 'S13, S16, S20', '4', '17'],\n ['Ozzy Lusth', '128', '32.0', 'S13, S16, S23, S34', '7', '34'],\n ['Cirie Fields', '121', '30.25', 'S12, S16, S20, S34', '2', '9'],\n ['Tyson Apostol', '116.5', '29.1', 'S18, S20, S27, S40', '4', '22'],\n];\n\nconst selectedValuesDefault = [\n 'boston-rob-mariano',\n 'parvati-shallow',\n 'ozzy-lusth',\n 'cirie-fields',\n 'tyson-apostol',\n];\n\nconst script = ({ columns, data, id, selectedValues }) => `\n (function() {\n const table = document.getElementById(\"${id}\");\n table.columns = ${JSON.stringify(columns)};\n table.data = ${JSON.stringify(data)};\n table.selectedValues = ${JSON.stringify(selectedValues)};\n })();\n`;\n\nexport const Table = ({\n columns,\n data,\n freeze,\n multiselect,\n selectedValues,\n striped,\n}) => {\n const id = uuid();\n let attrs = '';\n if (freeze) attrs += ' freeze';\n if (multiselect) attrs += ' multiselect';\n if (striped) attrs += ' striped';\n return `<div style=\"max-width: 600px;\"><xpl-table id=\"${id}\"${attrs}></xpl-table></div><script>${script(\n { id, columns, data, selectedValues }\n )}</script>`;\n};\n\nTable.parameters = {\n layout: 'centered',\n 'web-component': {\n render({ freeze, multiselect, striped }) {\n let attrs = '';\n if (freeze) attrs += ' freeze';\n if (multiselect) attrs += ' multiselect';\n if (striped) attrs += ' striped';\n return [\n `<xpl-table${attrs}></xpl-table>`,\n `table.columns = [\n \"Name\", \"Total Days Played\", ...\n ];`,\n `table.data = [\n [\"Boston Rob Mariano\", ...],\n [\"Parvati Shallow\", ...],\n ...\n ];`,\n ];\n },\n },\n html: {\n render({ freeze, striped }) {\n let className = 'xpl-table';\n if (striped) className += ' xpl-table--striped';\n if (freeze) className += ' xpl-table--freeze';\n return [\n `WARNING: For \\`multiselect\\` tables, there is JS interactivity that is provided only by the web component. The code shown below does not reflect the additional \\`multiselect\\` table markup and interactivity.`,\n `<div class=\"xpl-table-container\">\n <table class=\"${className}\">\n <thead>\n <th>Name</th>\n <th>Total Days Played</th>\n ...\n </thead>\n <tbody>\n <tr>\n <td>Boston Rob Mariano</td>\n <td>152</td>\n ...\n </tr>\n <tr>\n <td>Parvati Shallow</td>\n <td>149</td>\n ...\n </tr>\n </tbody>\n </table>\n </div>`,\n ];\n },\n },\n};\n\nTable.args = {\n freeze: true,\n multiselect: false,\n striped: false,\n columns: columnsDefault,\n data: dataDefault,\n selectedValues: selectedValuesDefault,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.stories.js","sourceRoot":"","sources":["../../src/stories/tabs.stories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE","sourcesContent":["/* export default {\n title: \"Components/Tabs\",\n};\n\nexport const Tabs = () =>\n `<div class=\"xpl-tabs\">\n <nav aria-label=\"Tabs\">\n <a href=\"#\" class=\"current\" aria-current=\"page\">\n Applied\n <span>52</span>\n </a>\n <a href=\"#\">\n Phone Screening\n <span>6</span>\n </a>\n <a href=\"#\">\n Interview\n <span>4</span>\n </a>\n <a href=\"#\">Offer</a>\n <a href=\"#\">Disqualified</a>\n </nav>\n </div>`;\n*/\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.stories.js","sourceRoot":"","sources":["../../src/stories/toggle.stories.ts"],"names":[],"mappings":"AAAA,eAAe;EACX,KAAK,EAAE,mBAAmB;EAC1B,QAAQ,EAAE;IACN,OAAO,EAAE;MACL,OAAO,EAAE;QACL,IAAI,EAAE,SAAS;OAClB;KACJ;IACD,OAAO,EAAE;MACL,OAAO,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC;MAC7B,OAAO,EAAE;QACL,IAAI,EAAE,QAAQ;OACjB;KACJ;IACD,OAAO,EAAE;MACL,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC3C;IACD,KAAK,EAAE;MACH,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC3C;IACD,WAAW,EAAE;MACT,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;KAC5C;IACD,QAAQ,EAAE;MACN,OAAO,EAAE;QACL,IAAI,EAAE,SAAS;OAClB;KACJ;GACJ;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACnB,OAAO,EACP,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OAAO,EAAE,KAAK;EACd,OAAO,EAAE,gBAAgB;EACzB,KAAK,EAAE,OAAO;EACd,OAAO,EAAE,SAAS;EAClB,WAAW,EAAE,4BAA4B;EACzC,QAAQ,EAAE,KAAK;CAClB,CAAC","sourcesContent":["export default {\n title: 'Components/Toggle',\n argTypes: {\n checked: {\n control: {\n type: 'boolean',\n },\n },\n variant: {\n options: ['default', 'small'],\n control: {\n type: 'select',\n },\n },\n heading: {\n type: { name: 'string', required: true },\n },\n label: {\n type: { name: 'string', required: true },\n },\n description: {\n type: { name: 'string', required: false },\n },\n disabled: {\n control: {\n type: 'boolean',\n },\n },\n },\n};\n\nexport const Toggle = ({\n checked,\n description,\n disabled,\n label,\n heading,\n variant,\n}) => {\n let attrs = '';\n if (checked) attrs += ` checked`;\n if (description) attrs += ` description=\"${description}\"`;\n if (heading) attrs += ` heading=\"${heading}\"`;\n if (label) attrs += ` label=\"${label}\"`;\n if (variant === 'small') attrs += ' variant=\"small\"';\n if (disabled) attrs += ` disabled`;\n return `<xpl-toggle${attrs}></xpl-toggle>`;\n};\n\nToggle.parameters = {\n layout: 'centered',\n 'web-component': {\n render: Toggle,\n },\n html: {\n render({ label, heading, checked, description, disabled, variant }) {\n let attrs = '';\n if (disabled) attrs += ` disabled`;\n if (checked) attrs += ` checked`;\n let className = 'xpl-toggle';\n if (variant === 'small') className += ' xpl-toggle--small';\n return `<div class=\"xpl-toggle-container\">${\n heading || description\n ? `\n <label for=\"id\">\n ${heading}${\n description\n ? `\n <small>${description}</small>`\n : ''\n }\n </label>`\n : ''\n }\n <input class=\"${className}\" id=\"id\" type=\"checkbox\"${attrs}></input>\n <label for=\"id\">${label}</label>\n</div>`;\n },\n },\n};\n\nToggle.args = {\n checked: false,\n heading: 'Toggle Heading',\n label: 'Label',\n variant: 'default',\n description: 'Lorem ipsum dolor sit amet',\n disabled: false,\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utility-bar.stories.js","sourceRoot":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AAU,mCACpB,YAAY,KACf,QAAQ,EAAE;IACN,eAAe,EAAE,UAAU;GAC9B,GACJ,CAAC;AAEF,gBAAgB,CAAC,SAAS,GAAG,QAAQ,CAAC;AACtC,uCAAuC;AAEvC,0CAA0C;AAC1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAEhD,iBAAiB,CAAC,IAAI,GAAG;EACrB,QAAQ,EAAE,WAAW,EAAE;EACvB,SAAS,EAAE,YAAY,CAAC,KAAK,CAAC;CACjC,CAAC;AAEF,iBAAiB,CAAC,UAAU,qBAAQ,YAAY,CAAE,CAAC;AAEnD,iBAAiB,CAAC,SAAS,GAAG,SAAS,CAAC;AACxC,wCAAwC","sourcesContent":["export default {\n title: 'Components/Navigation/Utility Bar',\n argTypes: {\n mainSlot: {\n type: { name: 'string', required: false },\n },\n asideSlot: {\n type: { name: 'string', required: false },\n },\n },\n};\n\ninterface UtilityBarSlots {\n mainSlot: 'string';\n asideSlot: 'string';\n}\n\nconst Story = ({ mainSlot, asideSlot }: UtilityBarSlots): string => `\n <div style=\"width: 85vw;\">\n <xpl-utility-bar>\n <ul slot=\"main\">\n ${mainSlot}\n </ul>\n <ul slot=\"aside\">\n ${asideSlot}\n </ul>\n </xpl-utility-bar>\n </div>\n`;\n\nconst setMainSlot = () =>\n `<li><xpl-icon icon=\"three-bars\" size=\"30\"></xpl-icon></li>`;\n\nconst setAsideSlot = (isMobile: boolean) => `\n <li>\n <xpl-button\n type=\"submit\"\n variant=\"outline\"\n ${isMobile ? 'icon-only' : 'icon-leading'}\n icon=\"user-circle\"\n >Find Customer</xpl-button\n >\n </li>\n <li>\n <xpl-avatar\n name=\"Jeremy\"\n src=\"https://pbs.twimg.com/profile_images/1388990311637127168/njwE8QEa_reasonably_small.jpg\"\n status=\"inactive\"\n ></xpl-avatar>\n </li>\n`;\n\nconst globalParams = {\n layout: 'centered',\n 'web-component': {\n render: ({ mainSlot, asideSlot }: UtilityBarSlots): string => `\n <xpl-utility-bar>\n <ul slot=\"main\">\n ${mainSlot}\n </ul>\n <ul slot=\"main\">\n ${asideSlot}\n </ul>\n </xpl-utility-bar>\n `,\n },\n html: {\n render: ({ mainSlot, asideSlot }: UtilityBarSlots): string => `\n <nav class=\"xpl-utility-bar\">\n <ul slot=\"main\">\n ${mainSlot}\n </ul>\n <ul slot=\"main\">\n ${asideSlot}\n </ul>\n </nav>\n `,\n },\n};\n\n// BEGIN: Story for Utility Bar on Mobile\nexport const UtilityBarMobile = Story.bind({});\n\nUtilityBarMobile.args = {\n mainSlot: setMainSlot(),\n asideSlot: setAsideSlot(true),\n};\n\nUtilityBarMobile.parameters = {\n ...globalParams,\n viewport: {\n defaultViewport: 'iphone12',\n },\n};\n\nUtilityBarMobile.storyName = 'Mobile';\n// END: Story for Utility Bar on Mobile\n\n// BEGIN: Story for Utility Bar on Desktop\nexport const UtilityBarDesktop = Story.bind({});\n\nUtilityBarDesktop.args = {\n mainSlot: setMainSlot(),\n asideSlot: setAsideSlot(false),\n};\n\nUtilityBarDesktop.parameters = { ...globalParams };\n\nUtilityBarDesktop.storyName = 'Desktop';\n// END: Story for Utility Bar on Desktop\n"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
argTypes: {
|
|
4
|
-
cardQuantity: {
|
|
5
|
-
control: {
|
|
6
|
-
type: string;
|
|
7
|
-
min: number;
|
|
8
|
-
max: number;
|
|
9
|
-
step: number;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default _default;
|
|
15
|
-
export declare const Dashboard: {
|
|
16
|
-
({ cardQuantity }: {
|
|
17
|
-
cardQuantity: any;
|
|
18
|
-
}): string;
|
|
19
|
-
parameters: {
|
|
20
|
-
layout: string;
|
|
21
|
-
'web-component': {
|
|
22
|
-
render: any;
|
|
23
|
-
};
|
|
24
|
-
html: {
|
|
25
|
-
render(): string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
args: {
|
|
29
|
-
cardQuantity: number;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
argTypes: {
|
|
4
|
-
name: {
|
|
5
|
-
type: {
|
|
6
|
-
name: string;
|
|
7
|
-
required: boolean;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
stat: {
|
|
11
|
-
type: {
|
|
12
|
-
name: string;
|
|
13
|
-
required: boolean;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
shortStat: {
|
|
17
|
-
type: {
|
|
18
|
-
name: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
variant: {
|
|
22
|
-
options: string[];
|
|
23
|
-
control: {
|
|
24
|
-
type: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
link: {
|
|
28
|
-
control: {
|
|
29
|
-
type: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
withIcon: {
|
|
33
|
-
control: {
|
|
34
|
-
type: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
icon: {
|
|
38
|
-
options: string[];
|
|
39
|
-
control: {
|
|
40
|
-
type: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
export default _default;
|
|
46
|
-
export declare const DataCard: {
|
|
47
|
-
({ name, stat, shortStat, variant, link, icon, withIcon, }: {
|
|
48
|
-
name: any;
|
|
49
|
-
stat: any;
|
|
50
|
-
shortStat: any;
|
|
51
|
-
variant: any;
|
|
52
|
-
link: any;
|
|
53
|
-
icon: any;
|
|
54
|
-
withIcon: any;
|
|
55
|
-
}): string;
|
|
56
|
-
parameters: {
|
|
57
|
-
layout: string;
|
|
58
|
-
'web-component': {
|
|
59
|
-
render: any;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
args: {
|
|
63
|
-
name: string;
|
|
64
|
-
stat: string;
|
|
65
|
-
shortStat: string;
|
|
66
|
-
variant: string;
|
|
67
|
-
link: boolean;
|
|
68
|
-
withIcon: boolean;
|
|
69
|
-
icon: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
argTypes: {
|
|
4
|
-
size: {
|
|
5
|
-
type: {
|
|
6
|
-
name: string;
|
|
7
|
-
required: boolean;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
color: {
|
|
11
|
-
type: {
|
|
12
|
-
name: string;
|
|
13
|
-
required: boolean;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
19
|
-
export declare const Icons: {
|
|
20
|
-
({ size, color }: {
|
|
21
|
-
size: any;
|
|
22
|
-
color: any;
|
|
23
|
-
}): string;
|
|
24
|
-
args: {
|
|
25
|
-
size: string;
|
|
26
|
-
color: string;
|
|
27
|
-
};
|
|
28
|
-
parameters: {
|
|
29
|
-
layout: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export declare const Icon: {
|
|
33
|
-
({ size, color, icon, backgroundColor }: {
|
|
34
|
-
size: any;
|
|
35
|
-
color: any;
|
|
36
|
-
icon: any;
|
|
37
|
-
backgroundColor: any;
|
|
38
|
-
}): string;
|
|
39
|
-
argTypes: {
|
|
40
|
-
size: {
|
|
41
|
-
type: {
|
|
42
|
-
name: string;
|
|
43
|
-
required: boolean;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
color: {
|
|
47
|
-
type: {
|
|
48
|
-
name: string;
|
|
49
|
-
required: boolean;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
icon: {
|
|
53
|
-
options: string[];
|
|
54
|
-
control: {
|
|
55
|
-
type: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
backgroundColor: {
|
|
59
|
-
options: string[];
|
|
60
|
-
control: {
|
|
61
|
-
type: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
args: {
|
|
66
|
-
size: string;
|
|
67
|
-
color: string;
|
|
68
|
-
icon: string;
|
|
69
|
-
backgroundColor: string;
|
|
70
|
-
};
|
|
71
|
-
parameters: {
|
|
72
|
-
layout: string;
|
|
73
|
-
'web-component': {
|
|
74
|
-
render: any;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
};
|