@pisell/materials 6.9.4 → 6.11.1
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/README.md +283 -1
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/preview.js +145 -145
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +18 -18
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +20 -20
- package/es/components/PisellFields/index.d.ts +36 -0
- package/es/components/PisellFields/index.js +41 -0
- package/es/components/PisellLayouts/index.d.ts +32 -0
- package/es/components/PisellLayouts/index.js +43 -0
- package/es/components/PisellMetrics/index.d.ts +23 -0
- package/es/components/PisellMetrics/index.js +29 -0
- package/es/components/cardMetricItem/index.d.ts +4 -1
- package/es/components/cardMetricItem/index.js +5 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +9 -9
- package/es/components/page/index.js +4 -121
- package/es/components/pisellCurrency/PisellCurrency.d.ts +39 -0
- package/es/components/pisellCurrency/PisellCurrency.js +67 -0
- package/es/components/pisellCurrency/PisellCurrency.less +43 -0
- package/es/components/pisellCurrency/PisellCurrency.stories.d.ts +56 -0
- package/es/components/pisellCurrency/PisellCurrency.stories.js +426 -0
- package/es/components/pisellCurrency/components/DisabledView.d.ts +11 -0
- package/es/components/pisellCurrency/components/DisabledView.js +51 -0
- package/es/components/pisellCurrency/components/EditView.d.ts +18 -0
- package/es/components/pisellCurrency/components/EditView.js +127 -0
- package/es/components/pisellCurrency/components/ReadOnlyView.d.ts +17 -0
- package/es/components/pisellCurrency/components/ReadOnlyView.js +70 -0
- package/es/components/pisellCurrency/components/index.d.ts +6 -0
- package/es/components/pisellCurrency/components/index.js +7 -0
- package/es/components/pisellCurrency/index.d.ts +6 -0
- package/es/components/pisellCurrency/index.js +7 -0
- package/es/components/pisellCurrency/types.d.ts +56 -0
- package/es/components/pisellCurrency/types.js +1 -0
- package/es/components/pisellCurrency/utils/currencyFormatter.d.ts +31 -0
- package/es/components/pisellCurrency/utils/currencyFormatter.js +50 -0
- package/es/components/pisellCurrency/utils/index.d.ts +5 -0
- package/es/components/pisellCurrency/utils/index.js +5 -0
- package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.d.ts +35 -0
- package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +188 -0
- package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +75 -0
- package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.stories.d.ts +176 -0
- package/es/components/pisellDateTimeDisplay/PisellDateTimeDisplay.stories.js +1085 -0
- package/es/components/pisellDateTimeDisplay/components/DateDisplay.d.ts +43 -0
- package/es/components/pisellDateTimeDisplay/components/DateDisplay.js +50 -0
- package/es/components/pisellDateTimeDisplay/components/TimeDisplay.d.ts +42 -0
- package/es/components/pisellDateTimeDisplay/components/TimeDisplay.js +44 -0
- package/es/components/pisellDateTimeDisplay/components/WeekdayDisplay.d.ts +57 -0
- package/es/components/pisellDateTimeDisplay/components/WeekdayDisplay.js +59 -0
- package/es/components/pisellDateTimeDisplay/components/index.d.ts +6 -0
- package/es/components/pisellDateTimeDisplay/components/index.js +3 -0
- package/es/components/pisellDateTimeDisplay/hooks/index.d.ts +2 -0
- package/es/components/pisellDateTimeDisplay/hooks/index.js +1 -0
- package/es/components/pisellDateTimeDisplay/hooks/useCurrentTime.d.ts +45 -0
- package/es/components/pisellDateTimeDisplay/hooks/useCurrentTime.js +79 -0
- package/es/components/pisellDateTimeDisplay/index.d.ts +2 -0
- package/es/components/pisellDateTimeDisplay/index.js +1 -0
- package/es/components/pisellDateTimeDisplay/types.d.ts +298 -0
- package/es/components/pisellDateTimeDisplay/types.js +1 -0
- package/es/components/pisellDateTimeDisplay/utils/formatDate.d.ts +21 -0
- package/es/components/pisellDateTimeDisplay/utils/formatDate.js +127 -0
- package/es/components/pisellDateTimeDisplay/utils/formatTime.d.ts +19 -0
- package/es/components/pisellDateTimeDisplay/utils/formatTime.js +44 -0
- package/es/components/pisellDateTimeDisplay/utils/formatWeekday.d.ts +30 -0
- package/es/components/pisellDateTimeDisplay/utils/formatWeekday.js +61 -0
- package/es/components/pisellDateTimeDisplay/utils/getRefreshInterval.d.ts +18 -0
- package/es/components/pisellDateTimeDisplay/utils/getRefreshInterval.js +28 -0
- package/es/components/pisellDateTimeDisplay/utils/index.d.ts +4 -0
- package/es/components/pisellDateTimeDisplay/utils/index.js +4 -0
- package/es/components/pisellEmail/PisellEmail.d.ts +37 -0
- package/es/components/pisellEmail/PisellEmail.js +64 -0
- package/es/components/pisellEmail/PisellEmail.less +50 -0
- package/es/components/pisellEmail/PisellEmail.stories.d.ts +116 -0
- package/es/components/pisellEmail/PisellEmail.stories.js +699 -0
- package/es/components/pisellEmail/components/DisabledView.d.ts +14 -0
- package/es/components/pisellEmail/components/DisabledView.js +21 -0
- package/es/components/pisellEmail/components/EditView.d.ts +15 -0
- package/es/components/pisellEmail/components/EditView.js +146 -0
- package/es/components/pisellEmail/components/ReadOnlyView.d.ts +15 -0
- package/es/components/pisellEmail/components/ReadOnlyView.js +81 -0
- package/es/components/pisellEmail/constants/emailDomains.d.ts +5 -0
- package/es/components/pisellEmail/constants/emailDomains.js +11 -0
- package/es/components/pisellEmail/constants/emailRegex.d.ts +13 -0
- package/es/components/pisellEmail/constants/emailRegex.js +15 -0
- package/es/components/pisellEmail/index.d.ts +5 -0
- package/es/components/pisellEmail/index.js +5 -0
- package/es/components/pisellEmail/types.d.ts +176 -0
- package/es/components/pisellEmail/types.js +1 -0
- package/es/components/pisellEmail/utils/domainSuggestions.d.ts +15 -0
- package/es/components/pisellEmail/utils/domainSuggestions.js +46 -0
- package/es/components/pisellEmail/utils/emailHelper.d.ts +66 -0
- package/es/components/pisellEmail/utils/emailHelper.js +135 -0
- package/es/components/pisellEmail/utils/emailValidator.d.ts +45 -0
- package/es/components/pisellEmail/utils/emailValidator.js +130 -0
- package/es/components/pisellEmail/utils/index.d.ts +6 -0
- package/es/components/pisellEmail/utils/index.js +12 -0
- package/es/components/pisellLayout/index.d.ts +1 -1
- package/es/components/pisellLongText/PisellLongText.d.ts +39 -0
- package/es/components/pisellLongText/PisellLongText.js +66 -0
- package/es/components/pisellLongText/PisellLongText.less +60 -0
- package/es/components/pisellLongText/PisellLongText.stories.d.ts +123 -0
- package/es/components/pisellLongText/PisellLongText.stories.js +589 -0
- package/es/components/pisellLongText/components/DisabledView.d.ts +16 -0
- package/es/components/pisellLongText/components/DisabledView.js +51 -0
- package/es/components/pisellLongText/components/EditView.d.ts +19 -0
- package/es/components/pisellLongText/components/EditView.js +62 -0
- package/es/components/pisellLongText/components/ReadOnlyView.d.ts +18 -0
- package/es/components/pisellLongText/components/ReadOnlyView.js +97 -0
- package/es/components/pisellLongText/index.d.ts +6 -0
- package/es/components/pisellLongText/index.js +7 -0
- package/es/components/pisellLongText/types.d.ts +147 -0
- package/es/components/pisellLongText/types.js +1 -0
- package/es/components/pisellMetricCard/PisellMetricCard.d.ts +35 -0
- package/es/components/pisellMetricCard/PisellMetricCard.js +169 -0
- package/es/components/pisellMetricCard/PisellMetricCard.less +74 -0
- package/es/components/pisellMetricCard/PisellMetricCard.stories.d.ts +17 -0
- package/es/components/pisellMetricCard/PisellMetricCard.stories.js +208 -0
- package/es/components/pisellMetricCard/components/MetricComparison.d.ts +14 -0
- package/es/components/pisellMetricCard/components/MetricComparison.js +72 -0
- package/es/components/pisellMetricCard/components/MetricTitle.d.ts +12 -0
- package/es/components/pisellMetricCard/components/MetricTitle.js +52 -0
- package/es/components/pisellMetricCard/components/MetricValue.d.ts +12 -0
- package/es/components/pisellMetricCard/components/MetricValue.js +29 -0
- package/es/components/pisellMetricCard/components/TrendIcon.d.ts +14 -0
- package/es/components/pisellMetricCard/components/TrendIcon.js +30 -0
- package/es/components/pisellMetricCard/components/index.d.ts +7 -0
- package/es/components/pisellMetricCard/components/index.js +8 -0
- package/es/components/pisellMetricCard/index.d.ts +6 -0
- package/es/components/pisellMetricCard/index.js +7 -0
- package/es/components/pisellMetricCard/types.d.ts +201 -0
- package/es/components/pisellMetricCard/types.js +1 -0
- package/es/components/pisellMetricCard/utils/calculateTrend.d.ts +14 -0
- package/es/components/pisellMetricCard/utils/calculateTrend.js +29 -0
- package/es/components/pisellMetricCard/utils/formatMetricValue.d.ts +34 -0
- package/es/components/pisellMetricCard/utils/formatMetricValue.js +63 -0
- package/es/components/pisellMetricCard/utils/index.d.ts +5 -0
- package/es/components/pisellMetricCard/utils/index.js +6 -0
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +9 -0
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.js +99 -0
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +231 -0
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.stories.d.ts +70 -0
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.stories.js +576 -0
- package/es/components/pisellMultipleSelect/components/DisabledView.d.ts +8 -0
- package/es/components/pisellMultipleSelect/components/DisabledView.js +56 -0
- package/es/components/pisellMultipleSelect/components/EditView.d.ts +8 -0
- package/es/components/pisellMultipleSelect/components/EditView.js +176 -0
- package/es/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +8 -0
- package/es/components/pisellMultipleSelect/components/ReadOnlyView.js +57 -0
- package/es/components/pisellMultipleSelect/index.d.ts +6 -0
- package/es/components/pisellMultipleSelect/index.js +7 -0
- package/es/components/pisellMultipleSelect/types.d.ts +160 -0
- package/es/components/pisellMultipleSelect/types.js +1 -0
- package/es/components/pisellNumber/PisellNumber.d.ts +42 -0
- package/es/components/pisellNumber/PisellNumber.js +70 -0
- package/es/components/pisellNumber/PisellNumber.less +30 -0
- package/es/components/pisellNumber/PisellNumber.stories.d.ts +66 -0
- package/es/components/pisellNumber/PisellNumber.stories.js +427 -0
- package/es/components/pisellNumber/components/DisabledView.d.ts +11 -0
- package/es/components/pisellNumber/components/DisabledView.js +50 -0
- package/es/components/pisellNumber/components/EditView.d.ts +18 -0
- package/es/components/pisellNumber/components/EditView.js +87 -0
- package/es/components/pisellNumber/components/ReadOnlyView.d.ts +16 -0
- package/es/components/pisellNumber/components/ReadOnlyView.js +60 -0
- package/es/components/pisellNumber/components/index.d.ts +6 -0
- package/es/components/pisellNumber/components/index.js +7 -0
- package/es/components/pisellNumber/index.d.ts +6 -0
- package/es/components/pisellNumber/index.js +7 -0
- package/es/components/pisellNumber/types.d.ts +168 -0
- package/es/components/pisellNumber/types.js +1 -0
- package/es/components/pisellPercent/PisellPercent.d.ts +38 -0
- package/es/components/pisellPercent/PisellPercent.js +66 -0
- package/es/components/pisellPercent/PisellPercent.less +54 -0
- package/es/components/pisellPercent/PisellPercent.stories.d.ts +52 -0
- package/es/components/pisellPercent/PisellPercent.stories.js +332 -0
- package/es/components/pisellPercent/components/DisabledView.d.ts +11 -0
- package/es/components/pisellPercent/components/DisabledView.js +49 -0
- package/es/components/pisellPercent/components/EditView.d.ts +17 -0
- package/es/components/pisellPercent/components/EditView.js +120 -0
- package/es/components/pisellPercent/components/ReadOnlyView.d.ts +14 -0
- package/es/components/pisellPercent/components/ReadOnlyView.js +94 -0
- package/es/components/pisellPercent/components/index.d.ts +6 -0
- package/es/components/pisellPercent/components/index.js +7 -0
- package/es/components/pisellPercent/index.d.ts +6 -0
- package/es/components/pisellPercent/index.js +7 -0
- package/es/components/pisellPercent/types.d.ts +68 -0
- package/es/components/pisellPercent/types.js +1 -0
- package/es/components/pisellPercent/utils/index.d.ts +6 -0
- package/es/components/pisellPercent/utils/index.js +6 -0
- package/es/components/pisellPercent/utils/percentFormatter.d.ts +27 -0
- package/es/components/pisellPercent/utils/percentFormatter.js +50 -0
- package/es/components/pisellPercent/utils/rangeConverter.d.ts +36 -0
- package/es/components/pisellPercent/utils/rangeConverter.js +87 -0
- package/es/components/pisellPhone/PisellPhone.d.ts +36 -0
- package/es/components/pisellPhone/PisellPhone.js +63 -0
- package/es/components/pisellPhone/PisellPhone.less +85 -0
- package/es/components/pisellPhone/PisellPhone.stories.d.ts +80 -0
- package/es/components/pisellPhone/PisellPhone.stories.js +363 -0
- package/es/components/pisellPhone/components/DisabledView.d.ts +16 -0
- package/es/components/pisellPhone/components/DisabledView.js +53 -0
- package/es/components/pisellPhone/components/EditView.d.ts +19 -0
- package/es/components/pisellPhone/components/EditView.js +116 -0
- package/es/components/pisellPhone/components/ReadOnlyView.d.ts +17 -0
- package/es/components/pisellPhone/components/ReadOnlyView.js +76 -0
- package/es/components/pisellPhone/constants/countryCodes.d.ts +20 -0
- package/es/components/pisellPhone/constants/countryCodes.js +199 -0
- package/es/components/pisellPhone/index.d.ts +7 -0
- package/es/components/pisellPhone/index.js +9 -0
- package/es/components/pisellPhone/types.d.ts +209 -0
- package/es/components/pisellPhone/types.js +1 -0
- package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
- package/es/components/pisellPhone/utils/countryCodeHelper.js +87 -0
- package/es/components/pisellPhone/utils/index.d.ts +6 -0
- package/es/components/pisellPhone/utils/index.js +7 -0
- package/es/components/pisellPhone/utils/phoneFormatter.d.ts +39 -0
- package/es/components/pisellPhone/utils/phoneFormatter.js +112 -0
- package/es/components/pisellPhone/utils/phoneValidator.d.ts +11 -0
- package/es/components/pisellPhone/utils/phoneValidator.js +59 -0
- package/es/components/pisellRating/PisellRating.d.ts +31 -0
- package/es/components/pisellRating/PisellRating.js +120 -0
- package/es/components/pisellRating/PisellRating.less +41 -0
- package/es/components/pisellRating/PisellRating.stories.d.ts +53 -0
- package/es/components/pisellRating/PisellRating.stories.js +243 -0
- package/es/components/pisellRating/index.d.ts +6 -0
- package/es/components/pisellRating/index.js +7 -0
- package/es/components/pisellRating/types.d.ts +124 -0
- package/es/components/pisellRating/types.js +1 -0
- package/es/components/pisellRow/index.d.ts +1 -1
- package/es/components/pisellSingleLineText/PisellSingleLineText.d.ts +40 -0
- package/es/components/pisellSingleLineText/PisellSingleLineText.js +67 -0
- package/es/components/pisellSingleLineText/PisellSingleLineText.less +62 -0
- package/es/components/pisellSingleLineText/PisellSingleLineText.stories.d.ts +102 -0
- package/es/components/pisellSingleLineText/PisellSingleLineText.stories.js +507 -0
- package/es/components/pisellSingleLineText/components/DisabledView.d.ts +16 -0
- package/es/components/pisellSingleLineText/components/DisabledView.js +51 -0
- package/es/components/pisellSingleLineText/components/EditView.d.ts +19 -0
- package/es/components/pisellSingleLineText/components/EditView.js +59 -0
- package/es/components/pisellSingleLineText/components/ReadOnlyView.d.ts +20 -0
- package/es/components/pisellSingleLineText/components/ReadOnlyView.js +153 -0
- package/es/components/pisellSingleLineText/index.d.ts +6 -0
- package/es/components/pisellSingleLineText/index.js +7 -0
- package/es/components/pisellSingleLineText/types.d.ts +139 -0
- package/es/components/pisellSingleLineText/types.js +1 -0
- package/es/components/pisellSingleSelect/PisellSingleSelect.d.ts +9 -0
- package/es/components/pisellSingleSelect/PisellSingleSelect.js +70 -0
- package/es/components/pisellSingleSelect/PisellSingleSelect.less +159 -0
- package/es/components/pisellSingleSelect/PisellSingleSelect.stories.d.ts +66 -0
- package/es/components/pisellSingleSelect/PisellSingleSelect.stories.js +517 -0
- package/es/components/pisellSingleSelect/components/DisabledView.d.ts +8 -0
- package/es/components/pisellSingleSelect/components/DisabledView.js +54 -0
- package/es/components/pisellSingleSelect/components/EditView.d.ts +8 -0
- package/es/components/pisellSingleSelect/components/EditView.js +156 -0
- package/es/components/pisellSingleSelect/components/ReadOnlyView.d.ts +8 -0
- package/es/components/pisellSingleSelect/components/ReadOnlyView.js +37 -0
- package/es/components/pisellSingleSelect/index.d.ts +6 -0
- package/es/components/pisellSingleSelect/index.js +7 -0
- package/es/components/pisellSingleSelect/types.d.ts +92 -0
- package/es/components/pisellSingleSelect/types.js +1 -0
- package/es/components/pisellUrl/PisellUrl.d.ts +37 -0
- package/es/components/pisellUrl/PisellUrl.js +64 -0
- package/es/components/pisellUrl/PisellUrl.less +46 -0
- package/es/components/pisellUrl/PisellUrl.stories.d.ts +108 -0
- package/es/components/pisellUrl/PisellUrl.stories.js +713 -0
- package/es/components/pisellUrl/components/DisabledView.d.ts +14 -0
- package/es/components/pisellUrl/components/DisabledView.js +21 -0
- package/es/components/pisellUrl/components/EditView.d.ts +15 -0
- package/es/components/pisellUrl/components/EditView.js +119 -0
- package/es/components/pisellUrl/components/ReadOnlyView.d.ts +15 -0
- package/es/components/pisellUrl/components/ReadOnlyView.js +90 -0
- package/es/components/pisellUrl/index.d.ts +5 -0
- package/es/components/pisellUrl/index.js +5 -0
- package/es/components/pisellUrl/types.d.ts +160 -0
- package/es/components/pisellUrl/types.js +1 -0
- package/es/components/pisellUrl/utils/index.d.ts +6 -0
- package/es/components/pisellUrl/utils/index.js +12 -0
- package/es/components/pisellUrl/utils/urlFormatter.d.ts +38 -0
- package/es/components/pisellUrl/utils/urlFormatter.js +80 -0
- package/es/components/pisellUrl/utils/urlHelper.d.ts +63 -0
- package/es/components/pisellUrl/utils/urlHelper.js +141 -0
- package/es/components/pisellUrl/utils/urlValidator.d.ts +46 -0
- package/es/components/pisellUrl/utils/urlValidator.js +83 -0
- package/es/components/table/Table/fields/index.d.ts +2 -2
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/index.d.ts +103 -65
- package/es/index.js +129 -49
- package/es/theme/tokens.d.ts +22 -0
- package/es/theme/tokens.js +277 -0
- package/lib/components/PisellFields/index.d.ts +36 -0
- package/lib/components/PisellFields/index.js +49 -0
- package/lib/components/PisellLayouts/index.d.ts +32 -0
- package/lib/components/PisellLayouts/index.js +57 -0
- package/lib/components/PisellMetrics/index.d.ts +23 -0
- package/lib/components/PisellMetrics/index.js +43 -0
- package/lib/components/cardMetricItem/index.d.ts +4 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +9 -9
- package/lib/components/page/index.js +3 -121
- package/lib/components/pisellCurrency/PisellCurrency.d.ts +39 -0
- package/lib/components/pisellCurrency/PisellCurrency.js +63 -0
- package/lib/components/pisellCurrency/PisellCurrency.less +43 -0
- package/lib/components/pisellCurrency/PisellCurrency.stories.d.ts +56 -0
- package/lib/components/pisellCurrency/PisellCurrency.stories.js +251 -0
- package/lib/components/pisellCurrency/components/DisabledView.d.ts +11 -0
- package/lib/components/pisellCurrency/components/DisabledView.js +77 -0
- package/lib/components/pisellCurrency/components/EditView.d.ts +18 -0
- package/lib/components/pisellCurrency/components/EditView.js +117 -0
- package/lib/components/pisellCurrency/components/ReadOnlyView.d.ts +17 -0
- package/lib/components/pisellCurrency/components/ReadOnlyView.js +79 -0
- package/lib/components/pisellCurrency/components/index.d.ts +6 -0
- package/lib/components/pisellCurrency/components/index.js +45 -0
- package/lib/components/pisellCurrency/index.d.ts +6 -0
- package/lib/components/pisellCurrency/index.js +39 -0
- package/lib/components/pisellCurrency/types.d.ts +56 -0
- package/lib/components/pisellCurrency/types.js +17 -0
- package/lib/components/pisellCurrency/utils/currencyFormatter.d.ts +31 -0
- package/lib/components/pisellCurrency/utils/currencyFormatter.js +56 -0
- package/lib/components/pisellCurrency/utils/index.d.ts +5 -0
- package/lib/components/pisellCurrency/utils/index.js +29 -0
- package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.d.ts +35 -0
- package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.js +178 -0
- package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.less +75 -0
- package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.stories.d.ts +176 -0
- package/lib/components/pisellDateTimeDisplay/PisellDateTimeDisplay.stories.js +783 -0
- package/lib/components/pisellDateTimeDisplay/components/DateDisplay.d.ts +43 -0
- package/lib/components/pisellDateTimeDisplay/components/DateDisplay.js +67 -0
- package/lib/components/pisellDateTimeDisplay/components/TimeDisplay.d.ts +42 -0
- package/lib/components/pisellDateTimeDisplay/components/TimeDisplay.js +64 -0
- package/lib/components/pisellDateTimeDisplay/components/WeekdayDisplay.d.ts +57 -0
- package/lib/components/pisellDateTimeDisplay/components/WeekdayDisplay.js +64 -0
- package/lib/components/pisellDateTimeDisplay/components/index.d.ts +6 -0
- package/lib/components/pisellDateTimeDisplay/components/index.js +35 -0
- package/lib/components/pisellDateTimeDisplay/hooks/index.d.ts +2 -0
- package/lib/components/pisellDateTimeDisplay/hooks/index.js +29 -0
- package/lib/components/pisellDateTimeDisplay/hooks/useCurrentTime.d.ts +45 -0
- package/lib/components/pisellDateTimeDisplay/hooks/useCurrentTime.js +72 -0
- package/lib/components/pisellDateTimeDisplay/index.d.ts +2 -0
- package/lib/components/pisellDateTimeDisplay/index.js +39 -0
- package/lib/components/pisellDateTimeDisplay/types.d.ts +298 -0
- package/lib/components/pisellDateTimeDisplay/types.js +17 -0
- package/lib/components/pisellDateTimeDisplay/utils/formatDate.d.ts +21 -0
- package/lib/components/pisellDateTimeDisplay/utils/formatDate.js +91 -0
- package/lib/components/pisellDateTimeDisplay/utils/formatTime.d.ts +19 -0
- package/lib/components/pisellDateTimeDisplay/utils/formatTime.js +47 -0
- package/lib/components/pisellDateTimeDisplay/utils/formatWeekday.d.ts +30 -0
- package/lib/components/pisellDateTimeDisplay/utils/formatWeekday.js +45 -0
- package/lib/components/pisellDateTimeDisplay/utils/getRefreshInterval.d.ts +18 -0
- package/lib/components/pisellDateTimeDisplay/utils/getRefreshInterval.js +35 -0
- package/lib/components/pisellDateTimeDisplay/utils/index.d.ts +4 -0
- package/lib/components/pisellDateTimeDisplay/utils/index.js +38 -0
- package/lib/components/pisellEmail/PisellEmail.d.ts +37 -0
- package/lib/components/pisellEmail/PisellEmail.js +62 -0
- package/lib/components/pisellEmail/PisellEmail.less +50 -0
- package/lib/components/pisellEmail/PisellEmail.stories.d.ts +116 -0
- package/lib/components/pisellEmail/PisellEmail.stories.js +532 -0
- package/lib/components/pisellEmail/components/DisabledView.d.ts +14 -0
- package/lib/components/pisellEmail/components/DisabledView.js +42 -0
- package/lib/components/pisellEmail/components/EditView.d.ts +15 -0
- package/lib/components/pisellEmail/components/EditView.js +123 -0
- package/lib/components/pisellEmail/components/ReadOnlyView.d.ts +15 -0
- package/lib/components/pisellEmail/components/ReadOnlyView.js +99 -0
- package/lib/components/pisellEmail/constants/emailDomains.d.ts +5 -0
- package/lib/components/pisellEmail/constants/emailDomains.js +49 -0
- package/lib/components/pisellEmail/constants/emailRegex.d.ts +13 -0
- package/lib/components/pisellEmail/constants/emailRegex.js +32 -0
- package/lib/components/pisellEmail/index.d.ts +5 -0
- package/lib/components/pisellEmail/index.js +40 -0
- package/lib/components/pisellEmail/types.d.ts +176 -0
- package/lib/components/pisellEmail/types.js +17 -0
- package/lib/components/pisellEmail/utils/domainSuggestions.d.ts +15 -0
- package/lib/components/pisellEmail/utils/domainSuggestions.js +42 -0
- package/lib/components/pisellEmail/utils/emailHelper.d.ts +66 -0
- package/lib/components/pisellEmail/utils/emailHelper.js +89 -0
- package/lib/components/pisellEmail/utils/emailValidator.d.ts +45 -0
- package/lib/components/pisellEmail/utils/emailValidator.js +97 -0
- package/lib/components/pisellEmail/utils/index.d.ts +6 -0
- package/lib/components/pisellEmail/utils/index.js +27 -0
- package/lib/components/pisellLayout/index.d.ts +1 -1
- package/lib/components/pisellLongText/PisellLongText.d.ts +39 -0
- package/lib/components/pisellLongText/PisellLongText.js +62 -0
- package/lib/components/pisellLongText/PisellLongText.less +60 -0
- package/lib/components/pisellLongText/PisellLongText.stories.d.ts +123 -0
- package/lib/components/pisellLongText/PisellLongText.stories.js +492 -0
- package/lib/components/pisellLongText/components/DisabledView.d.ts +16 -0
- package/lib/components/pisellLongText/components/DisabledView.js +51 -0
- package/lib/components/pisellLongText/components/EditView.d.ts +19 -0
- package/lib/components/pisellLongText/components/EditView.js +69 -0
- package/lib/components/pisellLongText/components/ReadOnlyView.d.ts +18 -0
- package/lib/components/pisellLongText/components/ReadOnlyView.js +86 -0
- package/lib/components/pisellLongText/index.d.ts +6 -0
- package/lib/components/pisellLongText/index.js +39 -0
- package/lib/components/pisellLongText/types.d.ts +147 -0
- package/lib/components/pisellLongText/types.js +17 -0
- package/lib/components/pisellMetricCard/PisellMetricCard.d.ts +35 -0
- package/lib/components/pisellMetricCard/PisellMetricCard.js +166 -0
- package/lib/components/pisellMetricCard/PisellMetricCard.less +74 -0
- package/lib/components/pisellMetricCard/PisellMetricCard.stories.d.ts +17 -0
- package/lib/components/pisellMetricCard/PisellMetricCard.stories.js +238 -0
- package/lib/components/pisellMetricCard/components/MetricComparison.d.ts +14 -0
- package/lib/components/pisellMetricCard/components/MetricComparison.js +86 -0
- package/lib/components/pisellMetricCard/components/MetricTitle.d.ts +12 -0
- package/lib/components/pisellMetricCard/components/MetricTitle.js +84 -0
- package/lib/components/pisellMetricCard/components/MetricValue.d.ts +12 -0
- package/lib/components/pisellMetricCard/components/MetricValue.js +56 -0
- package/lib/components/pisellMetricCard/components/TrendIcon.d.ts +14 -0
- package/lib/components/pisellMetricCard/components/TrendIcon.js +50 -0
- package/lib/components/pisellMetricCard/components/index.d.ts +7 -0
- package/lib/components/pisellMetricCard/components/index.js +48 -0
- package/lib/components/pisellMetricCard/index.d.ts +6 -0
- package/lib/components/pisellMetricCard/index.js +41 -0
- package/lib/components/pisellMetricCard/types.d.ts +201 -0
- package/lib/components/pisellMetricCard/types.js +17 -0
- package/lib/components/pisellMetricCard/utils/calculateTrend.d.ts +14 -0
- package/lib/components/pisellMetricCard/utils/calculateTrend.js +38 -0
- package/lib/components/pisellMetricCard/utils/formatMetricValue.d.ts +34 -0
- package/lib/components/pisellMetricCard/utils/formatMetricValue.js +52 -0
- package/lib/components/pisellMetricCard/utils/index.d.ts +5 -0
- package/lib/components/pisellMetricCard/utils/index.js +32 -0
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.d.ts +9 -0
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.js +97 -0
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +231 -0
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.stories.d.ts +70 -0
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.stories.js +491 -0
- package/lib/components/pisellMultipleSelect/components/DisabledView.d.ts +8 -0
- package/lib/components/pisellMultipleSelect/components/DisabledView.js +82 -0
- package/lib/components/pisellMultipleSelect/components/EditView.d.ts +8 -0
- package/lib/components/pisellMultipleSelect/components/EditView.js +155 -0
- package/lib/components/pisellMultipleSelect/components/ReadOnlyView.d.ts +8 -0
- package/lib/components/pisellMultipleSelect/components/ReadOnlyView.js +80 -0
- package/lib/components/pisellMultipleSelect/index.d.ts +6 -0
- package/lib/components/pisellMultipleSelect/index.js +39 -0
- package/lib/components/pisellMultipleSelect/types.d.ts +160 -0
- package/lib/components/pisellMultipleSelect/types.js +17 -0
- package/lib/components/pisellNumber/PisellNumber.d.ts +42 -0
- package/lib/components/pisellNumber/PisellNumber.js +63 -0
- package/lib/components/pisellNumber/PisellNumber.less +30 -0
- package/lib/components/pisellNumber/PisellNumber.stories.d.ts +66 -0
- package/lib/components/pisellNumber/PisellNumber.stories.js +341 -0
- package/lib/components/pisellNumber/components/DisabledView.d.ts +11 -0
- package/lib/components/pisellNumber/components/DisabledView.js +80 -0
- package/lib/components/pisellNumber/components/EditView.d.ts +18 -0
- package/lib/components/pisellNumber/components/EditView.js +97 -0
- package/lib/components/pisellNumber/components/ReadOnlyView.d.ts +16 -0
- package/lib/components/pisellNumber/components/ReadOnlyView.js +75 -0
- package/lib/components/pisellNumber/components/index.d.ts +6 -0
- package/lib/components/pisellNumber/components/index.js +45 -0
- package/lib/components/pisellNumber/index.d.ts +6 -0
- package/lib/components/pisellNumber/index.js +39 -0
- package/lib/components/pisellNumber/types.d.ts +168 -0
- package/lib/components/pisellNumber/types.js +17 -0
- package/lib/components/pisellPercent/PisellPercent.d.ts +38 -0
- package/lib/components/pisellPercent/PisellPercent.js +63 -0
- package/lib/components/pisellPercent/PisellPercent.less +54 -0
- package/lib/components/pisellPercent/PisellPercent.stories.d.ts +52 -0
- package/lib/components/pisellPercent/PisellPercent.stories.js +217 -0
- package/lib/components/pisellPercent/components/DisabledView.d.ts +11 -0
- package/lib/components/pisellPercent/components/DisabledView.js +74 -0
- package/lib/components/pisellPercent/components/EditView.d.ts +17 -0
- package/lib/components/pisellPercent/components/EditView.js +112 -0
- package/lib/components/pisellPercent/components/ReadOnlyView.d.ts +14 -0
- package/lib/components/pisellPercent/components/ReadOnlyView.js +109 -0
- package/lib/components/pisellPercent/components/index.d.ts +6 -0
- package/lib/components/pisellPercent/components/index.js +45 -0
- package/lib/components/pisellPercent/index.d.ts +6 -0
- package/lib/components/pisellPercent/index.js +39 -0
- package/lib/components/pisellPercent/types.d.ts +68 -0
- package/lib/components/pisellPercent/types.js +17 -0
- package/lib/components/pisellPercent/utils/index.d.ts +6 -0
- package/lib/components/pisellPercent/utils/index.js +34 -0
- package/lib/components/pisellPercent/utils/percentFormatter.d.ts +27 -0
- package/lib/components/pisellPercent/utils/percentFormatter.js +48 -0
- package/lib/components/pisellPercent/utils/rangeConverter.d.ts +36 -0
- package/lib/components/pisellPercent/utils/rangeConverter.js +59 -0
- package/lib/components/pisellPhone/PisellPhone.d.ts +36 -0
- package/lib/components/pisellPhone/PisellPhone.js +62 -0
- package/lib/components/pisellPhone/PisellPhone.less +85 -0
- package/lib/components/pisellPhone/PisellPhone.stories.d.ts +80 -0
- package/lib/components/pisellPhone/PisellPhone.stories.js +290 -0
- package/lib/components/pisellPhone/components/DisabledView.d.ts +16 -0
- package/lib/components/pisellPhone/components/DisabledView.js +51 -0
- package/lib/components/pisellPhone/components/EditView.d.ts +19 -0
- package/lib/components/pisellPhone/components/EditView.js +101 -0
- package/lib/components/pisellPhone/components/ReadOnlyView.d.ts +17 -0
- package/lib/components/pisellPhone/components/ReadOnlyView.js +79 -0
- package/lib/components/pisellPhone/constants/countryCodes.d.ts +20 -0
- package/lib/components/pisellPhone/constants/countryCodes.js +233 -0
- package/lib/components/pisellPhone/index.d.ts +7 -0
- package/lib/components/pisellPhone/index.js +46 -0
- package/lib/components/pisellPhone/types.d.ts +209 -0
- package/lib/components/pisellPhone/types.js +17 -0
- package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +35 -0
- package/lib/components/pisellPhone/utils/countryCodeHelper.js +64 -0
- package/lib/components/pisellPhone/utils/index.d.ts +6 -0
- package/lib/components/pisellPhone/utils/index.js +49 -0
- package/lib/components/pisellPhone/utils/phoneFormatter.d.ts +39 -0
- package/lib/components/pisellPhone/utils/phoneFormatter.js +103 -0
- package/lib/components/pisellPhone/utils/phoneValidator.d.ts +11 -0
- package/lib/components/pisellPhone/utils/phoneValidator.js +61 -0
- package/lib/components/pisellRating/PisellRating.d.ts +31 -0
- package/lib/components/pisellRating/PisellRating.js +110 -0
- package/lib/components/pisellRating/PisellRating.less +41 -0
- package/lib/components/pisellRating/PisellRating.stories.d.ts +53 -0
- package/lib/components/pisellRating/PisellRating.stories.js +199 -0
- package/lib/components/pisellRating/index.d.ts +6 -0
- package/lib/components/pisellRating/index.js +39 -0
- package/lib/components/pisellRating/types.d.ts +124 -0
- package/lib/components/pisellRating/types.js +17 -0
- package/lib/components/pisellRow/index.d.ts +1 -1
- package/lib/components/pisellSingleLineText/PisellSingleLineText.d.ts +40 -0
- package/lib/components/pisellSingleLineText/PisellSingleLineText.js +62 -0
- package/lib/components/pisellSingleLineText/PisellSingleLineText.less +62 -0
- package/lib/components/pisellSingleLineText/PisellSingleLineText.stories.d.ts +102 -0
- package/lib/components/pisellSingleLineText/PisellSingleLineText.stories.js +379 -0
- package/lib/components/pisellSingleLineText/components/DisabledView.d.ts +16 -0
- package/lib/components/pisellSingleLineText/components/DisabledView.js +51 -0
- package/lib/components/pisellSingleLineText/components/EditView.d.ts +19 -0
- package/lib/components/pisellSingleLineText/components/EditView.js +69 -0
- package/lib/components/pisellSingleLineText/components/ReadOnlyView.d.ts +20 -0
- package/lib/components/pisellSingleLineText/components/ReadOnlyView.js +164 -0
- package/lib/components/pisellSingleLineText/index.d.ts +6 -0
- package/lib/components/pisellSingleLineText/index.js +39 -0
- package/lib/components/pisellSingleLineText/types.d.ts +139 -0
- package/lib/components/pisellSingleLineText/types.js +17 -0
- package/lib/components/pisellSingleSelect/PisellSingleSelect.d.ts +9 -0
- package/lib/components/pisellSingleSelect/PisellSingleSelect.js +78 -0
- package/lib/components/pisellSingleSelect/PisellSingleSelect.less +159 -0
- package/lib/components/pisellSingleSelect/PisellSingleSelect.stories.d.ts +66 -0
- package/lib/components/pisellSingleSelect/PisellSingleSelect.stories.js +444 -0
- package/lib/components/pisellSingleSelect/components/DisabledView.d.ts +8 -0
- package/lib/components/pisellSingleSelect/components/DisabledView.js +81 -0
- package/lib/components/pisellSingleSelect/components/EditView.d.ts +8 -0
- package/lib/components/pisellSingleSelect/components/EditView.js +141 -0
- package/lib/components/pisellSingleSelect/components/ReadOnlyView.d.ts +8 -0
- package/lib/components/pisellSingleSelect/components/ReadOnlyView.js +74 -0
- package/lib/components/pisellSingleSelect/index.d.ts +6 -0
- package/lib/components/pisellSingleSelect/index.js +39 -0
- package/lib/components/pisellSingleSelect/types.d.ts +92 -0
- package/lib/components/pisellSingleSelect/types.js +17 -0
- package/lib/components/pisellUrl/PisellUrl.d.ts +37 -0
- package/lib/components/pisellUrl/PisellUrl.js +62 -0
- package/lib/components/pisellUrl/PisellUrl.less +46 -0
- package/lib/components/pisellUrl/PisellUrl.stories.d.ts +108 -0
- package/lib/components/pisellUrl/PisellUrl.stories.js +506 -0
- package/lib/components/pisellUrl/components/DisabledView.d.ts +14 -0
- package/lib/components/pisellUrl/components/DisabledView.js +42 -0
- package/lib/components/pisellUrl/components/EditView.d.ts +15 -0
- package/lib/components/pisellUrl/components/EditView.js +109 -0
- package/lib/components/pisellUrl/components/ReadOnlyView.d.ts +15 -0
- package/lib/components/pisellUrl/components/ReadOnlyView.js +98 -0
- package/lib/components/pisellUrl/index.d.ts +5 -0
- package/lib/components/pisellUrl/index.js +40 -0
- package/lib/components/pisellUrl/types.d.ts +160 -0
- package/lib/components/pisellUrl/types.js +17 -0
- package/lib/components/pisellUrl/utils/index.d.ts +6 -0
- package/lib/components/pisellUrl/utils/index.js +27 -0
- package/lib/components/pisellUrl/utils/urlFormatter.d.ts +38 -0
- package/lib/components/pisellUrl/utils/urlFormatter.js +66 -0
- package/lib/components/pisellUrl/utils/urlHelper.d.ts +63 -0
- package/lib/components/pisellUrl/utils/urlHelper.js +97 -0
- package/lib/components/pisellUrl/utils/urlValidator.d.ts +46 -0
- package/lib/components/pisellUrl/utils/urlValidator.js +77 -0
- package/lib/components/table/Table/fields/index.d.ts +2 -2
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/index.d.ts +103 -65
- package/lib/index.js +94 -46
- package/lib/theme/tokens.d.ts +22 -0
- package/lib/theme/tokens.js +277 -0
- package/lowcode/pisell-currency/index.ts +3 -0
- package/lowcode/pisell-currency/meta.ts +350 -0
- package/lowcode/pisell-currency/snippets.ts +52 -0
- package/lowcode/pisell-datetime-display/index.ts +3 -0
- package/lowcode/pisell-datetime-display/meta.ts +509 -0
- package/lowcode/pisell-datetime-display/snippets.ts +1 -0
- package/lowcode/pisell-email/index.ts +1 -0
- package/lowcode/pisell-email/meta.ts +484 -0
- package/lowcode/pisell-email/snippets.ts +63 -0
- package/lowcode/pisell-long-text/meta.ts +436 -0
- package/lowcode/pisell-long-text/snippets.ts +55 -0
- package/lowcode/pisell-metric-card/meta.ts +493 -0
- package/lowcode/pisell-metric-card/snippets.ts +54 -0
- package/lowcode/pisell-multiple-select/index.ts +3 -0
- package/lowcode/pisell-multiple-select/meta.ts +422 -0
- package/lowcode/pisell-multiple-select/snippets.ts +111 -0
- package/lowcode/pisell-number/index.ts +3 -0
- package/lowcode/pisell-number/meta.ts +497 -0
- package/lowcode/pisell-number/snippets.ts +68 -0
- package/lowcode/pisell-percent/index.ts +3 -0
- package/lowcode/pisell-percent/meta.ts +201 -0
- package/lowcode/pisell-percent/snippets.ts +61 -0
- package/lowcode/pisell-phone/meta.ts +389 -0
- package/lowcode/pisell-phone/snippets.ts +52 -0
- package/lowcode/pisell-rating/index.ts +3 -0
- package/lowcode/pisell-rating/meta.ts +130 -0
- package/lowcode/pisell-rating/snippets.ts +38 -0
- package/lowcode/pisell-single-line-text/meta.ts +525 -0
- package/lowcode/pisell-single-line-text/snippets.ts +41 -0
- package/lowcode/pisell-single-select/index.ts +3 -0
- package/lowcode/pisell-single-select/meta.ts +370 -0
- package/lowcode/pisell-single-select/snippets.ts +70 -0
- package/lowcode/pisell-url/index.ts +1 -0
- package/lowcode/pisell-url/meta.ts +512 -0
- package/lowcode/pisell-url/snippets.ts +75 -0
- package/package.json +4 -3
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/PisellFields/index.tsx
|
|
20
|
+
var PisellFields_exports = {};
|
|
21
|
+
__export(PisellFields_exports, {
|
|
22
|
+
default: () => PisellFields_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(PisellFields_exports);
|
|
25
|
+
var import_pisellSingleLineText = require("../pisellSingleLineText");
|
|
26
|
+
var import_pisellLongText = require("../pisellLongText");
|
|
27
|
+
var import_pisellNumber = require("../pisellNumber");
|
|
28
|
+
var import_pisellCurrency = require("../pisellCurrency");
|
|
29
|
+
var import_pisellPercent = require("../pisellPercent");
|
|
30
|
+
var import_pisellPhone = require("../pisellPhone");
|
|
31
|
+
var import_pisellEmail = require("../pisellEmail");
|
|
32
|
+
var import_pisellUrl = require("../pisellUrl");
|
|
33
|
+
var import_pisellRating = require("../pisellRating");
|
|
34
|
+
var import_pisellSingleSelect = require("../pisellSingleSelect");
|
|
35
|
+
var import_pisellMultipleSelect = require("../pisellMultipleSelect");
|
|
36
|
+
var PisellFields = {
|
|
37
|
+
SingleLineText: import_pisellSingleLineText.PisellSingleLineText,
|
|
38
|
+
LongText: import_pisellLongText.PisellLongText,
|
|
39
|
+
Number: import_pisellNumber.PisellNumber,
|
|
40
|
+
Currency: import_pisellCurrency.PisellCurrency,
|
|
41
|
+
Percent: import_pisellPercent.PisellPercent,
|
|
42
|
+
Phone: import_pisellPhone.PisellPhone,
|
|
43
|
+
Email: import_pisellEmail.PisellEmail,
|
|
44
|
+
Url: import_pisellUrl.PisellUrl,
|
|
45
|
+
Rating: import_pisellRating.PisellRating,
|
|
46
|
+
SingleSelect: import_pisellSingleSelect.PisellSingleSelect,
|
|
47
|
+
MultipleSelect: import_pisellMultipleSelect.PisellMultipleSelect
|
|
48
|
+
};
|
|
49
|
+
var PisellFields_default = PisellFields;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PisellLayouts 命名空间
|
|
3
|
+
* 布局组件集合
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* import { PisellLayouts } from '@pisell/materials';
|
|
7
|
+
*
|
|
8
|
+
* <PisellLayouts.BasicGrid columns={3} gap={16}>
|
|
9
|
+
* {items.map(item => <Card key={item.id} {...item} />)}
|
|
10
|
+
* </PisellLayouts.BasicGrid>
|
|
11
|
+
*
|
|
12
|
+
* <PisellLayouts.ScrollView direction="horizontal">
|
|
13
|
+
* <Content />
|
|
14
|
+
* </PisellLayouts.ScrollView>
|
|
15
|
+
*/
|
|
16
|
+
declare const PisellLayouts: {
|
|
17
|
+
BasicGrid: <T>(props: import("../PisellBasicGrid").PisellBasicGridProps<T>) => JSX.Element;
|
|
18
|
+
ScrollView: import("react").ForwardRefExoticComponent<Omit<import("../PisellScrollView").PisellScrollViewProps, "ref"> & import("react").RefAttributes<import("../PisellScrollView").PisellScrollViewRef>>;
|
|
19
|
+
Layout: import("../pisellLayout").CompoundedComponent;
|
|
20
|
+
Content: import("react").FC<import("../pisellLayout/content").PisellContentProps>;
|
|
21
|
+
Footer: import("react").FC<import("../pisellLayout/footer").PisellFooterProps>;
|
|
22
|
+
Header: import("react").FC<import("../pisellLayout/header").PisellHeaderProps>;
|
|
23
|
+
Sider: import("react").FC<import("../pisellLayout/sider").PisellSiderProps>;
|
|
24
|
+
Container: <T_1 extends import("../pisellContainer").RenderType>(props: import("../pisellContainer").PisellContainerProps<T_1>) => any;
|
|
25
|
+
Row: (props: import("../pisellRow").PisellRowProps) => JSX.Element;
|
|
26
|
+
ViewGrid: import("react").FC<import("../pisellViewGrid").PisellViewGridProps>;
|
|
27
|
+
};
|
|
28
|
+
export default PisellLayouts;
|
|
29
|
+
export type { PisellBasicGridProps, } from '../PisellBasicGrid';
|
|
30
|
+
export type { PisellScrollViewProps, } from '../PisellScrollView';
|
|
31
|
+
export type { PisellLayoutProps, CompoundedComponent, } from '../pisellLayout';
|
|
32
|
+
export type { PisellRowProps, } from '../pisellRow';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/PisellLayouts/index.tsx
|
|
30
|
+
var PisellLayouts_exports = {};
|
|
31
|
+
__export(PisellLayouts_exports, {
|
|
32
|
+
default: () => PisellLayouts_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(PisellLayouts_exports);
|
|
35
|
+
var import_PisellBasicGrid = __toESM(require("../PisellBasicGrid"));
|
|
36
|
+
var import_PisellScrollView = __toESM(require("../PisellScrollView"));
|
|
37
|
+
var import_pisellLayout = __toESM(require("../pisellLayout"));
|
|
38
|
+
var import_content = __toESM(require("../pisellLayout/content"));
|
|
39
|
+
var import_footer = __toESM(require("../pisellLayout/footer"));
|
|
40
|
+
var import_header = __toESM(require("../pisellLayout/header"));
|
|
41
|
+
var import_sider = __toESM(require("../pisellLayout/sider"));
|
|
42
|
+
var import_pisellContainer = __toESM(require("../pisellContainer"));
|
|
43
|
+
var import_pisellRow = __toESM(require("../pisellRow"));
|
|
44
|
+
var import_pisellViewGrid = __toESM(require("../pisellViewGrid"));
|
|
45
|
+
var PisellLayouts = {
|
|
46
|
+
BasicGrid: import_PisellBasicGrid.default,
|
|
47
|
+
ScrollView: import_PisellScrollView.default,
|
|
48
|
+
Layout: import_pisellLayout.default,
|
|
49
|
+
Content: import_content.default,
|
|
50
|
+
Footer: import_footer.default,
|
|
51
|
+
Header: import_header.default,
|
|
52
|
+
Sider: import_sider.default,
|
|
53
|
+
Container: import_pisellContainer.default,
|
|
54
|
+
Row: import_pisellRow.default,
|
|
55
|
+
ViewGrid: import_pisellViewGrid.default
|
|
56
|
+
};
|
|
57
|
+
var PisellLayouts_default = PisellLayouts;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PisellMetrics 命名空间
|
|
3
|
+
* 数据指标展示组件集合
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* import { PisellMetrics } from '@pisell/materials';
|
|
7
|
+
*
|
|
8
|
+
* <PisellMetrics.MetricCard
|
|
9
|
+
* title="Total Sales"
|
|
10
|
+
* value={1580}
|
|
11
|
+
* comparison={120}
|
|
12
|
+
* showTrendIcon
|
|
13
|
+
* />
|
|
14
|
+
* <PisellMetrics.StatisticList data={[...]} />
|
|
15
|
+
*/
|
|
16
|
+
declare const PisellMetrics: {
|
|
17
|
+
MetricCard: import("react").FC<import("../pisellMetricCard").PisellMetricCardProps>;
|
|
18
|
+
StatisticList: (props: import("../pisellStatisticList").PisellStatisticListProps) => JSX.Element;
|
|
19
|
+
MetricItem: (props: import("../cardMetricItem").PisellStatisticProps) => JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
export default PisellMetrics;
|
|
22
|
+
export type { PisellMetricCardProps } from '../pisellMetricCard';
|
|
23
|
+
export type { PisellStatisticProps } from '../cardMetricItem';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/PisellMetrics/index.tsx
|
|
30
|
+
var PisellMetrics_exports = {};
|
|
31
|
+
__export(PisellMetrics_exports, {
|
|
32
|
+
default: () => PisellMetrics_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(PisellMetrics_exports);
|
|
35
|
+
var import_pisellMetricCard = __toESM(require("../pisellMetricCard"));
|
|
36
|
+
var import_pisellStatisticList = __toESM(require("../pisellStatisticList"));
|
|
37
|
+
var import_cardMetricItem = __toESM(require("../cardMetricItem"));
|
|
38
|
+
var PisellMetrics = {
|
|
39
|
+
MetricCard: import_pisellMetricCard.default,
|
|
40
|
+
StatisticList: import_pisellStatisticList.default,
|
|
41
|
+
MetricItem: import_cardMetricItem.default
|
|
42
|
+
};
|
|
43
|
+
var PisellMetrics_default = PisellMetrics;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
declare const Subdomain: React.FC<import("antd").InputProps & {
|
|
3
3
|
onChange: (value: string) => void;
|
|
4
4
|
onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
5
|
-
rootDomain: "custom" | "
|
|
5
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
6
6
|
customDomain?: string | undefined;
|
|
7
7
|
value?: string | undefined;
|
|
8
8
|
tenantId: string;
|
|
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
|
|
|
15
15
|
metadata?: MediaMetadata;
|
|
16
16
|
}) => Record<string, any>;
|
|
17
17
|
export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
|
|
18
|
-
export declare const getBaseTime: (size: number) =>
|
|
18
|
+
export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
|
|
@@ -19,7 +19,7 @@ declare const formFieldMap: {
|
|
|
19
19
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
20
20
|
onChange: (value: string) => void;
|
|
21
21
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
22
|
-
rootDomain: "custom" | "
|
|
22
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
23
23
|
customDomain?: string | undefined;
|
|
24
24
|
value?: string | undefined;
|
|
25
25
|
tenantId: string;
|
|
@@ -59,7 +59,11 @@ declare const formFieldMap: {
|
|
|
59
59
|
FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
60
60
|
FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
61
61
|
};
|
|
62
|
-
declare const getFieldComponent: (fieldComponent: string) =>
|
|
62
|
+
declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
|
|
63
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
64
|
+
} & {
|
|
65
|
+
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
66
|
+
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
|
|
63
67
|
JSON: import("react").FC<any>;
|
|
64
68
|
Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
65
69
|
TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
@@ -72,7 +76,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
72
76
|
Subdomain: import("react").FC<import("antd").InputProps & {
|
|
73
77
|
onChange: (value: string) => void;
|
|
74
78
|
onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
75
|
-
rootDomain: "custom" | "
|
|
79
|
+
rootDomain: "custom" | "saas" | "xzero";
|
|
76
80
|
customDomain?: string | undefined;
|
|
77
81
|
value?: string | undefined;
|
|
78
82
|
tenantId: string;
|
|
@@ -80,10 +84,6 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
80
84
|
fieldKey?: string | undefined;
|
|
81
85
|
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
82
86
|
}) | (import("react").FC<{}> & {
|
|
83
|
-
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
84
|
-
} & {
|
|
85
|
-
Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
86
|
-
}) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
|
|
87
87
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
88
88
|
} & {
|
|
89
89
|
Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
|
|
@@ -95,7 +95,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
|
|
|
95
95
|
extraParams?: Record<string, any> | undefined;
|
|
96
96
|
} & {
|
|
97
97
|
dataSource?: any;
|
|
98
|
-
}) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
98
|
+
}) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
|
|
99
99
|
onChange: (value: string) => void;
|
|
100
|
-
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
100
|
+
} & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
|
|
101
101
|
export { getFieldComponent, formFieldMap };
|
|
@@ -44,6 +44,7 @@ var import_zh_TW = __toESM(require("antd/es/locale/zh_TW"));
|
|
|
44
44
|
var import_zh_HK = __toESM(require("antd/es/locale/zh_HK"));
|
|
45
45
|
var import_pisell_config_provider = __toESM(require("../pisell-config-provider"));
|
|
46
46
|
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
47
|
+
var import_tokens = require("../../theme/tokens");
|
|
47
48
|
var localMap = {
|
|
48
49
|
"zh-TW": import_zh_TW.default,
|
|
49
50
|
"zh-CN": import_zh_CN.default,
|
|
@@ -79,7 +80,6 @@ var Page = (props) => {
|
|
|
79
80
|
if (props == null ? void 0 : props.theme) {
|
|
80
81
|
return {
|
|
81
82
|
...props.theme,
|
|
82
|
-
// cssVar: { key: 'app' },
|
|
83
83
|
token: {
|
|
84
84
|
...props.theme.token,
|
|
85
85
|
// 外部透传主题时,如果没有传入colorPrimary 默认使用主项目内主题色
|
|
@@ -87,126 +87,8 @@ var Page = (props) => {
|
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
-
return
|
|
91
|
-
|
|
92
|
-
components: {
|
|
93
|
-
Table: {
|
|
94
|
-
colorFillContent: "#EAECF0",
|
|
95
|
-
colorFillSecondary: "#F2F4F7",
|
|
96
|
-
colorBorderSecondary: "#EAECF0",
|
|
97
|
-
colorFillAlter: "#F9FAFB",
|
|
98
|
-
controlItemBgHover: "#F9FAFB",
|
|
99
|
-
colorTextHeading: "#475467",
|
|
100
|
-
colorTextDescription: "#667085",
|
|
101
|
-
colorText: "#101828",
|
|
102
|
-
controlHeight: 32,
|
|
103
|
-
padding: 24,
|
|
104
|
-
margin: 16
|
|
105
|
-
},
|
|
106
|
-
Message: {
|
|
107
|
-
contentBg: "#101828"
|
|
108
|
-
},
|
|
109
|
-
Button: {
|
|
110
|
-
borderRadiusSM: 6,
|
|
111
|
-
borderRadiusLG: 9,
|
|
112
|
-
borderRadius: 8,
|
|
113
|
-
controlHeight: 36,
|
|
114
|
-
colorBgContainerDisabled: "#F2F4F7",
|
|
115
|
-
colorBgTextHover: "#F9FAFB",
|
|
116
|
-
colorBorder: "#D0D5DD",
|
|
117
|
-
colorError: "#D92D20",
|
|
118
|
-
colorErrorActive: "#D92D20",
|
|
119
|
-
colorErrorHover: "#B42318",
|
|
120
|
-
colorErrorBg: "#FEF3F2",
|
|
121
|
-
colorErrorBorderHover: "#FDA29B",
|
|
122
|
-
colorErrorOutline: "rgba(217, 45, 32, 0.06)",
|
|
123
|
-
colorLink: "#7F56DA",
|
|
124
|
-
colorLinkActive: "#5F3DA8",
|
|
125
|
-
colorLinkHover: "#6D48C4",
|
|
126
|
-
// colorPrimaryActive: '#5D3F9F',
|
|
127
|
-
// colorPrimaryBorder: '#E9D7FE',
|
|
128
|
-
colorText: "#344054",
|
|
129
|
-
colorTextDisabled: "#D0D5DD",
|
|
130
|
-
colorTextLightSolid: "#fff",
|
|
131
|
-
colorBgTextActive: "#D0D5DD",
|
|
132
|
-
controlOutline: "rgba(127, 86, 217, 0.04)",
|
|
133
|
-
controlTmpOutline: "#F9FAFB",
|
|
134
|
-
paddingContentHorizontal: 14,
|
|
135
|
-
marginXS: 8
|
|
136
|
-
},
|
|
137
|
-
Divider: {
|
|
138
|
-
colorSplit: "#EAECF0"
|
|
139
|
-
},
|
|
140
|
-
Breadcrumb: {
|
|
141
|
-
itemColor: "#475467",
|
|
142
|
-
colorTextDescription: "#475467",
|
|
143
|
-
// lastItemColor: '#6941C6',
|
|
144
|
-
separatorMargin: 12,
|
|
145
|
-
separatorColor: "#D0D5DD",
|
|
146
|
-
linkHoverColor: "#1D2939",
|
|
147
|
-
linkColor: "#475467",
|
|
148
|
-
colorBgTextHover: "#F9FAFB",
|
|
149
|
-
paddingXXS: 8
|
|
150
|
-
},
|
|
151
|
-
Dropdown: {
|
|
152
|
-
borderRadiusLG: 8,
|
|
153
|
-
// "boxShadowPopoverArrow": "2px 2px 5px rgba(0, 0, 0, 0.05)",
|
|
154
|
-
controlHeight: 42,
|
|
155
|
-
fontSize: 14
|
|
156
|
-
},
|
|
157
|
-
DatePicker: {
|
|
158
|
-
borderRadius: 8,
|
|
159
|
-
colorTextPlaceholder: "#667085",
|
|
160
|
-
colorIcon: "#667085",
|
|
161
|
-
colorTextQuaternary: "#D0D5DD",
|
|
162
|
-
colorBgContainerDisabled: "#F9FAFB",
|
|
163
|
-
colorTextDisabled: "#98A2B3"
|
|
164
|
-
},
|
|
165
|
-
Input: {
|
|
166
|
-
fontSizeIcon: 16,
|
|
167
|
-
addonBg: "#fff"
|
|
168
|
-
// "lineHeight": 1
|
|
169
|
-
},
|
|
170
|
-
Select: {
|
|
171
|
-
fontSizeIcon: 16
|
|
172
|
-
// "lineHeight": 1
|
|
173
|
-
},
|
|
174
|
-
Menu: {
|
|
175
|
-
subMenuItemSelectedColor: "#9976e3"
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
token: {
|
|
179
|
-
colorPrimary: themeColor || "#5D3F9F",
|
|
180
|
-
colorPrimaryBg: "#eee5ff",
|
|
181
|
-
colorPrimaryBgHover: "#e4d9fc",
|
|
182
|
-
colorPrimaryBorder: "#d4c3f7",
|
|
183
|
-
colorSuccess: "#5f9e3f",
|
|
184
|
-
colorInfo: "#5d3f9f",
|
|
185
|
-
colorError: "#f5222d",
|
|
186
|
-
colorSuccessBg: "#e5fcd9",
|
|
187
|
-
colorSuccessBgHover: "#d5f7c3",
|
|
188
|
-
// 链接色
|
|
189
|
-
colorLink: "#7F56DA",
|
|
190
|
-
colorLinkActive: "#5F3DA8",
|
|
191
|
-
colorLinkHover: "#6D48C4",
|
|
192
|
-
colorText: "#101828",
|
|
193
|
-
colorTextSecondary: "#475467",
|
|
194
|
-
colorTextTertiary: "#667085",
|
|
195
|
-
colorTextQuaternary: "#D0D5DD",
|
|
196
|
-
colorBorder: "#D0D5DD",
|
|
197
|
-
colorBorderSecondary: "#EAECF0",
|
|
198
|
-
colorFill: "#D0D5DD",
|
|
199
|
-
colorFillSecondary: "#EAECF0",
|
|
200
|
-
colorFillTertiary: "#F2F4F7",
|
|
201
|
-
colorFillQuaternary: "#F9FAFB",
|
|
202
|
-
colorBgLayout: "#F2F4F7",
|
|
203
|
-
colorBgSpotlight: "#101828",
|
|
204
|
-
colorBgMask: "rgba(0, 0, 0, 0.5)",
|
|
205
|
-
wireframe: false,
|
|
206
|
-
borderRadius: 8
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
}, [platform, themeColor, props == null ? void 0 : props.theme]);
|
|
90
|
+
return (0, import_tokens.getThemeConfig)(themeColor);
|
|
91
|
+
}, [themeColor, props == null ? void 0 : props.theme]);
|
|
210
92
|
const datePickerTheme = (0, import_react.useMemo)(() => {
|
|
211
93
|
var _a2;
|
|
212
94
|
return (0, import_date_picker.createTheme)({
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PisellCurrencyProps } from './types';
|
|
3
|
+
import './PisellCurrency.less';
|
|
4
|
+
/**
|
|
5
|
+
* PisellCurrency 货币组件
|
|
6
|
+
*
|
|
7
|
+
* 基于 PisellNumber 派生,专门处理货币数据。
|
|
8
|
+
* 默认启用千分位和2位小数,符合财务规范。
|
|
9
|
+
*
|
|
10
|
+
* @param props 组件 Props
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* // 受控模式
|
|
14
|
+
* const [price, setPrice] = useState(0);
|
|
15
|
+
* <PisellCurrency
|
|
16
|
+
* value={price}
|
|
17
|
+
* onChange={setPrice}
|
|
18
|
+
* currencySymbol="¥"
|
|
19
|
+
* />
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* // 非受控模式
|
|
23
|
+
* <PisellCurrency
|
|
24
|
+
* defaultValue={100}
|
|
25
|
+
* currencySymbol="$"
|
|
26
|
+
* />
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* // 只读态
|
|
30
|
+
* <PisellCurrency
|
|
31
|
+
* mode="read"
|
|
32
|
+
* value={1234.56}
|
|
33
|
+
* currencySymbol="¥"
|
|
34
|
+
* />
|
|
35
|
+
* // 显示: ¥1,234.56
|
|
36
|
+
*/
|
|
37
|
+
export declare const PisellCurrency: React.FC<PisellCurrencyProps>;
|
|
38
|
+
declare const MemoizedPisellCurrency: React.NamedExoticComponent<PisellCurrencyProps>;
|
|
39
|
+
export default MemoizedPisellCurrency;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pisellCurrency/PisellCurrency.tsx
|
|
30
|
+
var PisellCurrency_exports = {};
|
|
31
|
+
__export(PisellCurrency_exports, {
|
|
32
|
+
PisellCurrency: () => PisellCurrency,
|
|
33
|
+
default: () => PisellCurrency_default
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(PisellCurrency_exports);
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_utils = require("@pisell/utils");
|
|
38
|
+
var import_ReadOnlyView = __toESM(require("./components/ReadOnlyView"));
|
|
39
|
+
var import_EditView = __toESM(require("./components/EditView"));
|
|
40
|
+
var import_DisabledView = __toESM(require("./components/DisabledView"));
|
|
41
|
+
var import_PisellCurrency = require("./PisellCurrency.less");
|
|
42
|
+
var PisellCurrency = (props) => {
|
|
43
|
+
const { mode = "edit", disabled = false } = props;
|
|
44
|
+
const displayState = (0, import_utils.getDisplayState)(mode, disabled);
|
|
45
|
+
switch (displayState) {
|
|
46
|
+
case "read":
|
|
47
|
+
return /* @__PURE__ */ import_react.default.createElement(import_ReadOnlyView.default, { ...props });
|
|
48
|
+
case "edit":
|
|
49
|
+
return /* @__PURE__ */ import_react.default.createElement(import_EditView.default, { ...props });
|
|
50
|
+
case "disabled":
|
|
51
|
+
return /* @__PURE__ */ import_react.default.createElement(import_DisabledView.default, { ...props });
|
|
52
|
+
default:
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
var MemoizedPisellCurrency = import_react.default.memo(PisellCurrency, (prevProps, nextProps) => {
|
|
57
|
+
return prevProps.value === nextProps.value && prevProps.mode === nextProps.mode && prevProps.disabled === nextProps.disabled && prevProps.currencySymbol === nextProps.currencySymbol && prevProps.symbolPosition === nextProps.symbolPosition;
|
|
58
|
+
});
|
|
59
|
+
var PisellCurrency_default = MemoizedPisellCurrency;
|
|
60
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
61
|
+
0 && (module.exports = {
|
|
62
|
+
PisellCurrency
|
|
63
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// PisellCurrency 组件样式
|
|
2
|
+
|
|
3
|
+
.pisell-currency {
|
|
4
|
+
// 基础样式
|
|
5
|
+
display: inline-block;
|
|
6
|
+
|
|
7
|
+
// 只读态样式
|
|
8
|
+
&-read {
|
|
9
|
+
color: rgba(0, 0, 0, 0.85);
|
|
10
|
+
line-height: 1.5715;
|
|
11
|
+
|
|
12
|
+
// 货币数值可以加粗显示(可选)
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// 编辑态样式
|
|
17
|
+
&-edit {
|
|
18
|
+
position: relative;
|
|
19
|
+
|
|
20
|
+
// 错误提示
|
|
21
|
+
.pisell-currency-error {
|
|
22
|
+
margin-top: 4px;
|
|
23
|
+
color: #ff4d4f;
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
line-height: 1.5;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// 禁用态样式
|
|
30
|
+
&-disabled {
|
|
31
|
+
// 继承 Ant Design InputNumber 的禁用样式
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// 负数显示为红色(可选)
|
|
35
|
+
&.negative {
|
|
36
|
+
color: #ff4d4f;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// 正数显示为绿色(可选,用于收益场景)
|
|
40
|
+
&.positive {
|
|
41
|
+
color: #52c41a;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PisellCurrency } from './PisellCurrency';
|
|
3
|
+
/**
|
|
4
|
+
* PisellCurrency 组件 Storybook
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof PisellCurrency>;
|
|
7
|
+
export default meta;
|
|
8
|
+
declare type Story = StoryObj<typeof PisellCurrency>;
|
|
9
|
+
/**
|
|
10
|
+
* 基础示例 - 人民币
|
|
11
|
+
*/
|
|
12
|
+
export declare const Basic: Story;
|
|
13
|
+
/**
|
|
14
|
+
* 不同货币
|
|
15
|
+
*/
|
|
16
|
+
export declare const DifferentCurrencies: Story;
|
|
17
|
+
/**
|
|
18
|
+
* 只读态展示
|
|
19
|
+
*/
|
|
20
|
+
export declare const ReadOnly: Story;
|
|
21
|
+
/**
|
|
22
|
+
* 禁用态
|
|
23
|
+
*/
|
|
24
|
+
export declare const Disabled: Story;
|
|
25
|
+
/**
|
|
26
|
+
* 不显示货币符号
|
|
27
|
+
*/
|
|
28
|
+
export declare const WithoutSymbol: Story;
|
|
29
|
+
/**
|
|
30
|
+
* 禁止负数(商品价格)
|
|
31
|
+
*/
|
|
32
|
+
export declare const NoNegative: Story;
|
|
33
|
+
/**
|
|
34
|
+
* 允许负数(退款金额)
|
|
35
|
+
*/
|
|
36
|
+
export declare const AllowNegative: Story;
|
|
37
|
+
/**
|
|
38
|
+
* 表单场景
|
|
39
|
+
*/
|
|
40
|
+
export declare const InForm: Story;
|
|
41
|
+
/**
|
|
42
|
+
* 表格场景
|
|
43
|
+
*/
|
|
44
|
+
export declare const InTable: Story;
|
|
45
|
+
/**
|
|
46
|
+
* 不同精度
|
|
47
|
+
*/
|
|
48
|
+
export declare const DifferentPrecision: Story;
|
|
49
|
+
/**
|
|
50
|
+
* 只读态样式
|
|
51
|
+
*/
|
|
52
|
+
export declare const ReadOnlyStyles: Story;
|
|
53
|
+
/**
|
|
54
|
+
* 空值处理
|
|
55
|
+
*/
|
|
56
|
+
export declare const EmptyValue: Story;
|