Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cc-order-summary: init component #1304

Open
roberttran-cc opened this issue Jan 17, 2025 · 0 comments · May be fixed by #1305
Open

cc-order-summary: init component #1304

roberttran-cc opened this issue Jan 17, 2025 · 0 comments · May be fixed by #1305
Assignees
Labels
enhancement New feature or request

Comments

@roberttran-cc
Copy link
Member

Context

For the new creation tunnel, we need an UI to display the options of the product being currently ordered.

To be discussed

We assume the creation button will be part of a form but maybe it won't always be the case. Moreover, it's a cc-button but without a type='submit', it only fires an event.

I see 3 options for now:

  • leave it as is,
  • implement the type='submit',
  • remove the cc-button and replace it with a slot.

Inputs

Attributes/properties

Property Type Default value Mandatory Description
orderSummaryState Object null true component main state

Slots

No slot.

CSS custom property

Name Type Default value Description
--cc-order-summary-detail-font-size FontSize 0.825em The font-size for the list of details
--cc-order-summary-font-weight FontWeight 600 Sets the value of the font weight CSS property

CSS part

No CSS part.

Outputs

Event Data type Description
create n/a Fires when the create button is clicked

Type Definitions

export interface OrderSummaryState {
  name: string;
  tags?: Array<string>;
  logoUrl?: string;
  configuration?: Array<ConfigurationItem>;
}

export interface ConfigurationItem {
  label: string;
  value: string;
}

Data/APIs

No API.

Stories & states

WIP.

@roberttran-cc roberttran-cc added the enhancement New feature or request label Jan 17, 2025
@roberttran-cc roberttran-cc self-assigned this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant