Skip to content

Commit

Permalink
Fix picker story
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Dec 24, 2023
1 parent 0535e7d commit 8abef48
Show file tree
Hide file tree
Showing 17 changed files with 64 additions and 567 deletions.
12 changes: 12 additions & 0 deletions packages/components/src/custom-elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import type { Menu } from './menu/index.js';
import type { MenuItem } from './menu-item/index.js';
import type { NumberField } from './number-field/index.js';
import type { Option } from './option/index.js';
import type {Picker} from './picker/index.js'
import type { Progress } from './progress/index.js';
import type { ProgressRing } from './progress-ring/index.js';
import type { Radio } from './radio/index.js';
Expand Down Expand Up @@ -78,6 +79,7 @@ import { jpMenu } from './menu/index.js';
import { jpMenuItem } from './menu-item/index.js';
import { jpNumberField } from './number-field/index.js';
import { jpOption } from './option/index.js';
import {jpPicker, jpPickerList, jpPickerListItem, jpPickerMenu, jpPickerMenuOption} from './picker/index.js'
import { jpProgress } from './progress/index.js';
import { jpProgressRing } from './progress-ring/index.js';
import { jpRadio } from './radio/index.js';
Expand Down Expand Up @@ -128,6 +130,11 @@ export {
jpMenuItem,
jpNumberField,
jpOption,
jpPicker,
jpPickerList,
jpPickerListItem,
jpPickerMenu,
jpPickerMenuOption,
jpProgress,
jpProgressRing,
jpRadio,
Expand Down Expand Up @@ -181,6 +188,11 @@ export const allComponents = {
jpMenuItem,
jpNumberField,
jpOption,
jpPicker,
jpPickerList,
jpPickerListItem,
jpPickerMenu,
jpPickerMenuOption,
jpProgress,
jpProgressRing,
jpRadio,
Expand Down
84 changes: 0 additions & 84 deletions packages/components/src/disclosure/fixtures/disclosure.html

This file was deleted.

17 changes: 0 additions & 17 deletions packages/components/src/disclosure/scenarios/index.html

This file was deleted.

162 changes: 0 additions & 162 deletions packages/components/src/picker/fixtures/picker.html

This file was deleted.

20 changes: 10 additions & 10 deletions packages/components/src/picker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import { pickerListItemStyles } from "./picker-list-item.styles.js";
*
* @alpha
* @remarks
* * Generates HTML Element: `<fast-picker>`
* * Generates HTML Element: `<jp-picker>`
*/
export const fastPicker = Picker.compose({
export const jpPicker = Picker.compose({
baseName: "picker",
template: pickerTemplate,
styles: pickerStyles,
Expand Down Expand Up @@ -60,9 +60,9 @@ export class PickerMenu extends FoundationPickerMenu {
*
* @alpha
* @remarks
* HTML Element: \<fast-picker-menu\>
* HTML Element: \<jp-picker-menu\>
*/
export const fastPickerMenu = PickerMenu.compose<FoundationElementDefinition>({
export const jpPickerMenu = PickerMenu.compose<FoundationElementDefinition>({
baseName: "picker-menu",
baseClass: FoundationPickerMenu,
template: pickerMenuTemplate,
Expand All @@ -75,9 +75,9 @@ export const fastPickerMenu = PickerMenu.compose<FoundationElementDefinition>({
*
* @alpha
* @remarks
* HTML Element: \<fast-picker-menu-option\>
* HTML Element: \<jp-picker-menu-option\>
*/
export const fastPickerMenuOption = PickerMenuOption.compose({
export const jpPickerMenuOption = PickerMenuOption.compose({
baseName: "picker-menu-option",
template: pickerMenuOptionTemplate,
styles: pickerMenuOptionStyles,
Expand All @@ -89,10 +89,10 @@ export const fastPickerMenuOption = PickerMenuOption.compose({
*
* @alpha
* @remarks
* HTML Element: \<fast-picker-list\>
* HTML Element: \<jp-picker-list\>
*
*/
export const fastPickerList = PickerList.compose({
export const jpPickerList = PickerList.compose({
baseName: "picker-list",
template: pickerListTemplate,
styles: pickerListStyles,
Expand All @@ -103,9 +103,9 @@ export const fastPickerList = PickerList.compose({
*
* @alpha
* @remarks
* HTML Element: \<fast-picker-list-item\>
* HTML Element: \<jp-picker-list-item\>
*/
export const fastPickerListItem = PickerListItem.compose({
export const jpPickerListItem = PickerListItem.compose({
baseName: "picker-list-item",
template: pickerListItemTemplate,
styles: pickerListItemStyles,
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 8abef48

Please sign in to comment.